Skip to content

fix(agent-manager): restore promoted session metadata - #13459

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-worktree-session-metadata
Aug 26, 2026
Merged

fix(agent-manager): restore promoted session metadata#13459
marius-kilocode merged 1 commit into
mainfrom
fix-worktree-session-metadata

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Opening an older session in a new Agent Manager worktree could leave the sidebar using stale local placement metadata. The worktree then lacked the expected session title and branch subtitle.

Why This Change Was Made

Managed session placement is the authoritative source after promotion, including while the project session cache is being refreshed. The live session merge now applies that placement before rendering. A regression test covers the stale-cache case.

User Impact

When an older session is opened in a worktree, the worktree card immediately shows the session title and branch name.

Evidence

  • bun test tests/unit/project-sessions-live.test.ts tests/unit/agent-project-sessions.test.ts tests/unit/project-session-filter.test.ts
  • bun run typecheck
  • bun run lint
  • bunx prettier --check webview-ui/agent-manager/project/sessions-live.ts tests/unit/project-sessions-live.test.ts
  • Isolated VS Code self-test: opened Agent Manager history, selected Open in worktree, and verified the live DOM showed the session title and almond-scorpio branch subtitle.
  • Final isolated VS Code console contained no errors.

@kilo-code-bot

kilo-code-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/restore-promoted-worktree-title.md
  • packages/kilo-vscode/tests/unit/project-sessions-live.test.ts
  • packages/kilo-vscode/webview-ui/agent-manager/project/sessions-live.ts

Reviewed by grok-4.6 · Input: 55.6K · Output: 6.7K · Cached: 275.7K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit d8815eb into main Aug 26, 2026
23 checks passed
@marius-kilocode
marius-kilocode deleted the fix-worktree-session-metadata branch August 26, 2026 12:02
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