Skip to content

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 into
mainfrom
feature/1387-fix-onboarding-first-run-papercuts-from-a-stranger
Oct 10, 2026
Merged

admarble merged 7 commits into
mainfrom
feature/1387-fix-onboarding-first-run-papercuts-from-a-stranger

Conversation

@admarble

@admarble admarble commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the five first-run papercuts from the 2026-10-09 stranger smoke test:

  1. Local-install warning (AC-1, D-6): shouldWarnLocalInstall drops the "Running sequant from local node_modules … uninstall" warning when the project's package.json declares sequant (dependencies, devDependencies or optionalDependencies). That covers the README's headless path, and npm and pnpm layouts. A stray, undeclared install still warns.
  2. init next steps (AC-2): a commit step comes before npx sequant run <issue>. Its git add names only the paths init actually wrote (resolveCommitPaths). It never names the gitignored .sequant/, and it skips files init didn't write, such as AGENTS.md under --no-agents-md.
  3. doctor warning count (AC-3): the Warnings: count includes the upstream #43869 notice. The outdated-version remediation line no longer prints a second ! for its one counted warning.
  4. still running timer (AC-4): shows time since the current phase started, falling back to the issue's start when the phase has none.
  5. run --help (AC-5): --no-rebase now says it skips the rebase onto the base branch.

Fixes #1387

Acceptance criteria

  • AC-1: version-check.declared-dependency-1387.test.ts
  • AC-2: init.next-steps-1387.test.ts. The last case runs the printed git add in a temp repo with .sequant/ gitignored and no AGENTS.md, and checks what got staged.
  • AC-3: doctor.summary-count-1387.test.ts
  • AC-4: run-renderer.phase-elapsed-1387.test.ts
  • AC-5: run-help-no-rebase-1387.integration.test.ts

Mutation-verified: AC-1 — shouldWarnLocalInstall reduced to isLocalNodeModulesInstall(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 dependencies failed (with the devDependencies, optionalDependencies and pnpm cases); restored.

Mutation-verified: AC-2 — .sequant/ added to COMMIT_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.md failed; restored.

Mutation-verified: AC-3 — formatVersionRemediation prefix 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 ! line failed; restored.

Mutation-verified: AC-4 — removed the per-phase startedAt lookup in NonTTYRenderer (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+12m failed; restored.

Mutation-verified: AC-5 — --no-rebase help 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/main failed; restored.

Runner verification (graph-2026-10-freeze)

  • QA round 1: AC_NOT_MET (4/5). The printed git add named the gitignored .sequant/, failed when AGENTS.md was absent, and left out .gitignore. The runner fixed it in f32152f3, with an executable test.
  • QA round 1, tagged 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 in 9b2927c4. The fix keeps the exec's nearest-node_modules rule for nested installs.
  • QA round 2: AC_MET_BUT_NOT_A_PLUS (5/5).
  • Affected tests run: 230 passed across the init, version-check, doctor and run-renderer files; tsc --noEmit clean.
  • Plugin freeze (I-1): git diff --name-only origin/main...HEAD | grep -E '^(plugin|\.claude/skills|templates/skills)/' is empty.

🤖 Generated with Claude Code

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
@admarble
admarble merged commit 0525a25 into main Oct 10, 2026
10 checks passed
@admarble
admarble deleted the feature/1387-fix-onboarding-first-run-papercuts-from-a-stranger branch October 10, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant