You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bugs] Title: Restoring an archived worktree session leaves it anchored to a stale, ... #1611
Title: Restoring an archived worktree session leaves it anchored to a stale, empty folder (breaks file tools + custom-agent discovery)
Affected version: 1.0.66-1 (desktop app, Windows)
Describe the bug
After restoring a worktree-backed session from archive, the session's working directory still points at the original generated worktree folder, but the actual git worktree has been re-created under a different (branch-named) folder. The original folder is left as an empty, non-git stub, so the session is anchored to a dead directory.
Steps to reproduce
Create a worktree-backed session (generates a folder, e.g. <worktrees>/<generated-name>).
Rename the branch early in the session (folder and branch names now diverge).
Archive the session, then later restore it from archive.
git worktree list shows the worktree at <worktrees>/<branch-name>, but the session's working directory is still <worktrees>/<generated-name> — now empty (no .git, no repo content, no .github/agents/).
Impact
File/edit/glob tools default to the dead path and fail until absolute paths to the real worktree are used.
Custom agents are discovered from <cwd>/.github/agents/; because cwd is the empty stub, all custom agents vanish from in-session tooling (only built-in agents remain) — even though the app UI still lists them.
Shell commands default to the wrong directory.
Expected behavior
On restore, the session's working directory should be updated to the worktree's current path (or the worktree restored at the path the session references), so file tools and .github/agents/ discovery keep working.
Workaround
Restart/reopen the session to re-anchor cwd; until then, pass absolute paths to the real worktree.
This issue has been marked as stale because it has had no activity for 60 days. It will be closed in 7 days unless there is new activity. If this still affects you, please comment with the latest app version, whether the problem is still reproducible, and any updated details.
Activity
github-actions commentedon Oct 23, 2026
This issue has been marked as stale because it has had no activity for 60 days. It will be closed in 7 days unless there is new activity. If this still affects you, please comment with the latest app version, whether the problem is still reproducible, and any updated details.