-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(vscode): fix multi-project navigation shortcuts #12843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
marius-kilocode
merged 8 commits into
main
from
fix-multi-project-navigation-and-shortcuts
Aug 4, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b894206
fix(vscode): fix multi-project navigation shortcuts
marius-kilocode 24f463c
chore(vscode): format agent manager navigation
marius-kilocode d3dca39
fix(vscode): align grouped worktree navigation
marius-kilocode d9d3568
fix(vscode): apply grouped worktree order
marius-kilocode c8f86d8
fix(vscode): match section navigation order
marius-kilocode 8fe5329
fix(vscode): add project-local navigation hints
marius-kilocode 43ffa2b
fix(vscode): align hints with collapsed sessions
marius-kilocode 41ce0ce
Merge pull request #12845 from Kilo-Org/agent-manager-12806-navigation
marius-kilocode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "kilo-code": patch | ||
| --- | ||
|
|
||
| Fix multi-project Agent Manager keyboard navigation and Cmd/Ctrl shortcut selection when worktrees are grouped in sections. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "kilo-code": patch | ||
| --- | ||
|
|
||
| Show previous and next navigation hints using each project's own Agent Manager sidebar order. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/kilo-vscode/tests/unit/project-local-navigation.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { describe, expect, it } from "bun:test" | ||
| import { projectAdjacentHint } from "../../webview-ui/agent-manager/project-local-navigation" | ||
|
|
||
| describe("projectAdjacentHint", () => { | ||
| it("does not leak a hint to another project with the same raw ID", () => { | ||
| expect(projectAdjacentHint("project-a", "project-a", "shared", "local", ["local", "shared"], "prev", "next")).toBe( | ||
| "next", | ||
| ) | ||
| expect(projectAdjacentHint("project-b", "project-a", "shared", "local", ["local", "shared"], "prev", "next")).toBe( | ||
| "", | ||
| ) | ||
| }) | ||
|
|
||
| it("uses the active project's local sidebar order", () => { | ||
| expect(projectAdjacentHint("project-a", "project-a", "shared", "local", ["local", "shared"], "prev", "next")).toBe( | ||
| "next", | ||
| ) | ||
| expect(projectAdjacentHint("project-a", "project-a", "local", "shared", ["local", "shared"], "prev", "next")).toBe( | ||
| "prev", | ||
| ) | ||
| expect( | ||
| projectAdjacentHint("project-b", "project-b", "shared", "local", ["local", "other", "shared"], "prev", "next"), | ||
| ).toBe("") | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/kilo-vscode/webview-ui/agent-manager/project-local-navigation.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { adjacentHint } from "./navigate" | ||
| import { buildSidebarOrder } from "./section-helpers" | ||
|
|
||
| export function projectSidebarOrder(...args: Parameters<typeof buildSidebarOrder>): string[] { | ||
| return buildSidebarOrder(...args).map((item) => item.id) | ||
| } | ||
|
|
||
| export function projectAdjacentHint( | ||
| projectId: string, | ||
| activeProjectId: string | undefined, | ||
| itemId: string, | ||
| activeId: string | undefined, | ||
| flatIds: string[], | ||
| prev: string, | ||
| next: string, | ||
| ): string { | ||
| if (projectId !== activeProjectId) return "" | ||
| return adjacentHint(itemId, activeId, flatIds, prev, next) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.