HF RL Explorer

Buffer allocation logic inverted causing slice bounds panic

Buffer allocation logic inverted causing slice bounds panic: a task in UltraTerminal (Harbor dataset). When setting cache entries, the buffer allocation condition is inverted, causing the system to allocate a new buffer when it shouldn't and use an undersized buffer when it should allocate a…

The task

When setting cache entries, the buffer allocation condition is inverted, causing the system to allocate a new buffer when it shouldn't and use an undersized buffer when it should allocate a larger one. This leads to slice bounds out of range panics when trying to write data that exceeds the buffer capacity.

Part of harness-hub/UltraTerminal.