Repository navigation
test: send protocol-compliant Kitty image frames - #29519
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
9 tasks done
8 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Make the terminal image test send a valid Kitty image upload. Its blue RGB image currently puts 17,280 base64 bytes into one frame, while the protocol limits each frame to 4,096 bytes.
What Changed
Split the same 120×36 RGB24 blue image into five adjacent frames. Only the first carries image metadata; continuation frames carry continuation/quiet flags, and the final frame completes the upload. Preserve every image byte, surrounding output, completion marker and existing pixel/resource assertion. Add one two-row protocol contract test against the actual producer, covering both placeholder settings. No production code changes.
Why
Existing decoder and rendered-image tests do not enforce the producer's protocol limit. A byte-level guard catches malformed framing cheaply, while the existing Windows/WSL rendered checks remain responsible for actual display. Keeping RGB24 preserves format coverage that converting the blue image to PNG would lose.
This is a confirmed producer-contract defect. It is not a confirmed explanation for the earlier WSL missing-blue-image failures; those traces did not establish which stage lost the image.
Linked Issue
Maintainer-requested CI audit; this addresses a fixture defect encountered while validating #29304.
Visual Proof
Test producer only. Rendered Windows/WSL validation at this head passed all 12 native/WSL × GPU-off/on image cases. All 36 PNG screenshots and participation JSON were retained and independently reviewed; expected blue Kitty and other protocol/file-backed images were visible in all four configurations.
Testing
Linux Node 24.21 / Bun 1.4.3, background launch. Original producer fails both new rows at the intended 17,280 > 4,096 assertion. Candidate plus actual addon continuation/memory sibling: eight cases pass, zero unhandled errors. Deliberate truncated-body and repeated-continuation-metadata controls each fail both rows at the intended byte/header assertions; source restored. Independent whole-output comparison collapses the five frames back to the original framing and proves every unrelated output byte identical for both placeholder settings. Decoded image remains exactly 12,960 RGB bytes; chunk lengths are 4,096/4,096/4,096/4,096/896.
Normal lint, changed-code quality, formatting and whitespace checks pass. Final local module observations: protocol suite 374 ms; addon memory suite 219 ms; combined command wall 2,247 ms. The original protocol suite fails, so these do not establish a speed comparison. No speedup claimed. Full exact-head PR run 38867869176 passed, including aggregate 116869440319 and all five clean unit shards. Hosted producer-contract suite: both cases passed, official module duration 377 ms (Node 24.19 / Bun 1.4.3). Explicit full-SHA Windows/WSL run 38868503747 passed all 12 image cases and nine WSL participation cases with zero skipped, unexpected or flaky cases and no retries. Explicit paired-runtime/memory run 38867992124 passed both selected cases. The initial short-ref dispatch 38867885503 failed during checkout before tests and was replaced by the full-SHA run. No local rendered app launched.
Review
Independent producer/caller/decoder/routing review informed the patch. Final independent preservation review approved committed producer/test bytes, protocol framing, complete unrelated-output preservation and controls.
Agent skill upstream boundary
Notes
No application, SSH wire, folder-workspace or platform behavior changes. Native/WSL × GPU off/on, all image pixel thresholds, file-backed coverage and resource checks are unchanged. Framing does not control OS PTY packet boundaries or shorten the outer shell command.
Checklist