Skip to content

fix: repair CI for the TypeScript 7 and AVA 8 bumps - #923

Merged
will-lamerton merged 2 commits into
Nano-Collective:mainfrom
bigattichouse:fix/ci-typescript7-ava8
Aug 23, 2026
Merged

will-lamerton merged 2 commits into
Nano-Collective:mainfrom
bigattichouse:fix/ci-typescript7-ava8

Conversation

@bigattichouse

Copy link
Copy Markdown
Contributor

Description

main is currently red on four of the seven PR checks, so every open PR inherits the failures. Two dependency bumps landed changes the repo config hadn't caught up with. This is config only — four files, no source changes.

TypeScript 7 removed baseUrl and now rejects non-relative paths, so tsc bails immediately:

tsconfig.json(19,3): error TS5102: Option 'baseUrl' has been removed.
tsconfig.json(21,12): error TS5090: Non-relative paths are not allowed.

TS7 also infers rootDir for the VS Code extension project as plugins/vscode, but that program deliberately pulls ../../source files in via its include, so it fails TS6059. Setting rootDir explicitly is inert there — the extension is bundled by esbuild (build:ext) and never emitted by tsc, so that project is typecheck-only.

AVA 8 requires extensions to be an array and dropped the object form:

✘ The extensions option must be an array

Converting it fixes discovery, but the object form was also what forced .ts files to load as ESM. Without it, specs under plugins/vscode resolve through the nearest package.json, which has no type. tsx loads them as CJS, their import test from 'ava' becomes a require() of a second CJS copy of AVA whose runnerChain is null, and all seven spec files die on AVA's internal assert. Scoping "type": "module" to src/ marks only the sources as ESM and leaves the package root — and the CJS bundle main points at — untouched. esbuild still emits CJS, and .vscodeignore already excludes src/**.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (empty — toolchain config only, nothing user-facing to release)

Testing

format, lint, types, types:vscode, knip, audit and build all pass. The AVA suite runs clean apart from one pre-existing failure in location-step.spec.tsx ("shows the resolved project path") that is sensitive to checkout path width and fails on main today — untouched here.

Verified the extension bundle is unaffected: esbuild --format=cjs still emits a CommonJS bundle after the src/package.json change.

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No breaking changes

🤖 Generated with Claude Code

https://claude.ai/code/session_01J7jWv6TLZ5UCr5BVfE2FP7

Researcher and others added 2 commits August 23, 2026 14:50
`main` is currently red on four of the seven PR checks. Two dependency
bumps landed changes that the repo config hadn't caught up with, and
every open PR inherits the failures.

TypeScript 7 removed `baseUrl` and now rejects non-relative `paths`
entries, so `tsc` errors out before it does anything useful:

    tsconfig.json(19,3): error TS5102: Option 'baseUrl' has been removed.
    tsconfig.json(21,12): error TS5090: Non-relative paths are not allowed.

TS7 also infers `rootDir` for the VS Code extension project as
plugins/vscode, but that program deliberately pulls ../../source files
in via its `include`, so it fails TS6059. Setting rootDir explicitly is
inert there: the extension is bundled by esbuild (`build:ext`), never
emitted by tsc, so the project is typecheck-only.

AVA 8 requires `extensions` to be an array and dropped the object form
that used to force .ts files to load as ESM:

    ✘ The extensions option must be an array

