Skip to content

[CTX-0214] feat(rich): streaming kitty chunked intake with 320MB ledger - #376

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0214/feat-kitty-chunked-intake
Sep 7, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0214/feat-kitty-chunked-intake

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Priority: P2 | Area: rich | Labels: feat,area:rich,P2 | Milestone: v0.1.0 | RFC: FIND-0002 | Task: CTX-0214

Implements the Kitty m= chunk state machine in crates/bitty-rich/src/kitty.rs (intake + bounds only; full rendering stays a separate epic).

  • begin_chunk (first m=1) / append_chunk (more=true buffer, more=false finalize exact) / abort_chunk
  • 320 MiB ledger cap over stored+in-flight (Ghostty total_limit parity), FIFO evict-to-fit; over-cap singles rejected
  • Fail closed: Orphan (no stream, unchanged), AlreadyInProgress (overlap, stream kept), Oversize (stream dropped, nothing stored)
  • Single-shot ingest unchanged (4096 truncation, deterministic ids); assembled entries flagged assembled=true

Verification: cargo fmt clean; clippy -D warnings clean; bitty-rich 131 pass (19 kitty incl 10 new); workspace lib all green; workspace check all-targets clean.

Closes #375

@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 7, 2026
@Xuepoo Xuepoo added feat Feature area:rich Area: rich presentation P2 Priority: medium labels Sep 7, 2026
@Xuepoo
Xuepoo merged commit 1fc6294 into main Sep 7, 2026
10 checks passed
@Xuepoo
Xuepoo deleted the ctx-0214/feat-kitty-chunked-intake branch September 7, 2026 03:19
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 P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CTX-0214] Streaming Kitty graphics (chunked intake)

1 participant