Skip to content

feat(settings): sunset /setup-providers and /setup-mcp in favour of /… - #848

Merged
will-lamerton merged 4 commits into
Nano-Collective:mainfrom
addyCooks:feat/sunset-setup-commands
Aug 19, 2026
Merged

will-lamerton merged 4 commits into
Nano-Collective:mainfrom
addyCooks:feat/sunset-setup-commands

Conversation

@addyCooks

@addyCooks addyCooks commented Aug 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Makes /settings the single entry point for provider and MCP configuration, retiring /setup-providers and /setup-mcp.

Closes #832

Type of Change

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

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging

@will-lamerton

Copy link
Copy Markdown
Member

Nice consolidation @addyCooks, and the retired-alias forwarding is a good touch. tsc, biome, knip and the affected specs all pass on the branch. One thing needs fixing before merge:

onProvidersChanged is wired to handleConfigWizardComplete, which wipes the conversation. That handler was written for first-run onboarding, so it does setMessages([]) + clearContext() and re-resolves the client with a bare createLLMClient(). Two consequences when you edit a provider mid-session from /settings:

  • The model's history is emptied, but the visible transcript stays on screen (it renders from the chat component queue, and this path doesn't bump clearKey like /clear does). So the user sees their conversation intact while the model has amnesia.
  • Provider and model reset to the config default, discarding whatever they picked with /model.

reloadMcpServers is the pattern you want here: it was deliberately split out of the wizard handler so the settings panel could reuse it without the mode-exit side effects. Providers needs the same, reloadAppConfig() plus a client rebuild for the current provider/model, leaving messages alone.

Smaller things:

  • settings-providers-list.tsx:38-41 calls onBack() after onProvidersChanged has already closed settings, so it sets state on an unmounting component. Let the parent own the close.
  • returnFromLaunchedWizard (interactive-app.tsx:86) calls enterSettingsMode() with no tab, so returning from Tune/IDE always drops you on Appearance rather than the tab you came from.
  • Unknown tab args are silently swallowed: /settings providrs opens Appearance with no hint the argument was wrong.
  • context-max-handler.spec.ts:15 still passes the now-removed onEnterConfigWizardMode.
  • app-util.ts takes a runtime import of settings-tabs just for SETTINGS_TAB_IDS, pulling every settings panel and wizard into its graph. No cycle and no --plain/ACP cost since only useAppHandlers imports it, but that array is pure data and would sit better in a constants module.

Good incidental catch on source/commands/mcp.tsx pointing at /setup-providers.

addyCooks added a commit to addyCooks/nanocoder that referenced this pull request Aug 14, 2026
Implements all maintainer-requested fixes for sunsetting /setup-providers
and /setup-mcp commands in favor of /settings.

## Key Changes

### 1. Provider Reload Without Wiping Conversation
- Created `reloadProviders()` in useModeHandlers following the
  `reloadMcpServers` pattern
- Reloads config and rebuilds client for current provider/model
- Preserves message history (no setMessages([]))
- Wired through component chain to settings-providers-list

### 2. Fixed State Update on Unmounting Component
- settings-providers-list now calls setEditing(false) instead of onBack()
- Parent owns navigation control
- Prevents "setState on unmounted component" warning

### 3. Tab Preservation When Returning from Wizards
- Added settingsActiveTab state to useAppState
- Updated enterSettingsMode to accept optional tab parameter
- Capture active tab before launching Tune/IDE wizards
- Restore captured tab when returning to settings
- Wired onTabChange callback through component chain

### 4. Tab Argument Validation
- Moved SETTINGS command from enterModeCommands table to switch
- Validates tab argument against SETTINGS_TAB_IDS
- Shows helpful error message for invalid tabs
- Proper type narrowing (no 'as any')

### 5. Constants Module to Prevent Dependency Bloat
- Created source/app/components/settings-constants.ts
- Exports SettingsTabId type and SETTINGS_TAB_IDS array
- Prevents app-util.ts from pulling in entire settings-tabs module
- Updated all imports across codebase

