Skip to content

feat(vscode): add slash command autocomplete quick actions - #802

Merged
will-lamerton merged 3 commits into
Nano-Collective:mainfrom
hiarun02:hiarun02
Aug 27, 2026
Merged

will-lamerton merged 3 commits into
Nano-Collective:mainfrom
hiarun02:hiarun02

Conversation

@hiarun02

@hiarun02 hiarun02 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR adds slash-command quick actions to the VS Code extension chat input.

Typing / in the Nanocoder chat box opens an autocomplete menu with quick actions like:

  • /test
  • /explain
  • /doc

When the user selects one of these commands, the command inserts a visible, editable prompt template directly into the textarea. For example, selecting /explain inserts:

Explain the following clearly:

This keeps the prompt transparent: the user sees exactly what will be sent to the AI, and no hidden prompt prefix is persisted in backend chat history.

This keeps the existing /clear behavior intact and only adds new quick-action support on top of the current slash-command flow.

Why

Users often repeat the same kinds of prompts, like asking for tests, explanations, or documentation. This feature makes those actions faster and less repetitive in the VS Code extension.

What changed

  • Added / autocomplete in the chat input UI
  • Added initial quick actions:
    • /test
    • /explain
    • /doc
  • Moved slash-command definitions and token handling into a shared webview helper
  • Inserted selected command templates directly into the textarea as visible, editable text
  • Tightened slash detection so URLs/paths like https:// and /tmp/ do not trigger command replacement
  • Added accessibility state for the slash dropdown
  • Added regression coverage for slash commands not becoming attachment chips
  • Preserved the existing /clear flow

Files changed

  • plugins/vscode/media/chat-panel.html
  • plugins/vscode/media/chat-panel.js
  • plugins/vscode/media/slash-command-utils.js
  • plugins/vscode/src/chat-webview-provider.ts
  • plugins/vscode/src/chat-webview-provider.spec.ts
  • .changeset/vscode-slash-command-actions.md

Type of Change

  • New feature

Changeset

  • Added a changeset describing this change for the changelog

Testing

Automated Tests

  • Existing build passes
  • New feature includes passing tests in .spec.ts files
  • Tests cover slash-command templates, slash detection, visible insertion, and chip regression behavior

Manual Testing

  • Tested in the VS Code Extension Development Host
  • Verified / autocomplete shows commands
  • Verified selecting /explain inserts Explain the following clearly: into the textarea
  • Verified selected command text is visible/editable before sending
  • Verified normal message submission still works
  • Verified existing /clear behavior is preserved
  • Verified slash commands do not appear as attachment chips

Notes

  • The implementation now uses visible textarea insertion instead of hidden prompt metadata.
  • This avoids persisting hidden prompt prefixes in backend chat history.

Copilot AI lite review requested due to automatic review settings August 6, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@akramcodez

Copy link
Copy Markdown
Member

@hiarun02 Thanks for the PR! I like the overall direction, but I don't think it's ready to merge yet. I noticed a few things that should be addressed first:

  1. Scope: The PR contains a large number of unrelated changes outside the VS Code extension. Please rebase onto the latest main and keep the PR focused on this feature only.

  2. Changeset: This is a user-facing feature, so it needs its own changeset. The existing changesets in the branch are unrelated.

  3. Hidden prompt persistence: The current implementation only hides the injected prompt during the active session. Since the concatenated prompt is persisted by the backend, reopening or resuming the session will expose the hidden prefix in chat history. I'd recommend either inserting the template directly into the input so users can see what is being sent, or, preferably, passing it separately as a system prompt if the backend supports it.

  4. Tests: The PR description mentions passing tests, but no tests were added for the new slash command behavior. Please add coverage for the prompt-building/command-mapping logic to help prevent regressions.

Once these are addressed, I'd be happy to review it again. Overall, the feature is heading in the right direction.

@hiarun02
hiarun02 requested a lite review from Copilot August 6, 2026 13:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@hiarun02

hiarun02 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I only modified 5 files, all within the VS Code extension. Could you clarify which unrelated changes you're referring to? Is it the formatting changes ' → ", or something else?

@akramcodez

Copy link
Copy Markdown
Member

Hi @hiarun02, thanks for following up!

