Files
Kilo-Org_kilocode/packages/opencode/test
Marius a2fc2ad936 fix: keep plan follow-up sessions in the same worktree (#7945)
* fix: keep plan follow-up sessions in the same worktree

Route follow-up question replies by the owning session and create child implementation sessions from the planning session directory so "Start new session" stays visible and runs in the right worktree.

Refs #6339

* fix: keep worktree follow-up sessions reloadable

Adopt backend-created worktree sessions by normalized directory matching and keep plan follow-up sessions as roots so Agent Manager still restores them after reload.\n\nRefs #6339

* fix(vscode): track plan follow-up sessions in the sidebar

Record pending "Start new session" replies in single-session providers so the follow-up session.created event can be adopted and opened in the sidebar and regular tabs, while Agent Manager keeps using its own worktree adoption path.\n\nRefs #6339

* fix(vscode): forward pending follow-up session events

Allow pending plan follow-up session.created events through the KiloProvider SSE filter so sidebar and tab providers can adopt and open them before the new session is tracked.\n\nRefs #6339

* fix(agent-manager): open tab for adopted follow-up sessions

Navigate to the correct worktree or add a local tab when Agent Manager adopts a backend-created follow-up session, matching the existing sessionForked behavior.\n\nRefs #6339

* refactor(vscode): unify follow-up session adoption across all providers

Remove the separate adopt-session mechanism for Agent Manager and use the same KiloProvider follow-up path that sidebar and tabs use. The sessionCreated webview handler now works regardless of the current sidebar selection, so follow-up sessions appear as local tabs everywhere.\n\nRefs #6339

* test: align followup test with parentID field from main
2026-04-01 14:02:47 +02:00
..
2026-03-20 11:56:07 +01:00
2026-03-20 11:56:07 +01:00
2026-03-17 11:37:03 -03:00
2026-03-18 08:21:52 -03:00
2026-03-16 20:33:36 -03:00
2026-02-25 18:34:18 +01:00
2025-11-06 13:03:12 -05:00
2026-03-16 20:33:36 -03:00
2026-03-20 12:18:26 +01:00
2026-03-16 19:37:22 -03:00
2026-03-20 11:56:07 +01:00
2026-03-16 20:33:36 -03:00
2025-12-11 19:20:23 +01:00
2026-03-17 11:37:03 -03:00