Skip to content

fix(history): recognize folder workspace session targets - #21640

Merged
nwparker merged 5 commits into
nwparker/agy-history-workspacefrom
nwparker/agy-history-folders
Sep 21, 2026
Merged

nwparker merged 5 commits into
nwparker/agy-history-workspacefrom
nwparker/agy-history-folders

Conversation

@nwparker

@nwparker nwparker commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​181 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​174
Prod 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​109 $\color{#cf222e}{\Huge{\mathbf{−}}}$​39 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​70

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-workspace folder 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:

Before

After, the redundant workspace metadata disappears and Resume in Workspace targets the folder:

After

All scope identifies “Current workspace · AGY readiness”:

All scope

Testing

  • Manually tested on macOS in the hidden development app: real agy saved history, Workspace and All scope, expanded details, and the actual Jump to Workspace menu action after clearing active selection. The action restored the folder as active.
  • 67 focused tests pass: history map, worktree matching, resume targeting, virtual rows. New cases cover folder moves, local/SSH/runtime host separation, ambiguous hosts, path boundaries, nested git worktrees, archived folders, and resume destination with a different workspace active.
  • Renderer typecheck (pnpm tc:web) passes.
  • Changed-code-quality gate against the stack base e783bc9b67b passes; commit lint/format hooks pass.
  • Full build passed at the parent commit; not repeated for this renderer-only change. Windows/Linux and real SSH interaction still need validation.

Review

  • Agent skill upstream boundary: no upstream skill-installer material copied.

Notes

This does not canonicalize /tmp and /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

  • Small and focused
  • ELI5, behavior, mechanism, and approach explained
  • Before/after screenshots attached
  • Self-reviewed
  • Cross-platform and SSH impact considered
  • Full lint/typecheck/test/build suite (focused checks above; CI covers broader checks)

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@nwparker

Copy link
Copy Markdown
Contributor Author

CI advanced past the English catalog and exposed the separate generated runtime-catalog gate. Fixed that in b88101e and propagated it to #21647 and #21650. All four localization checks now pass locally: catalog, runtime catalog, extraction, and coverage. Fresh CI is pending.

@nwparker

Copy link
Copy Markdown
Contributor Author

Verification update (2026-09-20):

  • Focused folder-workspace/history UI tests: 69 passed across 4 files.
  • pnpm tc:web: passed.
  • Changed-code quality gate: 0 new findings across 54 changed files.
  • Existing PR CI is green, including all Node test shards, package/Windows package, and verify.

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.

@nwparker
nwparker marked this pull request as ready for review September 21, 2026 03:58
@pullfrog

pullfrog Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@nwparker
nwparker merged commit d8ffdd0 into nwparker/agy-history-workspace Sep 21, 2026
56 of 57 checks passed
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.

1 participant