To answer your question about the unrelated changes: Yes, it is exactly the formatting changes (' to ").

The Nanocoder project uses Biome with strict formatting rules (tabs, single quotes). Because your editor is likely running Prettier or a different local formatter, it rewrote hundreds of lines of code in chat-webview-provider.ts and webview-protocol.ts to use double quotes. This is what caused the massive +2,248 -433 diff.

Please revert the formatting changes so the PR only highlights the actual logic you added. Running pnpm lint --apply or using the project's Biome config should fix this.

In addition to the formatting, here is what still needs to be addressed before we can merge:

1. Data Safety: Hidden Prompt Persistence

  • What is wrong: You are currently string-concatenating the prefix into finalPrompt and sending it directly to _acpClient.prompt(finalPrompt).
  • Why it is wrong: Nanocoder's core engine persists the exact string it receives into the session history JSON. While your webview UI hides it temporarily during the active session, the moment a user closes VS Code and resumes the session later, the backend will send back the full concatenated string. This exposes the "hidden" prompt in the chat history.
  • What should be done: Instead of silently concatenating it behind the scenes, the easiest and safest approach is to have the UI inject the template directly into the input textarea (e.g., selecting /test literally populates the box with "Write tests for the following: "). This makes it transparent to the user and avoids polluting the backend history state.

2. Test Coverage

  • What is wrong: No .spec.ts files were added or modified.
  • Why it is wrong: We require tests for new features to prevent future regressions.
  • What should be done: Please add a test block in plugins/vscode/src/chat-webview-provider.spec.ts (or the equivalent test file) that asserts the _buildPrompt mapping behaves correctly when /test or /explain is selected.

3. Changeset Missing

  • What is wrong: The CI changeset-check failed because there is no changeset file.
  • What should be done: Please run pnpm changeset locally, write a quick user-facing description (e.g., "Added slash commands for quick actions in VS Code"), and commit the resulting .md file.

Once the formatting churn is removed and the history pollution is fixed, we'll be good to go!

@hiarun02
hiarun02 marked this pull request as draft August 9, 2026 06:38
@hiarun02
hiarun02 marked this pull request as ready for review August 9, 2026 08:20
@hiarun02
hiarun02 marked this pull request as draft August 9, 2026 08:21
@akramcodez

Copy link
Copy Markdown
Member

Hey @hiarun02, are you still working on this issue? Just wanted to check in on the progress.

- 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
@hiarun02
hiarun02 marked this pull request as ready for review August 21, 2026 06:45

@akramcodez akramcodez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hiarun02, thanks for the update! I checked the latest PR state and the overall implementation direction looks good. The previous formatting churn and hidden-prompt persistence issue are resolved, and the scope is now clean.

There are a few things I'd like you to address before we merge:

  1. Tests: The new chat-webview-provider.spec.ts tests duplicate the SLASH_COMMANDS data instead of testing the actual implementation. This means the tests can pass even if the real slash-command logic breaks. Please add tests that exercise the actual chat-panel.js logic (or move the command definitions into a shared module that both the implementation and tests import).

  2. Slash detection: The current regex can trigger on URLs/paths ending with /, e.g. https:// or /tmp/. This could cause the user's input to be unexpectedly replaced by a command template. Please tighten the matching logic so / is only treated as a slash command when it's actually being used as one.

  3. PR description: The implementation no longer uses hidden prompt metadata or modifies chat-webview-provider.ts; the command template is now inserted directly into the textarea, which is actually the safer approach. Please update the PR description so it reflects the current implementation.

  4. Accessibility: Please add the appropriate role="listbox" / role="option" and selection state to the slash-command dropdown, following the existing mention-dropdown pattern.

The first two are the main blockers for me. Once those are addressed, I think we're very close to merging this. Thanks!

@hiarun02

hiarun02 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor Author

@akramcodez, Thanks for the detailed review, I’ll address the tests and slash detection first, then update the PR description and accessibility changes. Appreciate the feedback I’ll push the updates soon.

@hiarun02

Copy link
Copy Markdown
Contributor Author

Updated the PR based on the latest review feedback:

  • Moved slash-command definitions and token handling into a shared slash-command-utils.js helper so tests exercise the actual implementation.
  • Tightened slash detection so URLs/paths like https:// and /tmp/ do not trigger command replacement.
  • Kept the safe visible-template behavior: selecting /test, /explain, or /doc inserts editable text directly into the textarea.
  • Added accessibility state for the slash dropdown with role="listbox", role="option", aria-selected, and aria-activedescendant.
  • Added regression coverage to ensure slash commands cannot become attachment chips.

I also manually verified the behavior and recorded a video showing /explain inserting Explain the following clearly: into the textarea.

Screen.Recording.2026-08-22.at.1.19.24.AM.mov

@will-lamerton

Copy link
Copy Markdown
Member

@will-lamerton
will-lamerton merged commit 389ff8b into Nano-Collective:main Aug 27, 2026
1 check passed
will-lamerton added a commit that referenced this pull request Aug 27, 2026
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.
@hiarun02

Copy link
Copy Markdown
Contributor Author

@will-lamerton Appreciate it! I’ll add myself as a contributor. Thanks :)

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]>
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.

4 participants