Repository navigation
fix(history): recognize folder workspace session targets - #21640
Conversation
|
Fixed the CI failures in 362b807 and propagated the correction to #21647 and #21650. The English catalog now contains all eight new workspace labels; the existing tests use the new action name and an array-shaped folder-workspace fixture. Validation: 79 targeted tests pass, renderer typecheck passes, localization verification passes, and the changed-code quality gate reports no new findings. Fresh CI is pending. |
|
Verification update (2026-09-20):
Merge verdict: Approve in stack order for folder-workspace session targeting and resume affordances. This verifies the folder-workspace presentation/resume path covered by the tests. Dedicated IDE sign-in/history loading, remote/SSH/WSL history, and cross-version runtime behavior remain outside this PR's evidence. |
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
d8ffdd0
into
nwparker/agy-history-workspace

Latest verification — 2026-09-20: Authenticated CLI generation now succeeds on macOS and Windows, superseding the earlier 401 limitation. Real local folder history/navigation remains verified. Windows/WSL/SSH folder-history UI and path-alias canonicalization are not claimed. All checks at the unchanged PR head are green. Earlier screenshots and test notes below describe their original runs.
ELI5
A conversation saved in a folder workspace should point back to that folder. History previously called it an “Unavailable worktree” because it only looked at git worktrees. It now recognizes the folder, offers the correct resume destination, and can jump back to it.
What Changed
Extend the existing history path matcher with folder workspace candidates. Reuse resume's execution-host resolution, preserve longest-path matching and archived status, and skip folders whose host is ambiguous. The cached map remains independent of the active selection. Lazy child sessions use the same folder-aware lookup.
History navigation uses the existing workspace activator, which supports folders and retains its missing-path/connection checks. Shared actions say “Workspace”; folder status labels no longer say “worktree.” Stacked on #21638; this diff addresses the folder label/navigation gap discovered while verifying installed agy.
Why
Hiding the unavailable label alone would leave the resume destination and jump action wrong. Extending the existing matcher keeps git and folder selection together and prevents matching identical paths across known execution hosts.
Linked Issue
Related to #15774 and #15775; follow-up to #21638. This also benefits other agents' history.
Visual Proof
Same real installed-agy conversation, with its recorded
/private/tmp/orca-agy-readiness-workspacefolder registered in an isolated profile. Captured through CDP with the Electron window hidden, using the electron and visual-proof skills.Before, Workspace scope incorrectly reports unavailable:
After, the redundant workspace metadata disappears and Resume in Workspace targets the folder:
All scope identifies “Current workspace · AGY readiness”:
Testing
pnpm tc:web) passes.e783bc9b67bpasses; commit lint/format hooks pass.Review
Notes
This does not canonicalize
/tmpand/private/tmp; those remain different recorded paths. Authenticated agy generation now succeeds; see latest verification above. This proof verifies real saved history and UI navigation, not a successful resumed agent response. Kept draft.Checklist