Repository navigation
Description
Summary
#697 (PR #698) gave sequant ready live progress by reusing run's plain RunRenderer. In review we found the experimental Ink TUI (--experimental-tui, src/ui/tui/) — the boxed per-issue dashboard with the 10 Hz spinner — is the look we'd prefer for ready. This issue tracks (A) upgrading ready to that TUI and (B) the hardening the TUI needs before it could become the sequant run default.
This is a follow-up to #697 / #698, not a regression in them.
Part A — sequant ready uses the boxed Ink TUI
ready is always single-issue, so the TUI's large-batch weak spots (Part B) don't block it.
The wiring is not a drop-in swap of #697's work: the plain renderer is push-based (onProgress events → RunRenderer), while the Ink TUI is pull-based (App polls getSnapshot(): RunSnapshot at 10 Hz, see src/ui/tui/index.ts renderTui(orchestrator)). ready has no RunOrchestrator.
Proposed design: a lightweight single-issue snapshot adapter owned by ready.ts — a small mutable tracker that the gate updates (via the existing onProgress hook from #697, or a thin wrapper) and that exposes getSnapshot() returning a one-issue RunSnapshot. Mount renderTui against it; TTY-gated with the same --json/non-TTY fallback to the static report that #697 already established. Model the gate's qa → loop → qa passes as the phase row (coarse nowLine via formatCoarseNowLine is fine for the MVP — no agent-stream enrichment required).
Part B — Harden the Ink TUI before it can be the run default
The plain renderer absorbed hardening (#618, #624 frame-height cap, #655 corruption, #690) the TUI never received. Confirmed gaps in src/ui/tui/:
- No row cap / frame-height management.
App.tsxmaps every issue to a full multi-line box (noslice, no roll-up). The plain renderer caps frame height to terminal rows (feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624) and rolls old done rows into✔ N done(multiIssueRowCap, default 10). A large batch on a short terminal overflows and ink degrades (flicker / partial repaint). - No durable scrollback transcript. Ink repaints a live region in place; on exit there's no per-phase
✔/✘history like the plain renderer appends. (ready's value is its final report, so emit a teardown summary.) - Unverified on tmux/screen, narrow terminals, Windows.
Already fine: NO_COLOR is respected automatically via ink/chalk (theme.ts).
Divider polish (carry-over)
We cleaned up the in-box divider in this conversation: drop the ├/┤ end-caps for a plain full-width gray rule. Verified (typecheck + demo). Apply as part of Part A:
--- a/src/ui/tui/IssueBox.tsx
+++ b/src/ui/tui/IssueBox.tsx
@@ Cell dividers
- <Divider width={innerWidth} borderColor={border} />
+ <Divider width={innerWidth} />
@@ (both divider call sites)
- <Divider width={innerWidth} borderColor={border} />
+ <Divider width={innerWidth} />
@@ Divider component
-function Divider({
- width,
- borderColor,
-}: {
- width: number;
- borderColor: string;
-}): JSX.Element {
- const mid = "─".repeat(Math.max(0, width - 2));
- return (
- <Text>
- <Text color={borderColor}>├</Text>
- <Text color={DIVIDER_COLOR}>{mid}</Text>
- <Text color={borderColor}>┤</Text>
- </Text>
- );
-}
+function Divider({ width }: { width: number }): JSX.Element {
+ return <Text color={DIVIDER_COLOR}>{"─".repeat(Math.max(0, width))}</Text>;
+}Acceptance Criteria
-
sequant ready <issue>on a TTY renders the boxed Ink TUI (single box) with live spinner + phase row;--jsonand non-TTY fall back to the static report exactly as feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697 does. - The divider polish above is applied (no
├/┤caps). - The final ready report still prints to clean scrollback after the TUI tears down.
- Ink TUI gains a row cap + frame-height clamp so N issues never exceed terminal height (parity with the plain renderer's feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624 behavior).
- Ink TUI emits a durable teardown summary (per-issue
✔/✘) so a completed run leaves a transcript in scrollback. - Smoke-tested under tmux and a narrow (≤80-col) terminal.
Non-Goals
- Making the Ink TUI the
sequant rundefault in this issue — that's the payoff once A+B land, gated on a separate decision. - Agent-stream
nowLineenrichment forready(coarse phase lines are sufficient).
Notes
- The divider patch is also stashed locally as
stash@{0}("698-followup: TUI IssueBox divider polish") but the diff above is the source of truth. - A standalone demo of the TUI lives at
scripts/dev/tui-demo.tsx(gitignored) — useful for iterating.
Activity
admarble commentedon Jun 2, 2026
📋 Plan Review — #699 (
/spec)Complexity: Standard (6 ACs, ~3 directories) · Verdict:⚠️ SCOPE_WARNING
⛔ Hard dependency: PR #698 is OPEN
Part A's design reuses #698's
onProgresshook inready-gate.ts+ready.ts(theRunReadyGateOptions.onProgresssink and thebuildProgressWiringcall). That code is not onmainyet — PR #698 is still open. #699 must either land after #698 merges (then rebase ontomain), or be based onfeature/697-…. Recommend: merge #698 first. Building #699 onmainas-is will fail —ready.tshas no renderer/onProgresswiring today.AC Quality Check
ACs are clear and measurable. Two notes:
AC-N:IDs — they're plain- [ ]checkboxes, so the parser extracts 0 and testgen/state can't auto-track them. Assigned AC-1…AC-6 below; consider adding**AC-1:**-style prefixes to the issue body.Scope Assessment
Non-Goals: ✅ present (run-default deferral; no agent-stream
nowLine).ready→TUI adapter · B: TUI hardening)src/commands,src/ui/tui, (src/lib/cli-ui)Verdict:⚠️ SCOPE_WARNING → auto-enables the quality loop. A and B are separable but share
App.tsx/IssueBox.tsxedits — keep together. Fallback: if Part B's row-cap grows, land A (adapter + divider + teardown) first and split B (row-cap/frame-clamp) to a follow-up.Acceptance Criteria
AC-1 —
readyrenders the boxed TUI on TTY;--json/non-TTY → static reportIntegration Test + Manual. Given a TTY and no
--json→ mountsrenderTui; given non-TTY or--json→ printsresult.report/JSON unchanged. Mirrorrun-tui.integration.test.ts.Assumption:
renderTuiis relaxed to accept any{ getSnapshot(): RunSnapshot }(today it's typed toRunOrchestrator, but only callsgetSnapshot()).AC-2 — Divider polish applied (no⚠️
├/┤caps)Unit Test.
IssueBoxdivider renders a plain full-width gray rule.IssueBox.test.tsx:88-96currently asserts the frame contains├/┤— exec must update that test to assert their absence + the plain rule.AC-3 — Final ready report prints to clean scrollback after teardown
Integration Test. Dispose/unmount the TUI before
console.log(result.report)(same ordering #698 established for the plain renderer at the report print site).AC-4 — Row cap + frame-height clamp (parity with plain renderer #624)
Unit Test. Extract a pure
selectVisibleIssues(issues, rows, cap)helper mirroringrun-renderer.tsapplyRowCap/effectiveRowCap(keep active rows, fill with most-recent done, roll older done into✔ N done; static cap default 10 ∧ dynamicfloor((rows-overhead)/perBox)). Note: each Ink box ≈ 9-11 lines vs the plain grid's ~3 — sizeperBoxaccordingly. Test likerun-renderer-624.test.ts.AC-5 — Durable teardown summary (per-issue
✔/✘)Unit Test (compose summary from final snapshot) + Integration (printed on unmount). Emit in
index.tsteardown so bothrunandreadyinherit it.ready's own report still follows.AC-6 — Smoke-tested under tmux + narrow (≤80-col) terminal
Manual Test (human-verified).
Implementation Plan
Phase 1 — TUI plumbing (Part A core)
renderTui(provider: { getSnapshot(): RunSnapshot })insrc/ui/tui/index.ts(structural;RunOrchestratoralready satisfies it).src/commands/ready-tui-adapter.tsorsrc/lib/cli-ui/): mutableIssueRuntimeState; anonProgress-shaped method mappingstart→running +currentPhasew/formatCoarseNowLine,complete/failed→done/failed + elapsed;getSnapshot(): RunSnapshot;markDone().Phase 2 — Wire into
ready.ts3. TTY ∧
!json→ build adapter,renderTui(adapter), passadapter.onProgressas the gate'sonProgress; afterrunReadyGateresolves →adapter.markDone(),await handle.done, dispose, print report (AC-1, AC-3). Non-TTY/--json→ existing static path. SIGINT unmount + cleanup-on-all-paths (mirrorrun.ts).Phase 3 — Divider + hardening (Part B)
4. Apply the divider diff to
IssueBox.tsx(both sites + component) and fixIssueBox.test.tsx(AC-2).5. Row cap / frame-clamp via
selectVisibleIssuesconsumed byApp.tsx(AC-4).6. Teardown summary in
index.ts(AC-5). Manual tmux/80-col smoke (AC-6).Rule Touchpoints
None — no AC trips the ≥2-keyword behavior-rule heuristic.
Design Review
ready-owned glue (it has noRunOrchestrator); the cap/teardown belong in the shared TUI (src/ui/tui) so the eventualrundefault inherits them.onProgressevents — no new event channel, no orchestrator. Rejected: forcingreadythroughRunOrchestrator(heavyweight, batch-oriented).run.ts'srenderTui+tuiHandle.done+ SIGINT-unmount lifecycle; row-cap mirrorsrun-rendererapplyRowCap.RunOrchestrator.getSnapshot?" → orchestrator assumes a batch/worktree-provisioning lifecyclereadydoesn't have. "Per-box height for the clamp?" → call it out explicitly; Ink boxes are ~3× the plain grid rows.Open Questions
sequant ready(#697) #698 — Recommendation: merge feat(cli): wire live phase-matrix renderer intosequant ready(#697) #698, then rebase feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699. Impact if ignored: build breaks (noonProgressonmain).index.ts(shared). Impact: if put inready.ts,run's future default won't get it (AC-5 is a Part-B/run-parity goal).Recommended Workflow
Phases: spec → testgen → exec → qa · Quality loop: enabled (SCOPE_WARNING). Testgen warranted (Unit + Integration ACs).
.tsxtouched but this is an ink terminal UI, not browser — recommend theno-browser-testlabel to suppress the browsertestphase; AC-6 covers manual smoke.Label Review
Current:
enhancement→ Recommended: addno-browser-test. Reason: terminal TUI, no browser surface; prevents a spurioustestphase. Quality loop auto-enables from SCOPE_WARNING regardless.→
gh issue edit 699 --add-label no-browser-testadmarble commentedon Jun 2, 2026
🔧 Implementation Progress —
/exec→ PR #700Branch:
feature/699-feat-tui-upgrade-sequant-ready-to-the-boxed-ink-tu· PR: #700Dependency handling (#698)
The
/specflagged a hard dependency:ready'sonProgresswiring (PR #698, branchfeature/697-…) isn't onmain. Per the spec's sanctioned option (b), #698's branch was merged into this one (clean, no conflicts — commitd7acf18). Merge #698 first, then PR #700; once #698 lands the commits dedupe and #700's net diff is just the #699 work.AC Coverage
--json/non-TTY → static reportready.tsuseTuigate +ready-tui-adapter.ts;ready.test.ts"#699 Ink TUI wiring" (5 cases)├/┤caps)IssueBox.tsxDivider;IssueBox.test.tsxasserts caps absent + plain rule presentready.tsawaitstuiHandle.donebefore printing; ordering testrow-cap.tsselectVisibleIssues;row-cap.test.ts(8) +App.test.tsxrollup render✔/✘)teardown.tsemitted inindex.ts;teardown.test.ts(5)IssueBox/Apptests at width 80Key files
src/commands/ready-tui-adapter.ts,src/ui/tui/row-cap.ts,src/ui/tui/teardown.ts(+ tests)src/ui/tui/index.ts(structuralSnapshotProvider, teardown emit),App.tsx(row cap),IssueBox.tsx(divider),theme.ts(ROLLUP_COLOR),ready.ts(TTY/non-TTY gate),ready.test.ts,CHANGELOG.mdDesign notes
readyhas noRunOrchestrator; a mutable one-issue tracker fed by the gate's existingonProgressis the simplest correct bridge to the TUI's pull-basedgetSnapshot(). CoarsenowLineper Non-Goals (no agent-stream enrichment).src/ui/tui/(row cap, teardown) so the eventualrundefault inherits it; the adapter isready-owned glue.Checks
npm run build✅ ·npm run lint✅ (0 warnings) · TUI+ready targeted tests ✅ 59 passedrelay-hook.integrationfails only becauseSEQUANT_RELAY=trueleaks from the orchestrated session (passes when unset);prompt-waitis a relay-inbox timing race (ENOENT inbox.jsonl). Neither touches TUI/ready code.Remaining
sequant rundefault remains a Non-Goal here (separate decision once A+B land).admarble commentedon Jun 2, 2026
QA Review for Issue #699
Scope note: This branch is stacked on #698 (
feature/697-…, merged into #699 atd7acf18) because Part A reuses #698'sonProgresswiring, which isn't onmainyet. The AC review below is scoped to the #699-only diff (git diff d7acf18..HEAD, 889 LOC). Merge #698 before PR #700.AC Coverage
--json/non-TTY → static reportready.tsuseTui = !json && isTTYgate;ReadySnapshotAdapterbridges gateonProgress→getSnapshot();ready.test.ts"#699 Ink TUI wiring" (5 cases: mounts TUI, no plain renderer, adapter onProgress fed,--jsonskips TUI, error unmount)├/┤caps)IssueBox.tsxDivider→ plain─×width;IssueBox.test.tsxasserts caps absent + rule presentready.tsawaitstuiHandle.done(markDone→poll→unmount) beforeconsole.log(report); test "flips snapshot to done and prints report after teardown"row-cap.tsselectVisibleIssues/effectiveTuiRowCapmirrorapplyRowCap;row-cap.test.ts(8) +App.test.tsxrollup render (✔ N done)✔/✘)composeTeardownSummaryemitted inindex.tson unmount (shared →runinherits);teardown.test.ts(5)IssueBox/Apptests at width 80, but tmux + true ≤80-col interactive smoke requires a human.Coverage: 5/6 MET, 1 PENDING (manual). Original ACs: 5/6 met. Derived ACs: none.
CI Status
build (22.x)typecheckvalidate-skillsvalidate-pluginCI Summary: 4 passed, 0 pending, 0 failed.
Quality Metrics
any/as any)Build Verification
N/A —
npm run build(tsc) passes on the feature branch (exit 0).Test Coverage Analysis
src/commands/ready-tui-adapter.tsready-tui-adapter.test.ts(12 cases)src/commands/ready.tsready.test.ts(#699 block, 5 cases)src/ui/tui/row-cap.tsrow-cap.test.ts(8)src/ui/tui/teardown.tsteardown.test.ts(5)src/ui/tui/App.tsxApp.test.tsx(2, incl. rollup)src/ui/tui/IssueBox.tsxIssueBox.test.tsx(updated)src/ui/tui/index.tscomposeTeardownSummaryunit-tested +renderTuimocked inready.test.ts, but the real mount→poll(done)→unmount→teardown-print cycle has no end-to-end integration testsrc/ui/tui/theme.tsROLLUP_COLORtrivial constCoverage: 7/8 source files have direct tests; targeted suite 59 passed. No critical-tier paths.
Code Review
Strengths:
ReadySnapshotAdapteris the right abstraction (ready has noRunOrchestrator);getSnapshot()returns a freshly-allocated snapshot each call (no leaked mutable refs — explicitly tested).renderTuirelaxed to a structuralSnapshotProviderrather than coupling toRunOrchestrator— minimal, andRunOrchestratorsatisfies it structurally (build confirms).src/ui/tui/(shared) so the eventualrundefault inherits them — matches the spec's design intent.selectVisibleIssuesfaithfully mirrorsapplyRowCap(active always kept, recent-done fill, older-done rollup; 1 slot reserved for the rollup line).Issues / limitations (non-blocking):
--verbose+ TUI stdout collision: on the TTY/TUI path the renderer is null, soexecutePhaseWithRetrygets no pause handle. With--verbose, gate phase output streams to stdout while ink owns the live region → potential repaint corruption. This is parity withrun's TUI path (same limitation) and outside feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699's stated scope, but worth a follow-up before the TUI becomes therundefault.runTUI now prints both the newindex.tsteardown✔/✘summary anddisplaySummary(result)— minor redundancy (the teardown line is shared by design). Acceptable; flag if it reads noisy.Suggestions:
Appagainst aReadySnapshotAdapter, flipsmarkDone, and asserts unmount + teardown-summary emission — closes theindex.tscoverage gap and locks AC-3/AC-5 end-to-end.Call-Site Review
New exported functions:
renderTui(relaxed sig),effectiveTuiRowCap,selectVisibleIssues,composeTeardownSummary(+ 3 consts).renderTuiready.ts(useTui),run.ts(tui path)!json && isTTYselectVisibleIssuesApp.tsxcomposeTeardownSummaryindex.ts(waitUntilExit)effectiveTuiRowCaprow-cap.ts(internal)No dead exports; all call-site conditions match the AC constraints.
Test Quality Review
ready.test.tsmocks collaborators (renderTui, gate, gh, state) at boundaries;isTTYpinned per block to isolate TTY vs non-TTY pathstuiHandle.done = Promise.resolve()avoids real-timer racesExecution Evidence
npx tsx bin/cli.ts ready --helpvitest run src/ui/tui src/commands/ready*Evidence status: Complete (the interactive TUI render itself is AC-6's manual smoke, still pending).
CLI Registration Verification
N/A — no
RunOptions/CLI option interface fields added.ready's flags are unchanged; #699 only swaps the rendering path.Anti-Pattern Detection
Code patterns: 0 critical, 0 warnings on the #699 diff (no
any, noeval/innerHTML/secrets/child_process, no uncleared intervals —App.tsxintervals retain theirclearIntervalcleanup).package.jsonunchanged → dependency audit N/A.Skill Command / Detection Pattern Verification
N/A — no
.claude/skills/**or skill-markdown regex/grep/awk/jq changes.Manual Test ACs
No override applied — AC-6 is a genuine UI runtime smoke (terminal rendering under tmux / narrow width) that should be human-verified, not overridden. Flows to
NEEDS_VERIFICATION.Risk Assessment
await tuiHandle.donehanging (ready never prints its report). The unit tests mockrenderTui, so this exact integration path is unverified by automation — AC-6's manual smoke is the only check that exercises it end-to-end.index.ts);--verbose+ TUI interaction; tmux/≤80-col rendering.run.ts's TUI path is the cross-file sibling — it sharesrenderTui/teardown and gains the same teardown summary (intended). It carries the identical--verbose-no-pause-handle limitation; noted as a pre-existing parity item, not introduced here.ready.tsteardown is handled on all three exit paths (success / catch / SIGINT) — audited, consistent. Single rendering call site.Adversarial Re-Read
Findings: Walked the diff adversarially. (1) Verbatim spec fixtures: the issue's divider diff is applied exactly (caps dropped, plain rule) and the prior test that asserted caps was inverted — verified literally. (2) No evidence claim is a pre-fix repro; CLI smoke + 59 passing tests are post-change validations. (3) Process state: clean worktree, branch even with origin, CI green. (4) Sibling sites cited above (run.ts parity). (5) Non-Goals respected — TUI is not made the
rundefault;nowLinestays coarse (no agent-stream enrichment). Surfaced gaps (non-blocking): theindex.tsend-to-end cycle lacks an integration test, and--verbose+TUI can collide on stdout. Neither is a verbatim-fixture miss nor an AC marked MET without its required check (AC-6 is honestly PENDING).Status: Gaps Found (non-blocking)
CHANGELOG Verification
[Unreleased]entry for #699Result: CHANGELOG requirements met.
Verdict: NEEDS_VERIFICATION
AC-1 through AC-5 are MET with direct test evidence, CI is fully green, build/lint/typecheck pass, and the code quality is high (clean abstraction, no anti-patterns, lifecycle correct on all exit paths). The single blocker to
READY_FOR_MERGEis AC-6, an inherently manual smoke (tmux + ≤80-col terminal) that cannot be marked MET from code review and was not executed in QA — so the verdict isNEEDS_VERIFICATION, not a quality downgrade.Two things gate the actual merge:
sequant ready <issue>under tmux and a ≤80-col terminal), then re-run/qa 699 --forceto promote towardREADY_FOR_MERGE.sequant ready(#697) #698 first — PR feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI (#699) #700 is stacked on it; merging feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI (#699) #700 before feat(cli): wire live phase-matrix renderer intosequant ready(#697) #698 would pull feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697/feat(cli): wire live phase-matrix renderer intosequant ready(#697) #698 commits along.Note (browser-test heuristic false-positive):
.tsxfiles changed without a/testphase, which the QA heuristic normally flags for browser testing — but these are ink terminal components with no browser surface, so browser testing is inapplicable (AC-6's terminal smoke is the correct manual check). The spec recommended ano-browser-testlabel, but that label does not exist in this repo. Recommend creating + applying it to suppress the false trigger on future TUI PRs.Documentation
[Unreleased]entry added (feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699)/docs 699to generate feature documentation.Next Steps
sequant ready(#697) #698 → then merge feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI (#699) #700.Appmount→done→unmount→teardown integration test to close theindex.tscoverage gap.no-browser-testlabel for terminal-UI PRs.admarble commentedon Jun 2, 2026
QA Re-run for Issue #699 (incremental)
Re-ran
/qa 699. No code changes since the prior QA — the PR tree is identical (git diff HEAD origin/<branch>is empty; local2155401and remote4c984d0differ only in commit topology, not content). Independently re-verified AC-1…AC-5 against the source rather than trusting the prior pass.Incremental QA Summary
vitest src/ui/tui src/commands/ready)--json/non-TTY → static reportready.tsuseTui = !json && isTTY;ReadySnapshotAdapterbridges gateonProgress→getSnapshot()├/┤caps)IssueBox.tsxDivider→ plain─×width; test asserts caps absentready.ts:markDone→await tuiHandle.done→console.log(report)row-cap.tsselectVisibleIssues/effectiveTuiRowCapmirrorapplyRowCap✔/✘)index.tsemitscomposeTeardownSummarybeforeresolveDone(shared →runinherits)Coverage: 5/6 MET, 1 PENDING (manual). Lifecycle re-confirmed correct on all three exit paths (success, gate error, SIGINT).
Verdict: NEEDS_VERIFICATION (unchanged)
AC-1…AC-5 are MET with test evidence; CI green; build/typecheck/lint pass; code quality high. The sole gate to
READY_FOR_MERGEremains AC-6, the manual tmux + ≤80-col smoke that cannot be marked MET from code review.To merge:
sequant ready <issue>under tmux and a ≤80-col terminal, capture the result, then re-run/qa 699 --forceto promote towardREADY_FOR_MERGE.sequant ready(#697) #698 is still OPEN and#697/#698are not onmain— PR feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI (#699) #700 is stacked on them (fullmain...HEADdiff is 1270 LOC = feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697 + feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699). Merge feat(cli): wire live phase-matrix renderer intosequant ready(#697) #698 first, else feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI (#699) #700 drags feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697/feat(cli): wire live phase-matrix renderer intosequant ready(#697) #698 commits along.Optional (A+): add a real-
Appmount→markDone→unmount→teardown integration test to close theindex.tsend-to-end coverage gap.admarble commentedon Jun 2, 2026
QA update — #698 merged, PR #700 conflict resolved
#698 landed on
mainas a squash (88e235d), which left PR #700CONFLICTING: the #699 branch carried its own copy of #697's changes (via thed7acf18merge) whilemainnow had the squashed version → textual conflicts inCHANGELOG.md,src/commands/ready.ts,src/commands/ready.test.ts.Resolved by merging
origin/maininto the branch (merge commit7989b53):sequant readyto the boxed Ink TUI + harden TUI for large batches #699 branch side — verified first that HEAD is a strict superset of main's feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697 content (every main-only line was a feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697-era comment/guard that feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699 intentionally superseded, e.g.if (renderer)→if (renderer || tuiHandle); CHANGELOG[Unreleased]retains all of main's refs plus feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699).4c984d0(content no-op; the merge only putsorigin/mainin the branch's ancestry to clear the conflict).sequant readyto the boxed Ink TUI + harden TUI for large batches #699-only 889 LOC / 15 files (the duplicated feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697 changes are gone).Verification after merge:
npm run build(tsc) → exit 0vitest run src/ui/tui src/commands/ready src/lib/workflow/ready-gate→ 85 passed (9 files; correctly absorbs feat(cli):sequant ready— wire live phase-matrix renderer (parity withsequant run) #697's tests too)7989b53→ all 4 green (build 22.x, typecheck, validate-skills, validate-plugin)gh pr view 700→mergeable: MERGEABLE,mergeStateStatus: CLEANVerdict: NEEDS_VERIFICATION (unchanged)
The merge-ordering blocker is cleared and #700 is now cleanly mergeable. AC-1…AC-5 remain MET. The only remaining gate is AC-6 — the manual
sequant ready <issue>smoke under tmux + a ≤80-col terminal, which can't be marked MET from code review.To merge: run the AC-6 manual smoke, then PR #700 is ready to merge (no
#698-ordering caveat anymore — #698 is onmain).admarble commentedon Jun 2, 2026
QA — AC-6 verified, verdict promoted
AC-6 manual smoke complete. Human ran the worktree demo (
scripts/dev/tui-demo.tsx, realrenderTui+ReadySnapshotAdapter) on a TTY:✔teardown summary, and clean report in scrollback.App.tsxboxWidth = min(stdout.columns - 2, 100),IssueBoxtruncateToWidth(...)).stdout.columnsTTY code path (width was the risky variable and it passed), and the scrollback concern is covered by the teardown summary. Re-runnable later viabrew install tmux.AC Coverage — 6/6 MET
--json/non-TTY → static reportready.tsuseTuigate;ReadySnapshotAdapter; render confirmed├/┤)markDone→await done→console.log(report); confirmedrow-cap.tsmirrorsapplyRowCap; tests✔/✘teardown summaryindex.tsemitscomposeTeardownSummary; confirmedMerge status
sequant readyto the boxed Ink TUI + harden TUI (#699) #700:mergeable: MERGEABLE,mergeStateStatus: CLEAN, all 4 CI checks green on7989b53.sequant ready(#697) #698 is onmain; the prior ordering caveat no longer applies.Verdict: READY_FOR_MERGE
All ACs met, CI green, PR cleanly mergeable, code quality high. Before merging, run
/docs 699for feature documentation.docs(#699): document sequant ready live progress UI (boxed TUI on TTY)
admarble commentedon Jun 2, 2026
Documentation Generated
File:
docs/reference/ready-command.md(commit62ed315)Sequant is a CLI/TUI tool, so docs went to the canonical command reference rather than an admin/feature page. Added a "Live progress" section to
ready-command.mddescribing the #699 behavior operationally (what the user sees, not how it works):--json): boxed live dashboard — single rounded box, animated spinner, phase row (✓ qa ▸ ✓ loop ▸ ✓ qa), repaints in place, truncates on narrow/≤80-col terminals and under tmux. On finish: durable✔/✘ #<issue>scrollback line + the full gap report below it.--json/ non-TTY (piped, CI): no live UI (won't corrupt piped JSON/logs) — static report or JSON only.NO_COLORrespected.Other doc locations checked — no change needed:
docs/reference/cheat-sheet.md— one-line entry, still accurate.docs/README.md— links to the reference, unchanged.CHANGELOG.md[Unreleased]— feat(tui): upgradesequant readyto the boxed Ink TUI + harden TUI for large batches #699 entry already present.Next Steps
sequant readyto the boxed Ink TUI + harden TUI (#699) #700.Ready to merge.
feat(tui): upgrade `sequant ready` to the boxed Ink TUI + harden TUI (#…
Merge #698 (feature/697 onProgress wiring) into #699 — Part A dependency
feat(tui): upgrade `sequant ready` to the boxed Ink TUI + harden TUI (#…
docs(#699): document sequant ready live progress UI (boxed TUI on TTY)