Converting it fixes discovery, but the dropped module-type hint leaves
specs under plugins/vscode resolving through the nearest package.json,
which has no "type". tsx then loads them as CJS, their `import test from
'ava'` becomes a require() of a second CJS copy of AVA whose runnerChain
is null, and all seven spec files die on AVA's internal assert. Scoping
"type": "module" to src/ marks only the sources as ESM and leaves the
package root — and the CJS bundle that `main` points at — untouched.
esbuild still emits CJS, and .vscodeignore already excludes src/**.

After this: format, lint, types, types:vscode, knip, audit and build all
pass, and the AVA suite runs clean apart from one pre-existing
path-width-dependent failure in location-step.spec.tsx that also fails
on main today.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7jWv6TLZ5UCr5BVfE2FP7
The fix is toolchain config only - no user-facing behaviour changes, so
there is nothing to put in the changelog.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7jWv6TLZ5UCr5BVfE2FP7
@bigattichouse bigattichouse mentioned this pull request Aug 23, 2026
9 of 12 tasks
@will-lamerton
will-lamerton merged commit c1d5d50 into Nano-Collective:main Aug 23, 2026
10 of 11 checks passed
addyCooks added a commit to addyCooks/nanocoder that referenced this pull request Aug 25, 2026
The spec compared a rendered Ink line against a plain path. CI sets
FORCE_COLOR=1, so the line carries ANSI escapes that `trim()` cannot
remove, and the reporter prints both sides identically because the codes
are invisible:

    Difference (- actual, + expected):
    - '/test/project'
    + '/test/project'

Reproduced locally: the test passes without FORCE_COLOR and fails with
it, both before and after Nano-Collective#923. Stripping ANSI first matches what the
other view specs in this repo already do.
will-lamerton pushed a commit that referenced this pull request Aug 26, 2026
#921)

The spec compared a rendered Ink line against a plain path. CI sets
FORCE_COLOR=1, so the line carries ANSI escapes that `trim()` cannot
remove, and the reporter prints both sides identically because the codes
are invisible:

    Difference (- actual, + expected):
    - '/test/project'
    + '/test/project'

Reproduced locally: the test passes without FORCE_COLOR and fails with
it, both before and after #923. Stripping ANSI first matches what the
other view specs in this repo already do.
will-lamerton added a commit that referenced this pull request Aug 29, 2026
)

* feat: add session-scoped AI artifacts and CLI plan mode

* chore: add plan artifacts changeset

* feat: add VS Code plan review flow

* feat: complete session artifact lifecycle

* fix: address artifact lifecycle review feedback

* test: normalize colored select output

* fix: preserve user-derived session titles

* feat(vscode): add slash command autocomplete quick actions

- Add /test, /explain, /doc dropdown in chat input
- Template text injected into textarea on selection
- What user sees is exactly what gets sent to AI
- Add 6 tests in chat-webview-provider.spec.ts
- Add changeset for patch release

* fix: harden VS Code artifact lifecycle edge cases

* fix: restore plan mode after failed approval

* fix(vscode): harden slash command quick actions

* Update status badges [skip ci]

* Update status badges [skip ci]

* Update status badges [skip ci]

* fix(test): strip ANSI before comparing the rendered location-step path (#921)

The spec compared a rendered Ink line against a plain path. CI sets
FORCE_COLOR=1, so the line carries ANSI escapes that `trim()` cannot
remove, and the reporter prints both sides identically because the codes
are invisible:

    Difference (- actual, + expected):
    - '/test/project'
    + '/test/project'

Reproduced locally: the test passes without FORCE_COLOR and fails with
it, both before and after #923. Stripping ANSI first matches what the
other view specs in this repo already do.

* fix: doc drift for 1.30.0

* feat(commands): add `/commit --copy` flag and progress spinner for slow commands

* fix(wizard): route Done & Save straight to summary, opt into mode providers

* feat: add optional usage and cost footer for assistant messages

* feat: forward abort signal through tool validation wrapper, fix MCP settings UI, harden drag-drop path parsing, and gate post-cancel tool updates

* fix: tests

* chore: version packages (#710)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: update nix package to v1.30.0

* chore: update homebrew formula to v1.30.0

* Update status badges [skip ci]

* ci: credit every contributor in the release notes (#982)

The GitHub release body is CHANGELOG.md piped through extract-changelog.js,
so a contributor is only named when whoever wrote the changeset remembered to
type "Thanks to @Someone". v1.30.0 named 4 people; 21 had merged PRs.

Adds scripts/generate-contributors.js, which asks GitHub's own
releases/generate-notes API who authored the PRs between the previously
published version and the one being released, filters bots, and prints a
Contributors section. Attribution is PR-author based rather than
commit-author based, so squash merges are credited correctly.

The release workflow inserts that section above Installation. The script
exits 0 and prints nothing on any failure, so a release can never break
because the credits could not be built.

* fix(daemon): Handle macOS daemon socket path length limits (#733)

* fix(daemon): handle macOS socket path length limit

On macOS Unix domain socket paths are limited to 104 bytes.
When project root exceeds this, use a hashed path in temp dir.
Add test coverage for the macOS-specific behavior.

* added changeset

* fix(daemon): fall back for long macOS socket paths

* Fix macOS daemon startup for long socket paths

Fixed daemon startup issue on macOS due to long socket paths by implementing a fallback to a hashed socket name.

* fix(daemon): extend socket path limit handling to Linux, test all branches

Follow-up to #733.

- Apply the sun_path cap on every Unix platform, not just macOS (104
  bytes on darwin, 108 on Linux/BSD). A deeply nested project hit the
  same silent-truncation bug on Linux.
- Bind at exactly the capacity: a path of exactly sun_path bytes binds
  fine, truncation starts one byte later, so the check is `>` not `>=`.
- Fall back to /tmp when TMPDIR is itself long enough to push the hashed
  name back over the limit.
- Split the platform-dependent logic into a pure resolveSocketPath(root,
  platform, tmpDir) so every branch is testable from any OS. The previous
  test no-opped entirely on CI, which is Linux-only.
- daemon start now reports the socket path from the lockfile rather than
  recomputing it: the path depends on TMPDIR, which need not match
  between a launchd/systemd-started daemon and the CLI.
- Document the fallback in docs/features/skills.md.

* fix(vscode): harden the slash-command menu from PR #802 review

Lifecycle: the menu only closed on input or Escape, so it survived blur and
caret moves. It now closes on blur and re-evaluates on selectionchange, both
mirroring the @-mention dropdown. Enter no longer claims the keystroke unless
the completion actually lands, so a stale token falls through to submit rather
than silently eating the key. Escape stops propagation so dismissing the menu
mid-stream no longer cancels the in-flight request, and dropdown rows select on
mousedown so blur cannot beat the click.

Removed the three chip guards. pathInfoResolved only ever originates from a
drag-drop or the native open dialog, both of which the extension has already
stat'd, so a command name can never arrive as a chip; what the guards could
match was a real file or folder named /test, /explain or /doc, which they
dropped silently.

Dropped the inline copy of the command table and helpers from chat-panel.js.
slash-command-utils.js always loads first, exactly like mention-utils.js, which
carries no such fallback.

Applying a command now replaces the token in place instead of concatenating and
trimming the whole composer, so text above and below a command keeps its
position and line breaks. /clear and /copy joined the menu as commands with no
template: the menu completes the name and the existing handlers run it.

assetVersion falls back to the extension version if statSync throws.
chat-panel.css is a build output, and an unbuilt one used to render the panel
unstyled rather than throw out of getHtml.

Retargeted the spec at the helpers it actually covers and renamed it to match
the mention-utils.spec.ts convention. It asserted against source text of
chat-panel.js, including the absence of an identifier that never existed, which
passed whether or not the wiring worked.

* Update status badges [skip ci]

* feat: add .nanocoderignore file support (#881)

* feat: add .nanocoderignore file support

* fix: Resolve lint errors

* docs: add changeset for .nanocoderignore support

* refactor: rename cwd to workspaceRoot in loadGitignore

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* test: add read-error coverage for .nanocoderignore

* style: fix formatting for loadGitignore signature

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(ignore): scope .nanocoderignore to context, not checkpoints

Follow-up to #881.

- Exclude .nanocoderignore from checkpoint snapshots via a new
  loadGitignore({nanocoderIgnore: false}) opt-out. Hiding a file from the
  model's listings shouldn't drop it from restore, which previously meant
  a .nanocoderignore'd package-lock.json was silently unrevertable.
- Document that .nanocoderignore is context hygiene, not a secrets
  boundary: read_file and execute_bash don't consult it, so a listed
  .env is still readable by path.
- Document `!` negation instead of claiming patterns are purely
  additive. The ignore package honours negations across add() calls, so
  a .nanocoderignore entry can un-ignore .gitignore and default rules.
- Add a proper docs/configuration section and point file-explorer and
  checkpointing at it.
- Cover negation, ordering and the checkpoint opt-out with tests.

* feat(vscode): add agent action timeline undo (#887)

* added timeline tracker

* Omit local timeline test artifacts from the branch.

Session snapshots and the scratch test.txt were captured during manual testing and should not ship with the feature.

Co-authored-by: Cursor <[email protected]>

* fix: stub isReadOnly on ACP queued-tools test mock (#2)

Timeline capture now calls toolManager.isReadOnly() during tool execution.
The queued-tools spec mock omitted that method, so four tests failed in CI
with "isReadOnly is not a function".

Co-authored-by: Cursor Agent <[email protected]>

* semgrep error

* passes tests

* fix: load slash-command helpers in chat-panel tests and quiet path-join scan
The panel IIFE reads NanocoderSlashCommandUtils at eval time, so the harness
must load slash-command-utils.js (and uri-utils.js) before chat-panel.js.

---------

Co-authored-by: Cursor <[email protected]>

* fix(vscode): harden the action timeline from PR #887 review

Correctness and data-safety fixes for the timeline undo feature:

- Exclude .nanocoder/timeline and .nanocoder/checkpoints from capture. User
  projects have no reason to gitignore them, so every opaque capture was
  snapshotting the previous one: quadratic growth, real files crowded out of
  the scan cap, and a revert walking its own internals.
- Skip the checkpoint when the dirty-file scan is truncated or git is
  unavailable. A truncated scan makes an already-dirty file look clean, so its
  before-image was taken from HEAD and a revert would discard the user's
  uncommitted work.
- Skip binary files rather than round-tripping them through UTF-8, and keep
  "binary in HEAD" distinct from "absent from HEAD" so a revert cannot delete
  a tracked binary the tool merely edited.
- Revert a whole assistant turn at once. Reverting the second call of a
  multi-call turn erased the first from history but left its edits on disk.
- Validate paths read back from timeline.json before writing or unlinking, and
  add the same containment check to FileSnapshotService.restoreFiles.
- Resolve the truncation point from the tool call id, clamping the stored
  index, so a shifted history cannot mis-truncate.
- Prune timeline data from abandoned sessions instead of growing forever.
- Keep the chat thread on screen when a revert is refused: buffer the agent's
  replay and only clear the panel once the revert has actually happened.
- Fix the auto-scroll target and replace the clipped hover tooltip with a hint
  line that also responds to keyboard focus.
- Drop the unused onTimelineUpdated hook and the five tool names in
  NON_WORKSPACE_TOOLS that do not exist.
- Cover the opaque capture path and the webview strip, and stop the specs from
  leaving temp directories behind.

* Update status badges [skip ci]

* Document tool output conventions for file content (addresses #765) (#837)

Co-authored-by: yulinlina <[email protected]>

* fix(docs): address review items on tool output conventions from PR #837

- Replace the vacuous `%4d:` source grep with behavioural assertions that
  execute read_file and compare the returned string to the fixture verbatim.
- Guard string_replace and diff_edit individually instead of files.some(),
  so one tool regressing can't hide behind the other.
- Add the missing title/description/sidebar_order frontmatter so the page
  renders titled and lands ordered in the sidebar.
- Document write_file, which deliberately returns stats only and no file
  content, and guard that with a test too.

* feat(vscode): group agent work into one summary (#898)

Co-authored-by: Checkmate <[email protected]>

* fix: use os.homedir() for models cache path on Windows (#886)

* fix: use os.homedir() for models cache path on Windows

process.env.HOME is undefined on Windows, causing path.join('~', '.cache')
to create a literal ~ directory. Use os.homedir() which resolves correctly
on all platforms.

* chore: add changeset for Windows models cache fix

* fix: use os.homedir() in fetch-models.js and add Windows regression tests

- Fix scripts/fetch-models.js to use os.homedir() instead of
  process.env.HOME || '~' which produces a literal ~ directory on Windows
- Add regression tests that verify the old pattern produces a literal ~
  while os.homedir() resolves the real home directory

* fix(vscode): restore panel features reverted by #898's merge

#898 merged upstream main by taking its own stale side of chat-panel.js
and chat-panel-harness.ts, silently reverting work that was already on
main and leaving 34 tests failing. `test:types` stayed green because
tsconfig excludes *.spec.ts, so the breakage never surfaced in CI.

Rebuilds chat-panel.js from the pre-merge file and reapplies the work
summary on top, so the following come back:

- the action timeline strip and its undo (#887), which the HTML and the
  extension host were still wired for
- slash command autocomplete, likewise still wired for in the HTML
- editor-tab drag and drop via NanocoderUriUtils.parseDropPayload, which
  had been replaced by an older inline copy full of scratch comments
- the MCP settings button opening .mcp.json rather than agents.config.json
- the cancelled icon on a denied edit card
- the per-turn footer, and the harness capabilities the timeline,
  aggregation and footer specs drive

Fixes in the work summary itself:

- a tool reporting back after Stop no longer opens a second "Working..."
  box with a timer nothing ever stops. ensureCurrentWorkSummary() refuses
  to open a turn once turnCancelled is set; a card already on screen still
  takes its update, so a call cancelled mid-flight reports its real
  outcome. Deliberately not gated on isProcessing, which would drop every
  card of a replayed session.
- whitespace-only reasoning no longer reveals an empty summary and splits
  the answer around it
- the summary is inserted at its first activity rather than at turn start,
  so a turn that answers before it works keeps its transcript order
- a manual collapse or expand survives the end of the turn
- an emptied plan retires the summary it was the only activity in

Regenerates chat-panel.css for the new work-summary classes.

* fix(artifacts): address review findings on the session artifact lifecycle

Correctness:
- tool-manager: copy instead of push when injecting write_plan, so plan mode
  no longer permanently mutates the shared TOOL_PROFILES array
- subagents: exclude write_plan/write_tasks/write_walkthrough from the offered
  set and hard-stop them at the execution boundary; subagents run with the
  parent session id and could otherwise overwrite its artifacts
- session-manager: validate a caller-supplied session id before it reaches
  path.join; session-id: lowercase-only, matching crypto.randomUUID()

Plan mode must never dead-end:
- approved-plan and the VS Code PlanReviewController degrade to approving
  against the transcript when the plan artifact is missing, empty, or
  unreadable, instead of throwing and leaving Yes permanently broken
- restore the 'Ask me clarifying questions' review option dropped by the PR

Walkthrough lifecycle:
- skip the nudge when the turn was cancelled, and flushAll before recursing
  so the prior turn's task panel lands in scrollback like every other site
- keep the internal nudge out of the persisted session file
- plain runs no longer force a walkthrough by default: the artifact directory
  is deleted on exit, so the extra model turn produced a file nobody reads

Housekeeping:
- ArtifactManager.cleanupOrphanedSessions plus a startup sweep, so artifact
  directories are reclaimed when a session is never persisted (autosave off)
  or retired by /clear

VS Code:
- drop the submit guard that silently discarded a follow-up typed mid-turn
- render a user bubble for plan approval and surface approval errors in the
  transcript, not only as a toast

* build(vscode): rebuild chat-panel.css and the packaged vsix; refresh changeset

* fix(subagents,tasks): enforce the subagent allow-list and retire tasks.json

Subagents:
- enforce the declared `tools:` allow-list at the execution boundary, not
  only when choosing what to offer. getToolHandler resolves a handler for
  every registered tool, so a subagent naming a filtered tool still ran it —
  a read-only agent like `explore` could write files. This supersedes the
  narrower artifact-tool guard.

Tasks:
- remove the legacy `.nanocoder/tasks.json` fallback in the working
  directory. Task state is session-scoped; every caller has a session id, so
  the fallback was a way to leak agent bookkeeping into the user's repo and
  share one list across concurrent sessions. Without a session, reads return
  empty and writes are a no-op rather than touching cwd.
- getTasksPath now returns string | null to make that explicit
- rewrite the storage and /tasks specs against the session-scoped model
  instead of faking process.cwd()

Docs:
- task-management: correct storage location, correct the tool name
  (write_tasks, not create_task/list_tasks/update_task/delete_task), note
  the profile gap and the upgrade path
- development-modes: document write_plan, the plan review options, session
  artifacts, and the nano/minimal plan-mode tool sets
- tune: note that write_tasks/write_walkthrough are full-profile only, and
  correct the nano profile listing (diff_edit, not string_replace)
- subagents: document allow-list enforcement and artifact-tool exclusion
- session-management: document the artifacts directory and its lifecycle

* docs(changeset): cover the allow-list fix and the tasks.json retirement

* docs: add a manual smoke test checklist for the artifact lifecycle

* fix(artifacts): stop the walkthrough being skipped, and space out the plan UI

Walkthrough was never written after approving a plan and letting the model
edit files. Two causes:

- After edits the loop appends its post-edit diagnostics prompt with
  role 'user'. createWalkthroughLifecycle scans back for "the latest user
  message" to decide whether the turn owes a walkthrough, so it saw the
  diagnostics prompt, concluded the user had moved on, and dropped the
  requirement. The diagnostics message now carries an exported marker and is
  skipped, alongside the internal nudge.
- Only the walkthrough-fallback recursion carried walkthroughLifecycle
  forward; every other recursion rebuilt it from the message tail, losing the
  `written` and `fallbackAttempted` flags. All recursion sites now thread it,
  so it is built once per user turn as intended.

UI, from testing feedback:
- plan review prompt: the saved-path block was four lines stacked with no
  breathing room. The clickable link now leads with the Cmd/Ctrl hint beside
  it, the raw path sits below it dimmed as the copy/paste and non-OSC-8
  fallback, and the groups are separated.
- dropped the "Executing exits Plan Mode…" line: the highlighted option's own
  description already states the consequence.
- artifact shortcuts move from above the composer to below it, alongside the
  mode indicator, and pick up ChatInput's margin so they line up with the
  status line instead of sitting one column in.

* fix: remove an accidentally committed node_modules symlink

A build-time symlink in a scratch worktree was picked up by `git add -A`.
Because it resolved to the repository's own node_modules, checking the branch
out replaced a real node_modules with a self-referential link, and pnpm failed
with ELOOP. The .gitignore entry only had the trailing-slash directory form,
which does not match a symlink of the same name — both forms are now listed.

---------

Co-authored-by: JIANZHOU <[email protected]>
Co-authored-by: hiarun02 <[email protected]>
Co-authored-by: Arun <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Aditya Mishra <[email protected]>
Co-authored-by: Will Lamerton <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Will Lamerton <[email protected]>
Co-authored-by: Egor Margineanu <[email protected]>
Co-authored-by: A Sivasubramanian Manoj <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Aryan Nandanwar <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: yulinlin <[email protected]>
Co-authored-by: yulinlina <[email protected]>
Co-authored-by: Checkmate <[email protected]>
Co-authored-by: Checkmate <[email protected]>
Co-authored-by: Tushar <[email protected]>
will-lamerton pushed a commit that referenced this pull request Aug 30, 2026
* fix: strip ANSI before comparing the resolved path in location-step spec

Follow-up to #923. With CI now reaching the test step, this is the last
red check on main.

The assertion compares a rendered Ink line against a bare path string
with only .trim() applied, so it passes whenever colour is off and fails
whenever it is on — the styled path carries SGR escapes that trim() does
not touch. The failure output is characteristically baffling, two
visually identical strings:

    Difference (- actual, + expected):
    - '/test/project'
    + '/test/project'

CI sets FORCE_COLOR=1, so this has been broken there all along. It was
invisible only because the coverage job used to die at `pnpm build` or
at AVA startup long before it reached this test.

strip-ansi is already a devDependency and is the convention used by the
other render-comparing specs (see user-input.spec.tsx).

Full suite under CI conditions (FORCE_COLOR=1, CI=true): 6565 passed,
0 failed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7jWv6TLZ5UCr5BVfE2FP7

* fix: retry the prompt-history temp-dir teardown on ENOTEMPTY

The after.always hook already passed recursive+force, but addPrompt
persists on a debounced timer, so a write can land while rmSync is
walking the tree and leave it deleting a directory that just became
non-empty again:

    ENOTEMPTY: directory not empty, rmdir '/tmp/nanocoder-test-...'
    1 hook failed
    11 tests skipped

Node exposes maxRetries/retryDelay on fs.rm precisely for this class of
error (ENOTEMPTY, EBUSY, EPERM, ...), so the teardown now backs off
rather than failing the run.

Seen intermittently in CI - it passed on two other runs of the same
suite, which is what makes it worth pinning down rather than re-running.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7jWv6TLZ5UCr5BVfE2FP7

---------

Co-authored-by: Researcher <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants