Clarify comment about switchToDirectCopy flag remaining true

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-11 10:36:28 +00:00
parent bdfd1d27b5
commit 8ca03fa94e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ func (w *VisionReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
// because those bytes need to be processed by the TLS layer first
if w.rawInput != nil && w.rawInput.Len() > 0 {
// rawInput has pending data - defer direct copy to next read
// Keep *switchToDirectCopy as true so we retry on next read
// *switchToDirectCopy remains true (unchanged), so we will retry on the next ReadMultiBuffer call
// This ensures we don't mix encrypted bytes with application data
return buffer, err
}