Skip to content

feat(vscode): add project-scoped Agent Manager settings tab - #13369

Merged
marius-kilocode merged 7 commits into
mainfrom
migrate-settings-to-vscode-multiproject-support
Aug 24, 2026
Merged

feat(vscode): add project-scoped Agent Manager settings tab#13369
marius-kilocode merged 7 commits into
mainfrom
migrate-settings-to-vscode-multiproject-support

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Agent Manager worktree settings (project selection, default base branch, setup script) previously lived behind per-project gear menus inside the Agent Manager sidebar. That made them hard to discover and duplicated settings UI that already exists in the Kilo Settings editor, and the old dialogs each opened their own branch requests without project scoping, which raced with project switches.

This adds an Agent Manager tab to the Kilo Settings editor, placed under Auto-Approve and shown only for panels that opt in. The gear action in the Agent Manager sidebar now opens that tab pre-scoped to the owning project, and the tab keeps a project selector so multi-project users can edit each repository's worktree settings from one place.

The default base branch picker reuses the existing ProjectBranchDialog and BranchSelect UI rather than a Settings-specific popover, so search, keyboard navigation, and the Auto-detect option behave exactly like the picker users already know. Settings requests carry request IDs and a generation counter so a slow response for a previously selected project cannot switch the visible repository state, and a configured branch that no longer exists is cleared automatically when branches load.

Agent Manager settings tab under Auto-Approve

Default base branch picker dialog

Move Agent Manager worktree settings (project, default base branch,
setup script) into the Kilo Settings editor behind a new Agent Manager
tab shown only for panels that opt in. The gear action in the Agent
Manager sidebar now opens that tab pre-scoped to the owning project.

The default base branch picker reuses the existing ProjectBranchDialog
and BranchSelect UI instead of a Settings-specific popover. Settings
requests are generation-guarded so stale responses from a previously
selected project cannot switch the visible repository state.
…scode-multiproject-support

# Conflicts:
#	packages/kilo-vscode/webview-ui/agent-manager/AgentManagerApp.tsx
#	packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx
Comment thread packages/kilo-vscode/src/KiloProvider.ts
Comment thread packages/kilo-vscode/src/KiloProvider.ts Outdated
@kilo-code-bot

kilo-code-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx 5 Importing AM CSS pulls ~5k lines into the Settings/sidebar bundle
Files Reviewed (2 files)
  • packages/kilo-vscode/script/launch.ts
  • packages/kilo-vscode/src/agent-manager/project/settings.ts

Fix these issues in Kilo Cloud

Previous Review Summaries (2 snapshots, latest commit 62dda5a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 62dda5a)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx 5 Importing AM CSS pulls ~5k lines into the Settings/sidebar bundle
Files Reviewed (7 files)
  • packages/kilo-vscode/src/KiloProvider.ts - 0 issues (generation guard and setProjectDirectory findings fixed)
  • packages/kilo-vscode/src/agent-manager/AgentManagerProvider.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/project/messages.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/project/wiring.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/types.ts - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/SidebarBody.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx - 1 issue

Fix these issues in Kilo Cloud

Previous review (commit 6b86526)

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 3
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/src/KiloProvider.ts 3664 Generation counter increments for any requestId message, dropping in-flight AM settings responses
packages/kilo-vscode/src/KiloProvider.ts 3666 AM settings I/O calls setProjectDirectory, expiring dirty Models/Providers config
packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx 5 Importing AM CSS pulls ~5k lines into the Settings/sidebar bundle
Files Reviewed (50 files)
  • packages/kilo-vscode/src/KiloProvider.ts - 2 issues
  • packages/kilo-vscode/webview-ui/agent-manager/ProjectBranchDialog.tsx - 1 issue
  • packages/kilo-vscode/src/SettingsEditorProvider.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/project/settings.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/AgentManagerProvider.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/host.ts - 0 issues
  • packages/kilo-vscode/src/agent-manager/vscode-host.ts - 0 issues
  • packages/kilo-vscode/src/extension.ts - 0 issues
  • packages/kilo-vscode/src/kilo-provider/options.ts - 0 issues
  • packages/kilo-vscode/src/utils.ts - 0 issues
  • packages/kilo-vscode/script/launch.ts - 0 issues
  • packages/kilo-vscode/webview-ui/src/components/settings/Settings.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/src/App.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/AgentManagerApp.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/SidebarBody.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/ProjectSidebarBody.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/ProjectActions.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/WorktreeSectionActions.tsx - 0 issues
  • packages/kilo-vscode/webview-ui/agent-manager/ProjectList.tsx - 0 issues
  • packages/kilo-vscode/tests/unit/agent-manager-settings.test.ts - 0 issues
  • .changeset/agent-manager-settings-tab.md - 0 issues
  • plus 21 i18n locale files, message types, CSS, SDK gen, and remaining tests

Fix these issues in Kilo Cloud


Reviewed by grok-4.6 · Input: 82.4K · Output: 5.6K · Cached: 175.1K

Review guidance: REVIEW.md from base branch main

Route the settings-panel message through the shared project message
handler, build the project settings handler in the project wiring, and
drop the duplicate projectId prop that the merge left in SidebarBody.
…oject untouched

Only Agent Manager settings messages now bump the settings generation,
so unrelated Settings-panel requests carrying a requestId can no longer
invalidate an in-flight projects or branches response. The handler also
no longer retargets the panel project directory: the settings handler is
project-scoped by projectId, and touching the panel directory expired
config bindings and blocked unsaved config saves when switching the
Agent Manager project.
@marius-kilocode
marius-kilocode force-pushed the migrate-settings-to-vscode-multiproject-support branch from 47670a7 to 6f6f2e4 Compare August 24, 2026 13:49
Comment thread packages/kilo-vscode/script/launch.ts Outdated
Comment thread packages/kilo-vscode/src/agent-manager/project/settings.ts Outdated
@marius-kilocode
marius-kilocode force-pushed the migrate-settings-to-vscode-multiproject-support branch from 62dda5a to c7889b1 Compare August 24, 2026 14:15
@marius-kilocode
marius-kilocode merged commit 7390b5b into main Aug 24, 2026
35 checks passed
@marius-kilocode
marius-kilocode deleted the migrate-settings-to-vscode-multiproject-support branch August 24, 2026 14:24
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.

3 participants