Skip to content

v0.15.2

Choose a tag to compare

@github-actions github-actions released this 14 Nov 12:33
· 63 commits to master since this release

This release makes the status row's dot keep the cadence it promises and lets a lone Esc reach the app on the terminals people actually use, so Esc stops a ! shell run and cancels a round on xterm, tmux and the Linux console rather than only on a terminal that speaks the kitty keyboard protocol.

Esc on a plain terminal

boba's parser parks an ESC byte until the next byte says whether it was the Escape key or the start of a sequence, and nothing ever settled it on its own: on a terminal without the kitty keyboard protocol — xterm, tmux, the Linux console — a lone Esc reached no key at all, and the key typed after it was read as Alt+key. The dependency now settles that ambiguity on a clock the runtime owns, 50 ms of quiet and the parked byte becomes TUI_KEY_ESCAPE, and configure probes tui_runtime_input_timeout_ms and TUI_ESC_TIMEOUT_MS so a stale boba fails at configure by name instead of losing both Esc ladders in silence (35db73c). !sleep 30 followed by Esc prints the interrupted line and returns an idle prompt, Esc at an idle armed prompt is inert, and the key after an Esc is a plain key.

The dot keeps its own time

The spinner used to be stepped on every tick, and a tick happens whenever any timer falls due — a fetch deadline, the shell's 2 s stop grace, the agent's silence budget — so the animation ran at whatever the shortest timer in the table was rather than its own 100 ms period. It is a timer in the table now, with a frame clock: it reports the time left to the next frame, one period after the frame that was actually painted, and only that ETA reaching zero steps it; a start or a style switch is due at once, and re-asserting the running state moves nothing (197d569). The boba pin takes the loop that makes it stick — the ETA becomes an absolute deadline once per iteration, so a keystroke or an fd wake no longer nudges a frame early or postpones one, and a due event dispatches on that iteration instead of after a poll(0) spin (c3c0259).

One rule for every timer's ETA

Every timer now answers the same question the same way: zero only when the deadline has passed, otherwise a positive remainder rounded up so it never reads as zero. nm_until_ms (src/clock.h) replaces the two ms_until copies in agent.c and tools_exec.c, which truncated a sub-millisecond remainder to zero and needed a separate due-ness test beside them, and the fetch's wait, the credits refresh and the shell grace now use the same arithmetic the socket wait already had (197d569).

Dependencies

The boba pin moves from v0.11.0 to v0.11.2 in all four CI checkouts in one commit: v0.11.1 delivers the lone-Esc timeout and v0.11.2 makes the tick a deadline, and that release also stops the Windows stdin reader thread deterministically at teardown, which the immediate tick makes reachable. coffer stays at v0.12.0.

Full Changelog

v0.15.1...v0.15.2