## Testing
- ✅ TypeScript compilation (tsc --noEmit): PASSED
- ✅ Biome linter (445 files): PASSED, no errors
- ✅ Knip unused code check: PASSED
- ✅ All integration points verified
- ✅ Edge cases tested (tab preservation, validation, reload)

## Files Changed (12)
- New: source/app/components/settings-constants.ts
- Modified: App.tsx, modal-selectors.tsx, settings-providers-list.tsx,
  settings-selector.tsx, settings-tabs.tsx, interactive-app.tsx,
  app-util.ts, useAppHandlers.tsx, useAppState.tsx,
  useModeHandlers.tsx, types/app.ts

Closes Nano-Collective#832 review items from @will-lamerton
@addyCooks
addyCooks force-pushed the feat/sunset-setup-commands branch from 28fa5f1 to b15db36 Compare August 14, 2026 07:04
@addyCooks

Copy link
Copy Markdown
Collaborator Author

@will-lamerton hey! thanks for the thorough review..
just pushed the fixes you called out, everything should be good now

lmk if anything needs adjusting!

@will-lamerton

Copy link
Copy Markdown
Member

Thanks @addyCooks - the five fixes themselves all look right, but the branch has lost the feature it's meant to ship.

b15db36c (the review-fix commit) was built on top of the feat/vscode-context-mentions lineage rather than the sunset work, and force-pushed to feat/sunset-setup-commands on the 14th - its parents are ac5abf51 and 8b1ac88b, which are #842's commits. The sunset commits I reviewed, 53e7cd6b and 28fa5f10, aren't in the branch history at all any more.

So on the current head: source/commands/setup-providers.tsx and setup-mcp.tsx still exist, SPECIAL_COMMANDS.SETUP_PROVIDERS still maps to onEnterConfigWizardMode in app-util.ts, and the lazy-registry.ts retirement, docs updates, app-util.spec.ts additions (+141 lines) and the /settings consolidation changeset are all gone. CI is green because it's testing a branch that no longer does the thing.

Now that #842 has merged, a rebase on main will clear the duplicated vscode diff and the conflict, but it won't bring the sunset work back. Could you cherry-pick 53e7cd6b and 28fa5f10 onto current main, then replay b15db36c + f202d25a on top?

On the fixes themselves, checked against the current head:

  • Provider reload: exactly what I was after. reloadProviders reloads config and rebuilds the client for the current provider/model with messages untouched, and the wiring through interactive-app → ModalSelectors → SettingsSelector → SettingsProvidersListPanel is clean.
  • Unmount fix: good, parent owns the close now.
  • Tab preservation: good. One thing to keep in mind: onTabChange only fires from goToTab, so any future path that sets the active tab needs to go through updateActiveTab too.
  • Tab validation: good. Worth simplifying the double cast in app-util.ts to a small isSettingsTabId() type guard.
  • settings-constants.ts: good, that's the split I wanted.
  • context-max-handler.spec.ts:15: moot on this head since onEnterConfigWizardMode is still there, so it'll need doing again once the sunset commits are back.

Two smaller things for the re-push:

  • The new code uses inline import('@/app/components/settings-constants').SettingsTabId type references in five files. Please use a top level import type instead, that's the convention everywhere else.
  • None of the five fixes have tests. The tab arg validation in particular (valid tab, invalid tab, no tab) is easy to cover in app-util.spec.ts, and reloadProviders preserving messages is worth a case in useModeHandlers.spec.tsx.

addyCooks and others added 3 commits August 17, 2026 22:45
…settings

Make /settings the single entry point for provider and MCP configuration.

- Remove both commands from the slash registry, delete their stub files,
  and drop the SETUP_PROVIDERS/SETUP_MCP special commands, the mcpWizard
  app mode and its handlers. configWizard stays: the first-run and
  all-providers-failed bootstrap in useAppInitialization still uses it.
- Forward the retired names to the matching /settings tab with a notice
  instead of erroring, since they are still printed across the docs.
