Skip to content

[CTX-0256] feat(vt,runtime): APC G parser wiring + base64 unwrap for kitty graphics - #431

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0256/feat-apc-g-wiring
Sep 8, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0256/feat-apc-g-wiring

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Closes #430.

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

Second priority after CTX-0255 (parallel lane, no overlap: this PR touches vt/parser+rich-routing only; no present/composite, GPU, or keymaps).

What

  • bitty-vt: new kitty_apc module (G control parse, standard-base64 unwrap fail-closed, m= chunk reassembly under the 320MiB ledger cap with pre-growth checked arithmetic, raw s/v claim gate vs decode caps) + TerminalAction::KittyGraphics + APC pre-scanner in Parser::advance (vte 0.15 has no APC callback; SOS/PM stay with vte, non-G APC stays inert; C1 APC 0x9F deliberately not intercepted — overlaps UTF-8 continuations).
  • bitty-term-state: inert dispatch arm (images live in runtime layer).
  • bitty-runtime: route completed transmissions to kitty_display_image (preserves a=t transmit-only and unknown-action stored-not-painted; failures warn, store nothing).

Tests

  • Parser: valid/invalid/base64-bad/oversize-claim/oversize-accumulation/chunked/interleaved/split-invariance (incl. chafa params-only edge chunks).
  • Runtime kitty_apc_wiring (new, 6 tests): wire-to-seam routing + headless pixel proof.
  • Preserved: kitty_images_present 8/8, vt lib 79, term-state lib 81, runtime full suite green.
  • Gates: fmt, clippy -D warnings, workspace check, windows-gnu check green (one pre-existing bitty-app escaped-newline warning untouched).
  • Live: real chafa 1.18.2 output verified end-to-end headlessly (see recording/ctx-0256/EVIDENCE.md, uncommitted); no wgpu live proof (GPU ignores images until CTX-0253 — precise owed note in evidence).

@Xuepoo Xuepoo added feat Feature area:rich Area: rich presentation P1 Priority: high labels Sep 8, 2026
@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 8, 2026
@Xuepoo
Xuepoo merged commit c1d8243 into main Sep 8, 2026
10 checks passed
@Xuepoo
Xuepoo deleted the ctx-0256/feat-apc-g-wiring branch September 8, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:rich Area: rich presentation feat Feature P1 Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant