Repository navigation
Conversation
…#658) `bin/cli.ts` registered `-q, --quality-loop` before `--quiet`, so Commander assigned `-q` to quality-loop and `--quiet` got no short form. Users typing `npx sequant run … -q` activated the quality loop while believing they had silenced the renderer (the renderer stayed wired because `quiet === undefined`). This restores UNIX convention and matches the existing `-q, --quiet` binding on `sync`/`doctor`. `--quality-loop` keeps a short form, rebound to `-Q`, so assess SKILL.md examples and the chain suggestion in `assess-collision-detect.ts` stay ergonomic. Breaking for anyone scripting `sequant run … -q` for quality-loop — flagged in CHANGELOG under Changed / BREAKING. Sweep covered docs, assess SKILL.md (3-dir mirrors) + references doc (3-dir mirrors), the chain suggestion in `src/lib/assess-collision-detect.ts` and its test, and the solve-comment-parser fixture. Heartbeat/quiet docs (quiet-mode-heartbeat.md, run-renderer.md, experimental-tui-dashboard.md) were already prose-correct under the fix and left as-is. Mode-discrepancy callout in docs/incidents/655/negative-result.md rewritten to explain that the original "in -q mode" puzzle dissolves once the broken binding is read off bin/cli.ts:234 — renderer was active because -q set qualityLoop, not quiet. New regression test in src/commands/cli.integration.test.ts pins both `-q → --quiet` and `-Q → --quality-loop` bindings against `run --help`. Live-verified via inline Commander introspection: - args ["123","-q"] → quiet=true, qualityLoop=undefined - args ["123","-Q"] → quiet=undefined, qualityLoop=true - args ["123","-q","-Q"] → quiet=true, qualityLoop=true Entire-Checkpoint: eef503c9d252
Closed
4 tasks
QA noted two doc lines were inconsistent with the corrected `-q`/`--quiet`
binding:
- Line 115 ("Quiet mode" bullet) claimed the renderer still runs in quiet
mode. With `-q` now bound to `--quiet`, run-progress.ts:60 gates the
renderer off; the liveness heartbeat replaces it.
- Line 180 (SEQUANT_DEBUG_RENDERER example) included `-q`, which now
disables the renderer — so no debug frames would emit. Dropped `-q`;
the renderer is the default.
Per CLAUDE.md: no Co-Authored-By line.
Entire-Checkpoint: 91f75164fd6a
admarble
added a commit
that referenced
this pull request
May 17, 2026
…es over 36m (#661) Captures the `npx sequant run 658 -q` session that produced PR #660, with SEQUANT_DEBUG_RENDERER=1 instrumentation enabled. This is the AC-1 evidence #647 has been waiting for. Headline finding: - terminal.typescript contains 2,181 `SEQUANT WORKFLOW · #N · Xs elapsed` header lines persisted in scrollback (~1 per second over a 36-minute run). Every renderer redraw fails to erase the previous frame from scrollback. Mechanism #1 confirmed at scale. Also captured: - Mid-string char drops + U+FFFD overlay (distinct from #655 Symptom A's byte-math pattern). Cause undetermined — see notes.md for the script(1)-wrapper caveat that prevents discriminating "renderer alone" vs "exacerbated by stderr co-writer." Artifacts: - terminal.typescript: 3.1 MB script(1) byte-stream capture (authoritative) - scrollback.txt: 2.4 KB manual pbpaste from an earlier #656 run - notes.md: run command, counts, symptom summary, caveats Entire-Checkpoint: 45ec46202785
12 tasks
Entire-Checkpoint: 1174a452e4c0
admarble
deleted the
feature/658-fix-cli-q-is-short-for-quality-loop-not-quiet-sile
branch
May 17, 2026 16:56
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
-qis now the short form for--quietonsequant run. Previously, Commander assigned-qto--quality-loop(registered first inbin/cli.ts:234) and--quietwas long-form-only — sonpx sequant run … -qactivated the quality loop while users believed they had silenced the renderer.--quality-loopkeeps a short form, rebound to-Q. Keeps assess SKILL.md examples and the chain suggestion ergonomic.sequant run … -qfor quality-loop (CHANGELOG entry added under Changed).AC Verification
bin/cli.ts:-qbinds to--quiet, not--quality-loopbin/cli.ts:234,250; new regression test pins both formsnpx sequant run <issue> -q→ heartbeat only, no renderer grid-q → quiet=true,qualityLoop=undefined;-Q → quiet=undefined,qualityLoop=true. Renderer gate atrun-progress.ts:59-60(!tuiEnabled && !quiet) unchangeddocs/incidents/655/negative-result.mdmode-discrepancy callout updatedbin/cli.ts:234is read-qreferences → update where they mean quality-loop, leave where they mean quietCHANGELOG.mdChanged/BREAKINGentry[Unreleased]→### Changed— flagged as BREAKINGsrc/commands/cli.integration.test.ts— 2 new cases underrun command short-form bindings (#658)Sites touched
Code (binding fix):
bin/cli.ts—-qmoved from--quality-loopto--quiet;--quality-loopgets-Qsrc/lib/assess-collision-detect.ts:269— chain suggestion uses-Qsrc/lib/__tests__/assess-collision-detect.test.ts:118, 302— fixture + regexsrc/lib/__tests__/solve-comment-parser.test.ts:218, 225— assess flag table fixturesrc/commands/cli.integration.test.ts— new regression testAssess SKILL (3-mirror sync): all
-q→-Qin:skills/assess/SKILL.md,templates/skills/assess/SKILL.md,.claude/skills/assess/SKILL.mdskills/assess/references/predicted-collision-detection.md(×3 mirrors)Docs:
docs/reference/cheat-sheet.md,docs/reference/run-command.md— flag tables (run-command.md now lists-q, --quiettoo)docs/reference/chain-mode-analysis-2026-05.md— example chain commanddocs/features/assess-minimal-flags.md,assess-unification.md,spec-by-default.md— assess workflow examplesdocs/internal/what-weve-built.md— quality-loop bullet; heartbeat bullet preserved with explicit-q/--quietdocs/incidents/655/negative-result.md— mode-discrepancy callout rewritten; static-analysis table relabeledquiet modefor clarityLeft as-is (already correct under the fix or unrelated):
docs/features/quiet-mode-heartbeat.md,docs/features/run-renderer.md,docs/features/experimental-tui-dashboard.md— quiet-mode references are correct now that-qactivates quietsrc/lib/workflow/heartbeat.ts,heartbeat.test.ts,src/commands/run-progress.test.ts— heartbeat = quiet, correct post-fixsrc/lib/cli-ui/scrollback-harness.test.ts:70— historical artifact from fix(cli): #624's duplicate-header fix doesn't catch real log-update/scrollback bug (v2.3.0 regression confirmed) #647 narrative, preserved per specgrep -q,gh -q,git -q,jq -q,pip install -q, etc. — unrelated toolsLive verification
run --helpoutput (post-fix):Test plan
npm run buildpassesnpm run lintpassesnpx vitest run src/commands/cli.integration.test.ts— 6/6 pass (incl. 2 new)npx vitest run src/lib/__tests__/assess-collision-detect.test.ts src/lib/__tests__/solve-comment-parser.test.ts— all passnpx vitest run src/lib/workflow/heartbeat.test.ts src/commands/run-progress.test.ts src/lib/cli-ui/scrollback-harness.test.ts— no regressionsdiff -qafter sweepCloses #658