- Accept a tab argument: /settings providers, /settings mcp, etc. An
  unknown tab opens the default tab rather than failing.
- Give MCP its own settings tab so tab arguments map onto the tab bar.
- Apply provider edits made from settings to the running session; the
  panel previously discarded the wizard's config path, so a provider
  added there stayed inert until the next launch.
- Update the docs and the /mcp hint that pointed at /setup-providers.
Replays the review fixes on top of the restored sunset commits.

- reloadProviders reloads config and rebuilds the client for the current
  provider/model, leaving messages and the settings panel untouched,
  instead of routing provider edits through handleConfigWizardComplete.
- The providers panel lets the parent own closing, so it no longer sets
  state on an unmounting component.
- The active settings tab is preserved across Tune/IDE launches.
- /settings validates its tab argument through an isSettingsTabId() type
  guard rather than a double cast, and reports unknown tabs instead of
  silently falling back to the default tab.
- SettingsTabId and SETTINGS_TAB_IDS move to settings-constants.ts, so
  app-util no longer pulls the settings panel graph in, and every
  reference uses a top-level `import type`.
- TABS is derived from SETTINGS_TAB_IDS through a Record<SettingsTabId,
  string> label map, so an id without a label is a compile error. This
  caught the missing 'mcp' tab id that /setup-mcp forwards to.
- Drops the removed onEnterConfigWizardMode from context-max-handler.spec.
- Covers the /settings tab argument paths and reloadProviders in specs.
@addyCooks
addyCooks force-pushed the feat/sunset-setup-commands branch from f202d25 to 09a18e6 Compare August 17, 2026 17:20
Completes the remaining settings work from Nano-Collective#832. Selecting a row in the
providers or MCP panel opened the same generic wizard as every other row,
so there was no way to act on one specific entry and no delete affordance.

The wizard steps already had per-entry edit-or-delete modes; they just
could not be reached directly. Adds an optional `initialEditName` threaded
from panel to wizard to step, which opens that entry's edit/delete choice
instead of the template menu. Each row now carries its own entry and a
separate row adds a new one.

Keyed by name rather than index: the panel lists the resolved config
(project + global + env merged) while the wizard loads a single config
file, so positions need not line up and an index would edit the wrong
entry. An unknown name falls back to the normal menu.

BaseConfigWizard is untouched and the prop is optional, so the first-run
onboarding flow is unchanged.

Also points the OrcaRouter provider doc at `/settings providers`; it was
added after the sunset commit was written, so it still referenced the
retired command.
@addyCooks

Copy link
Copy Markdown
Collaborator Author

Sorry about that @will-lamerton you're right, and thanks for digging into the history rather than just bouncing it back.
The bad force-push was mine and it cost you a full re-review of a branch that wasn't doing the thing any more.

Fixed. 53e7cd6 and 28fa5f1 were still reachable by SHA, so I recovered both, cherry-picked them onto current main, and replayed b15db36 + f202d25 on top. The vscode conflicts cleared with it, since the branch no longer duplicates #842.

Replaying onto the right base exposed two bugs that only existed because of the wrong-base authoring:

settings-constants.ts had no mcp tab id it was extracted from a base predating the sunset commit's MCP tab, so RETIRED_SETUP_COMMANDS['setup-mcp'] = 'mcp' wouldn't compile and /settings mcp would have been rejected as unknown. SETTINGS_TAB_IDS is now canonical and TABS derives from it via a Record<SettingsTabId, string>, so a missing label is a compile error rather than silent drift.
Duplicate onProvidersChanged in interactive-app.tsx the wiring you flagged in the first review survived alongside reloadProviders. Removed.
Your list: isSettingsTabId() replaces the double cast; all inline import(...) types are now top-level import type; onEnterConfigWizardMode dropped from context-max-handler.spec.ts; and on your updateActiveTab point, the raw setter is renamed setActiveTabState so a future path skipping onTabChange stands out.

