Skip to content

feat(agent-manager): filter sessions by worktree - #12509

Merged
marius-kilocode merged 2 commits into
mainfrom
filter-sessions-by-worktree
Jul 24, 2026
Merged

feat(agent-manager): filter sessions by worktree#12509
marius-kilocode merged 2 commits into
mainfrom
filter-sessions-by-worktree

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Agent Manager session history currently combines sessions from the local workspace and every managed worktree, which makes it difficult to find sessions belonging to the selected worktree.

Add a Worktree source to /sessions whenever a managed worktree is selected. The existing Local source remains the aggregate history, while Worktree limits the same searchable, grouped session list to sessions assigned to the selected worktree. Switching back to the local workspace removes the worktree-specific source and returns history to Local. The source participates in the existing keyboard tab navigation, and its label is localized across every supported language.

Local history remains the aggregate view:

Agent Manager Local session history showing both local and worktree sessions

Worktree history limits the list to the selected worktree:

Agent Manager Worktree session history showing only the selected worktree session

@marius-kilocode
marius-kilocode merged commit 81e73bc into main Jul 24, 2026
24 of 25 checks passed
@marius-kilocode
marius-kilocode deleted the filter-sessions-by-worktree branch July 24, 2026 11:21
@kilo-code-bot

kilo-code-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (8 files, plus 15 i18n locale files)
  • packages/kilo-vscode/webview-ui/agent-manager/AgentManagerApp.tsx
  • packages/kilo-vscode/webview-ui/src/components/history/HistoryView.tsx
  • packages/kilo-vscode/webview-ui/src/components/history/SessionList.tsx
  • packages/kilo-vscode/tests/history-accessibility.spec.ts
  • packages/kilo-vscode/webview-ui/src/stories/history.stories.tsx
  • packages/kilo-vscode/webview-ui/src/styles/history.css
  • .changeset/worktree-session-history.md
  • packages/kilo-vscode/webview-ui/src/i18n/*.ts (all 22 locales, key added consistently)

Reviewed by claude-sonnet-5 · Input: 48 · Output: 10.9K · Cached: 1.5M

Review guidance: REVIEW.md from base branch main

t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…rktree

feat(agent-manager): filter sessions by worktree
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