Repository navigation
fix(#1387): first-run papercuts from a stranger smoke test — doctor contradicts the README install, init omits the commit step, warning count and phase timer are off - #1393
Merged
admarble merged 7 commits intoOct 10, 2026
Conversation
Entire-Checkpoint: 81773e09f2b5
Entire-Checkpoint: c7e0390494db
… gitignored .sequant/ Entire-Checkpoint: b4d58544a927
…cal-install warning Entire-Checkpoint: b713279ff68b
Entire-Checkpoint: 947ba02f3dc7
…second ! line for one counted warning Entire-Checkpoint: 99e9cbfd8cc3
…arding-first-run-papercuts-from-a-stranger
admarble
deleted the
feature/1387-fix-onboarding-first-run-papercuts-from-a-stranger
branch
October 10, 2026 13:53
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
Fixes the five first-run papercuts from the 2026-10-09 stranger smoke test:
shouldWarnLocalInstalldrops the "Running sequant from local node_modules … uninstall" warning when the project'spackage.jsondeclaressequant(dependencies, devDependencies or optionalDependencies). That covers the README's headless path, and npm and pnpm layouts. A stray, undeclared install still warns.initnext steps (AC-2): a commit step comes beforenpx sequant run <issue>. Itsgit addnames only the paths init actually wrote (resolveCommitPaths). It never names the gitignored.sequant/, and it skips files init didn't write, such asAGENTS.mdunder--no-agents-md.doctorwarning count (AC-3): theWarnings:count includes the upstream #43869 notice. The outdated-version remediation line no longer prints a second!for its one counted warning.still runningtimer (AC-4): shows time since the current phase started, falling back to the issue's start when the phase has none.run --help(AC-5):--no-rebasenow says it skips the rebase onto the base branch.Fixes #1387
Acceptance criteria
version-check.declared-dependency-1387.test.tsinit.next-steps-1387.test.ts. The last case runs the printedgit addin a temp repo with.sequant/gitignored and noAGENTS.md, and checks what got staged.doctor.summary-count-1387.test.tsrun-renderer.phase-elapsed-1387.test.tsrun-help-no-rebase-1387.integration.test.tsMutation-verified: AC-1 —
shouldWarnLocalInstallreduced toisLocalNodeModulesInstall(installPath)(declared check dropped);src/lib/version-check.declared-dependency-1387.test.ts > shouldWarnLocalInstall (#1387) > AC-1: declared dependency suppresses the local-install warning > does not warn when package.json lists sequant in dependenciesfailed (with the devDependencies, optionalDependencies and pnpm cases); restored.Mutation-verified: AC-2 —
.sequant/added toCOMMIT_PATH_CANDIDATES;src/commands/init.next-steps-1387.test.ts > buildNextSteps (#1387) > AC-2: the printed git add command works on what init wrote > stages the generated files without naming gitignored .sequant/ or a skipped AGENTS.mdfailed; restored.Mutation-verified: AC-3 —
formatVersionRemediationprefix restored to!;src/commands/doctor.summary-count-1387.test.ts > doctor summary (#1387) > AC-3: Warnings count includes the upstream notice > error handling > prints the outdated-version remediation without a second ! linefailed; restored.Mutation-verified: AC-4 — removed the per-phase
startedAtlookup inNonTTYRenderer(issue start only);src/lib/cli-ui/run-renderer.phase-elapsed-1387.test.ts > run-renderer heartbeat (#1387) > AC-4: elapsed is per phase > reads#21 exec (1m)when the issue started at T0, exec at T0+11m, now T0+12mfailed; restored.Mutation-verified: AC-5 —
--no-rebasehelp text reverted to "onto origin/main";src/commands/run-help-no-rebase-1387.integration.test.ts > run --no-rebase help (#1387) > AC-5: description names the base branch > describes --no-rebase as skipping the rebase onto the base branch, not origin/mainfailed; restored.Runner verification (graph-2026-10-freeze)
git addnamed the gitignored.sequant/, failed whenAGENTS.mdwas absent, and left out.gitignore. The runner fixed it inf32152f3, with an executable test.document: a pnpm install the project declares still warned, because the project root resolved to.pnpm/sequant@x. It was a real wrong result, so the runner fixed it in9b2927c4. The fix keeps the exec's nearest-node_modulesrule for nested installs.!lines for one warning (AC-3). Fixed by the runner in930dfa4c.package.jsonnext to the install, and walking up to find workspace members is out of scope for a papercut. The cost is a warning that shouldn't print, not wrong behaviour. The reason is recorded on fix(onboarding): first-run papercuts from a stranger smoke test — doctor contradicts the README install, init omits the commit step, warning count and phase timer are off #1387.tsc --noEmitclean.git diff --name-only origin/main...HEAD | grep -E '^(plugin|\.claude/skills|templates/skills)/'is empty.🤖 Generated with Claude Code