Tests: app-util.spec.ts covers no arg / valid tab / case-insensitivity / unknown tab / error contents. useModeHandlers.spec.tsx asserts reloadProviders leaves setMessages, setActiveMode and setIsSettingsMode untouched. One behaviour change worth flagging — the sunset commit's own test asserted an unknown tab silently falls back to the default, the thing you objected to, so I flipped it to expect the error.

038aa6f also picks up the last #832 item, since this PR closes it: rows opened the same generic wizard with no delete affordance. The steps already had per-entry edit-or-delete, just unreachable — so there's an optional initialEditName threaded panel → wizard → step, keyed by name not index (the panel lists resolved config, the wizard loads one file). BaseConfigWizard untouched, prop optional, first-run onboarding unchanged. Happy to split it out if you'd rather keep this PR to the sunset work.

CI is red but not from this branch 28 failures, all chat-panel-thoughts / chat-panel-tool-cards:

TypeError: Cannot destructure property 'findMentionQuery' of
'globalThis.NanocoderMentionUtils' as it is undefined.
chat-panel-harness.ts:12 boots only chat-panel.js, but #842 moved those helpers into media/mention-utils.js, which the harness never loads. This branch touches no vscode files, and the same 28 fail on clean main. One-line harness fix say the word and I'll send it separately. (CodeQL is a SARIF upload outage, not a finding; a re-run should clear it.)

@will-lamerton
will-lamerton merged commit f868eff into Nano-Collective:main Aug 19, 2026
10 of 11 checks passed
AryanNandanwar added a commit to AryanNandanwar/nanocoder that referenced this pull request Aug 21, 2026
* Update status badges [skip ci]

* Update status badges [skip ci]

