Repository navigation
Open In at the Session header targets the original checkout, not the working directory (worktree sessions) #12993
sirwolfgang
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Symptom
A Session that moves checkouts still opens its original project from the header's Open In button. That covers the New worktree option,
create_worktree, andworking_directory.Cause
The header action in
client-ui-open-in-appreads the Session list summary:That
cwdis fixed from the immutable Session header. The live directory is theworkingDirectoryprojection.Fix we carry
Read the projection first and keep the summary as the fallback — two lines in
lib/client.js:Reproduction
.agents/worktrees/<name>.The same stale value reaches any other surface that reads
cwdfrom the Session summary rather than the projection — #12273 is the same class of bug for forge change-request bindings, which have no checkout dimension at all.All reactions