Skip to content

fix(tui): keep the header lamp lit and seat turn stats under the reply - #91

Merged
jkyberneees merged 2 commits into
mainfrom
fix/tui-turn-lamp-and-stats
Sep 5, 2026
Merged

jkyberneees merged 2 commits into
mainfrom
fix/tui-turn-lamp-and-stats

Conversation

@jkyberneees

@jkyberneees jkyberneees commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Keep a one-cell header connection lamp while a turn runs (◉ live, ● idle, ◌ reconnect, ○ down) so a blank corner is not read as a dropped socket after Hi.
  • Re-arm listen() as a top-level cmd after a drained event burst so a thinking_delta firehose cannot nest the listener inside tea.Batch.
  • Move sealed turn telemetry under the assistant reply and use the same one-blank-row gap after ⬡ odek / ❯ you as between transcript cards.
  • Make ⇧⏎ insert a newline on Cursor/xterm.js by enabling modifyOtherKeys=2 after the alt screen and mapping the CSI back to KeyMsgs.

Test plan

  • make build && ./bin/bodek, send Hi: header shows ◉ then ● when the turn finishes
  • Finished turn: ⚡ … · ⌂ … sits under the answer, not on the ⬡ odek row
  • One blank row after ⬡ odek and ❯ you
  • ⇧⏎ inserts a newline; ⏎ still sends
  • Disconnect / reconnect still show ○ / ◌

A busy turn cleared the corner badge, which read as a dropped socket
after Hi. Flatten listen re-arm so a thinking-delta batch cannot bury
the listener, show a one-cell connection lamp, and move sealed
telemetry under the answer with even section gaps.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bodek ff47c38 Commit Preview URL

Branch Preview URL
Sep 05 2026, 10:08 PM

Enable modifyOtherKeys=2 after the alt screen so Cursor encodes
Shift+Enter as CSI instead of CR, and map those sequences back so
^K and esc keep working.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jkyberneees
jkyberneees merged commit f0fcfb0 into main Sep 5, 2026
8 checks passed
@jkyberneees
jkyberneees deleted the fix/tui-turn-lamp-and-stats branch September 5, 2026 22:10
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.

1 participant