Background
TuiRuntime has several error paths (command coalescing overflow, unhandled exception → TermFlowErrorCmd → error overlay, Sub failure, shutdown mid-frame) that are structurally exercised but not explicitly tested.
Regressions here become user-facing terminal corruption, missed shutdowns, or silently swallowed errors.
Goal
Targeted tests for each runtime error path.
Scope
- Test: unhandled exception in
update surfaces via error overlay.
- Test: Sub thrown exception doesn't kill the runtime.
- Test: shutdown flushes pending Cmds gracefully.
- Test: CmdBus backpressure / overflow under burst load.
- Test: FCmd failing Future surfaces as
TermFlowErrorCmd.
Acceptance
Part of Cross-cutting — Semantic model & test debt.
Background
TuiRuntimehas several error paths (command coalescing overflow, unhandled exception →TermFlowErrorCmd→ error overlay, Sub failure, shutdown mid-frame) that are structurally exercised but not explicitly tested.Regressions here become user-facing terminal corruption, missed shutdowns, or silently swallowed errors.
Goal
Targeted tests for each runtime error path.
Scope
updatesurfaces via error overlay.TermFlowErrorCmd.Acceptance
TuiRuntimeimproves measurably.Part of Cross-cutting — Semantic model & test debt.