Skip to content

[CTX-0256] APC G parser wiring + base64 unwrap for kitty graphics (chafa live) #430

Closed

Description

@Xuepoo

Priority: P1 | Area: rich | Labels: feat,area:rich,P1 | Milestone: v0.1.0 | RFC: OQ-008 | Task: CTX-0256

Wires real chafa --format kitty output over PTY into the existing intake/decode/placement seams.

Missing links closed

  1. APC G was inert at the VT parser (vte 0.15 leaves SOS/PM/APC with no callback): pre-scan APC in Parser::advance, parse G control, base64-decode fail-closed, reassemble chunked m=1/m=0 under the ledger cap, emit one TerminalAction::KittyGraphics per completed transmission.
  2. Base64 unwrap: intake/decode seams take raw bytes; the parser hands assembled decoded bytes to kitty_transmit/kitty_display_image (transmit-only a=t stores without painting; unknown actions stored-not-painted per 0248).

Scope

crates/bitty-vt (new kitty_apc module + KittyGraphics action + APC scanner), minimal routing in crates/bitty-runtime/src/runtime/pty.rs, inert dispatch arm in crates/bitty-term-state/src/state.rs. No present/composite, GPU (0253), or keymap changes.

Proof

  • Parser-level: valid/invalid/base64-bad/oversize-claim + chunked + split-invariance tests.
  • Routing: new kitty_apc_wiring tests (bytes reach display seam) + headless pixel proof reusing kitty_images_present pattern.
  • Live: real chafa 1.18.2 kitty output (34KB/53 APCs, f=32 s=80 v=80) routes end-to-end headlessly (1 image, 1 placement, red pixels); see recording/ctx-0256/EVIDENCE.md (uncommitted captures). No wgpu live proof: GPU path ignores images by design until CTX-0253.

Activity

  1. added this to the v0.1.0 milestone on Sep 8, 2026
  2. added
    feat
    P1
    area:rich
    on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:richfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions