Repository navigation
feat(#540): experimental multi-issue TUI dashboard for sequant run - #542
Merged
Merged
Conversation
Adds an ink-based live dashboard behind `--experimental-tui` that renders one three-cell box per issue (header / context / activity) with rotating border colors, per-phase progression, and a 1 Hz elapsed timer. Auto-falls back to the existing linear output when stdout is not a TTY. - `RunSnapshot` / `IssueRuntimeState` types in `src/lib/workflow/run-state.ts` - `RunOrchestrator.getSnapshot()` returns a freshly-allocated, read-safe view - `src/ui/tui/` hosts App, Header, IssueBox, Spinner, ElapsedTimer, truncate - Flag wired at all three layers: `bin/cli.ts`, `RunOptions`, `run.ts` - `nowLine` is phase-coarse (`running <phase>`) in M1; per-file activity needs a data source that does not exist today (Claude CLI is opaque) — deferred to a follow-up Closes #540
17 tasks
- AC-8: `Divider` now renders `├───┤` with border-colored tees and a
gray fill, satisfying "border-colored tees with gray horizontal dividers".
New test asserts both glyphs are present in the rendered frame.
- AC-15: `run.ts` registers a `process.once("SIGINT", …)` handler that
unmounts the TUI before `ShutdownManager`'s cleanup runs. Listener is
removed in `finally` so there is no leak on normal exit.
- AC-10: filed #543 to track richer `nowLine` follow-up (log-tail or
structured hook). This issue ships phase-coarse as pre-negotiated in
the spec.
Addresses the AC_NOT_MET verdict from the first QA pass on PR #542.
4 tasks
Closed
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sequant run --experimental-tui— an ink-based live multi-issue dashboard (17/17 ACs addressed; AC-10 partial by design, see below).RunOrchestrator.getSnapshot()exposes a concurrent-read-safe view of the run; the TUI polls at 10 Hz.--quietremains orthogonal.Key design note
nowLineis phase-coarse in this milestone (running <phase>), not per-file as the mockup depicts. The richer activity line requires a data source that does not exist today (theclaudeCLI is spawned as an opaque subprocess). Deferred to a follow-up — called out in the spec comment.Bundle-size impact
Three new runtime deps:
ink(React-based TUI — mature wcwidth/cursor handling),react(ink peer),string-width.ink-testing-library+@types/reactare dev-only. Cold CLI startup is unaffected because the TUI module is dynamically imported (await import("../ui/tui/index.js")) only when the flag is set and a TTY is detected.Test plan
npm run build— cleannpm run lint— 0 warningssequant run 1 2 3 --experimental-tuiin a TTY (reviewer)tee; confirm linear fallbackNO_COLOR=1; confirm structure survivesCloses #540