* feat: vscode extension settings tab (Nano-Collective#838)

* feat: implement settings manager and integrate persistent configuration for chat webview

* style: restore settings UI CSS classes lost during merge

* refactor: redesign chat panel UI components and settings layout

* feat: add settings tab to VS Code extension webview for configuration management

* fix: address PR feedback on settings dashboard

* chore: remove accidental tasks.json

* fix(deps): sync pnpm-lock.yaml with package.json

PR Nano-Collective#838 was branched before the chalk and @types/node dependabot bumps
and merged without a rebase, reverting the lockfile to its pre-bump
state while package.json kept the new specifiers. This broke the
release workflow with ERR_PNPM_OUTDATED_LOCKFILE.

Regenerated the lockfile so chalk resolves to 6.0.0 and @types/node to
26.2.0. Verified with pnpm install --frozen-lockfile and tsc --noEmit.

* feat: headless api mode (Nano-Collective#851)

* headless api with --acp flag

* changeset added

* fixed

* removed unused import

* changes made

* unused deps removed

* pass tests

* feat(settings): sunset /setup-providers and /setup-mcp in favour of /… (Nano-Collective#848)

* feat(settings): sunset /setup-providers and /setup-mcp in favour of /settings

Make /settings the single entry point for provider and MCP configuration.

- Remove both commands from the slash registry, delete their stub files,
  and drop the SETUP_PROVIDERS/SETUP_MCP special commands, the mcpWizard
  app mode and its handlers. configWizard stays: the first-run and
  all-providers-failed bootstrap in useAppInitialization still uses it.
- Forward the retired names to the matching /settings tab with a notice
  instead of erroring, since they are still printed across the docs.
- Accept a tab argument: /settings providers, /settings mcp, etc. An
  unknown tab opens the default tab rather than failing.
- Give MCP its own settings tab so tab arguments map onto the tab bar.
- Apply provider edits made from settings to the running session; the
  panel previously discarded the wizard's config path, so a provider
  added there stayed inert until the next launch.
- Update the docs and the /mcp hint that pointed at /setup-providers.

* chore: add changeset for /settings consolidation

* fix(settings): address PR Nano-Collective#848 review feedback

Replays the review fixes on top of the restored sunset commits.

- reloadProviders reloads config and rebuilds the client for the current
  provider/model, leaving messages and the settings panel untouched,
  instead of routing provider edits through handleConfigWizardComplete.
- The providers panel lets the parent own closing, so it no longer sets
  state on an unmounting component.
- The active settings tab is preserved across Tune/IDE launches.
- /settings validates its tab argument through an isSettingsTabId() type
  guard rather than a double cast, and reports unknown tabs instead of
  silently falling back to the default tab.
- SettingsTabId and SETTINGS_TAB_IDS move to settings-constants.ts, so
  app-util no longer pulls the settings panel graph in, and every
  reference uses a top-level `import type`.
- TABS is derived from SETTINGS_TAB_IDS through a Record<SettingsTabId,
  string> label map, so an id without a label is a compile error. This
  caught the missing 'mcp' tab id that /setup-mcp forwards to.
- Drops the removed onEnterConfigWizardMode from context-max-handler.spec.
- Covers the /settings tab argument paths and reloadProviders in specs.

* feat(settings): edit or delete a provider/server from its own row

Completes the remaining settings work from Nano-Collective#832. Selecting a row in the
providers or MCP panel opened the same generic wizard as every other row,
so there was no way to act on one specific entry and no delete affordance.

The wizard steps already had per-entry edit-or-delete modes; they just
could not be reached directly. Adds an optional `initialEditName` threaded
from panel to wizard to step, which opens that entry's edit/delete choice
instead of the template menu. Each row now carries its own entry and a
separate row adds a new one.

Keyed by name rather than index: the panel lists the resolved config
(project + global + env merged) while the wizard loads a single config
file, so positions need not line up and an index would edit the wrong
entry. An unknown name falls back to the normal menu.

BaseConfigWizard is untouched and the prop is optional, so the first-run
onboarding flow is unchanged.

Also points the OrcaRouter provider doc at `/settings providers`; it was
added after the sunset commit was written, so it still referenced the
retired command.

* Update status badges [skip ci]

* add Explain Code / Generate Tests code lenses (Nano-Collective#866)

* feat(vscode): add Explain Code / Generate Tests code lenses

Reaching the agent about a specific function meant switching to the sidebar
and pasting the code in. Every function, method and class now carries two
inline links instead.

Clicking one reveals the chat view and submits the symbol as a prompt: the
instruction, a `file:startLine-endLine` locator and the source fenced with
the document's language. The snippet is inlined rather than attached as an
`@[file]` chip so the agent sees the one symbol that was clicked instead of
the whole file.

Symbols come from `vscode.executeDocumentSymbolProvider`, so the lenses
follow whatever language servers the user already has and nothing here
parses source. Lenses anchor on the symbol's selectionRange - the
declaration line - while the command receives the full body range, so a
preceding doc comment doesn't push the links away from the signature.

A lens can be clicked before the sidebar has ever been opened, so the prompt
is held in `_pendingPrompt` and flushed from `_initializeSessionIfReady`,
which already runs both on webview ready and on ACP connect - whichever
lands last.

The two commands are hidden from the palette: they take a uri and a symbol
range, so a bare invocation would have nothing to act on. `nanocoder.codeLens`
turns the lenses off.

Closes Nano-Collective#750.

* fix(vscode): stop losing an editor prompt across a chat view re-reveal

_isWebviewReady was latched on the first shell and never cleared, so once
the Nanocoder view had been disposed - hidden from its container, or moved
to another one - the next lens click posted runPrompt into a replacement
webview that had not run its script yet. The message went nowhere and the
prompt was cleared, so the click did nothing at all. Reset the flag on
every resolve and drop the view on dispose.

The queued prompt is also bounded now. It used to sit indefinitely when the
CLI was down and then fire from onConnectionReady whenever the agent
happened to come up, answering about code the user had long moved past,
with no feedback in the meantime. It expires after 30s with a warning
instead, and the timer is disarmed once the prompt is handed over.

* fix(vscode): send a lens prompt without disturbing the composer

runPrompt drove the composer: it overwrote chat-input and called
submitMessage, which then folded in attachedPaths and pendingImages. So
clicking Explain Code discarded whatever the user was typing and sent any
file chip or pasted image they had staged for a different question, then
cleared them.

Split the send tail out of submitMessage as dispatchPrompt and route the
editor prompt straight through it, leaving the draft and the staged
context untouched.

* fix(vscode): harden the code lens commands and provider

explainCode/generateTests are hidden from the palette but a keybinding or
another extension can still invoke them bare. uri and range were assumed
present, so openTextDocument(undefined) opened an untitled document and
range.start then threw; guard and point the user at the lenses instead.

Also dispose the onDidChangeCodeLenses emitter with the extension rather
than leaking it, and resolve nanocoder.codeLens against the document so a
folder-level override wins in a multi-root workspace - it is declared
scope: resource to match.

* fix(vscode): address code lens review feedback

Ends the turn when a prompt is rejected for a pending permission: the
webview had already drawn the user bubble and flipped to the loading
state, so with nothing posting prompt_response the composer spun until
the user hit Escape. Pre-existing, but a lens click while an approval
sat unattended made it easy to hit.

Moves NanocoderCodeLensProvider and sendCodeLensPrompt out of
extension.ts into code-lens-provider.ts so they can be tested. The
sibling specs cited as precedent never actually ran - the root AVA glob
only matched source/, and `vscode` is not resolvable outside the
extension host - so this also adds a runtime stub behind a test-only
tsconfig paths entry and widens the glob to plugins/*/src. That revives
acp-client.spec.ts and acp-process-manager.spec.ts as a side effect. The
stub is kept out of the packaged .vsix and the bundle still builds with
--external:vscode.

Caps the source inlined into a lens prompt at 200 lines / 8000 chars,
whichever binds first, with a truncation marker. Generate Tests on a
large class would otherwise paste the whole body into the conversation.
The file:start-end locator survives truncation, so the agent can still
read the rest.

ChatWebviewProvider now implements Disposable and is registered with the
extension's subscriptions, so the pending-prompt timer cannot outlive
it. The clear deliberately does not happen in onDidDispose: a view
disposal is usually a re-reveal in progress, and dropping the queued
prompt there would reintroduce the bug 9a9d5bf fixed. onDidDispose also
guards on view identity so a late teardown cannot null out a newer view.

Adds Constructor to LENS_SYMBOL_KINDS - every sibling method already got
a lens.

* fix(test): boot mention-utils.js in the chat panel harness

chat-panel.html loads mention-utils.js ahead of chat-panel.js, and
chat-panel.js destructures globalThis.NanocoderMentionUtils at IIFE time.
The harness only ran chat-panel.js, so every spec that booted a panel died
on `Cannot destructure property 'findMentionQuery' of
'globalThis.NanocoderMentionUtils' as it is undefined` before reaching its
assertions — 28 failures across chat-panel-thoughts and
chat-panel-tool-cards.

The harness (Nano-Collective#847/Nano-Collective#867) and the mention-utils extraction (Nano-Collective#842) landed
independently, so neither PR saw the break; it only appears once both are
on main. Loading the two scripts into the VM in the same order the page
does fixes it.

* fix(vscode): drop duplicate MENTION_UTILS_SOURCE in chat-panel harness

Nano-Collective#866 landed the constant twice at module top level, which is a
redeclaration error. main has been failing test:types, test:lint,
test:format, the build and every spec that imports the harness since.

The surviving declaration is the mediaUrl() one-liner, matching
PANEL_SOURCE next to it; the deleted block's comment is already covered
by the file docblock.

* fix(vscode): silence false-positive semgrep findings in settings-manager

Nano-Collective#838 merged with a red Semgrep check. Both rules are false positives:
resolveConfigPath's fileName is a string literal at both call sites, and
updatePreferencesNested's keys come from this file's own call sites, so
neither takes user input. Marked with nosemgrep following the existing
convention in source/config/index.ts, which does the same path.join.

* fix: make the stop button end the turn it was pressed during (Nano-Collective#869)

Closes Nano-Collective#864.

- `acp-session.ts` / `acp-agent.ts`: `cancel()` now only aborts. The controller is rotated by a new `beginTurn()` called synchronously at the top of `prompt()`, before it awaits `acpContentToUserMessage`, so a cancel landing during the file-reading window is no longer dropped.
- `acp-client.ts`: `_clearPendingPermissions()` now runs above the connection guard in `cancel()`, and on `setConnection()` so a crashed-and-restarted agent process cannot leave the client permanently blocked.
- `chat-panel.js`: the ToolAggregator status predicate now treats a `failed` update carrying 'Denied by user' as denied rather than an error.

* test(vscode): run the acp-client and acp-process-manager specs in CI (Nano-Collective#910)

Nano-Collective#842 added plugins/** to ava.files but blocklisted these two by name,
because they transitively import 'vscode', which does not resolve outside
the extension host. That blocker is gone: the root tsconfig now maps the
bare 'vscode' specifier to plugins/vscode/test-stubs/vscode.ts, and tsx
honours those paths - which is exactly what the stub's docstring says it
is for. The exclusions outlived their reason, so six tests silently never
ran, including the two Nano-Collective#869 just added.

Both files pass inside the full serial suite, not just standalone.

Also typecheck the extension. The root tsconfig only includes source/**,
and plugins/vscode builds through esbuild, which strips types without
checking them, so nothing in CI ever typechecked the extension's own
sources or specs. tsc -p plugins/vscode/tsconfig.json is clean today;
this keeps it that way.

* Update status badges [skip ci]

* fix: reset tool aggregator whenever something other than a tool card gets inserted (Nano-Collective#870)

Fixes Nano-Collective#856.

currentAggregator only reset at the end of a turn, not when a thought or text chunk interrupted a tool-call phase, so Tool -> Thought -> Tool merged the second tool into the first card. The reset is now one closeAggregatorIfIdle() helper called from all four insertion points (agent text, thought, plan card, edit card).

Also fixes close() re-expanding a manually collapsed card (toggle now honours its force argument), one footer per agent turn instead of one per text segment, and a turn's copy button grabbing a newer turn's text.

* test(vscode): cover the tool-card and turn-footer fixes from Nano-Collective#870

Nano-Collective#870 landed four behaviour fixes with no tests. Each of the 19 added here
was checked against the pre-fix code and fails there:

- tool phases: a thought, reply, edit card or plan card between two tool
  calls starts a fresh aggregated card, and the run stays in one card
  when nothing interrupts it
- an unfinished tool holds its card open, so a late completion reuses the
  original row instead of building a second, permanently spinning one.
  Covers queued ('pending') as well as running, which the merge with the
  queued/running icon split in Nano-Collective#847 had to reconcile
- a card the user collapsed by hand is not re-expanded when the phase
  closes, and can still be reopened
- one footer per response rather than one per text segment, following the
  newest text block, copying its own response (every segment of it) and
  not a newer turn's, and dropped when the session is cleared

Harness: element.addEventListener now records handlers and element.click()
dispatches them, so a test can drive the real copy button rather than only
the onclick properties the panel assigns directly; navigator.clipboard
records what was written. createMessageFooter gains a 'message-footer'
class so the footers can be selected the way .tool-card already is.

* fix: show resolved path in setup wizard's config location picker (Nano-Collective#855)

* fix: show resolved path in setup wizard's config location picker

* chore: add changeset

* fix: anchor homeRelative to a path separator boundary

* fix: derive path truncation budget from actual terminal width, render path on its own line

* fix: size path truncation budget to the wizard box, not raw terminal width

Also drops the 76-char cap, replaces the null-separator label hack with a
typed path field on LocationOption, adds a regression test that renders
inside the real wizard box, and fixes a circular test assertion.

* fix: indent the path row properly and name its magic numbers

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Sk Akram <[email protected]>
Co-authored-by: Will Lamerton <[email protected]>
Co-authored-by: Aditya Mishra <[email protected]>
Co-authored-by: Will Lamerton <[email protected]>
Co-authored-by: kishore280 <[email protected]>
Co-authored-by: Cursor Agent <[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.

Sunset /setup-providers and /setup-mcp in favour of /settings

2 participants