Skip to content

Feat/cesar smooth - #294

Merged
cukas merged 3 commits into
mainfrom
feat/cesar-smooth
Aug 19, 2026
Merged

Feat/cesar smooth#294
cukas merged 3 commits into
mainfrom
feat/cesar-smooth

Conversation

@cukas

@cukas cukas commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…e redirect wrap

- steer-then-Esc queued the engine-facing [INTERRUPTED TURN REDIRECT] block as
  the user's message (and wrapped it a second time); now the raw steer text is
  queued and the redirect wrap happens exactly once, engine-side in dispatchInput
- Esc with typed text: 3 notices → 1 ("Interrupted — redirecting…")
- dropped the "Steering queued…" / "Queued: …" transcript lines that duplicated
  the live composer chip
- second Ctrl+C now prints "Cancelled." like Esc does
- tests/unit/interrupt-quiet.test.ts pins raw-text queueing, single wrap,
  single notice

⚔️ Forged by [Agon](https://github.com/KERNlang/agon)

Co-Authored-By: agon (KERN) <292465531+KERN-Agon@users.noreply.github.com>
…cks visibly resume

Streaming lag:
- parseToolCalls(response) ran on EVERY chunk for CLI brains without native
  tools → chunkMayCompleteToolCall gate (24-char carry-over tail); a full
  scan only when the arriving text can complete a tool call
- emitPreamble(response) ran on every chunk → classifyPreambleHead latch,
  settles once at the first newline (emitted block byte-identical)
- app-output-bridge: 4000-char live tail sliced at commit time (≤15×/s)
  instead of on every enqueue before the 66ms throttle dropped it
- markdown _cleanCache: LRU-style oldest-key eviction instead of .clear()
  at the 200 cap (was wiping every live block's cached clean text)

ASK → pick → "stopped" (session chat-1787039227533):
- the pick resumed but the follow-up send loop dropped all text → echo the
  choice ("→ <label>") before the follow-up, stream follow-up text live
  (streaming-chunk / streaming-end, same marker pipeline + tool-markup
  suppression as the main loop, _fuEndStream in the finally)
- never drop a real pick: dead session / aborted turn surfaces the answer
  instead of returning silently; fork/confirm gained the never-lose fallback
- intentional Esc no longer prints "Engine … stopped responding"

tests: cesar-ask-resume (A1-A6), cesar-stream-cost (B1-B4)

⚔️ Forged by [Agon](https://github.com/KERNlang/agon)

Co-Authored-By: agon (KERN) <292465531+KERN-Agon@users.noreply.github.com>
@cukas
cukas force-pushed the feat/cesar-smooth branch from aae4ce7 to c4c3676 Compare August 18, 2026 15:25
@cukas
cukas merged commit 1d44d92 into main Aug 19, 2026
2 checks passed
@cukas
cukas deleted the feat/cesar-smooth branch August 19, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants