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
fix(skills): skip Claude sync scratch folders (.trash, .staging) during skill discovery - #42610
Claude Code keeps old and half-synced copies of skills in hidden .trash and .staging folders. Orca was counting those leftover copies as installed skills, so the same skill could show up more than once. Orca now skips those two folders when it looks for skills.
What Changed
Before: skill discovery (the skills UI and orca skills installed) walked every folder under a skills root, including ~/.claude/skills/.trash/<round>/<skill> and ~/.claude/skills/synced/<account>/.staging/<skill>. Each Claude sync could leave more stale copies, and every one was listed.
After: discovery does not enter a directory named exactly .trash or .staging, at any depth. Everything else is unchanged: lookalikes such as .trashcan/ or trash/, other dot-directories, and live synced/<account>/<skill> copies are still found.
Mechanism:
skill-transaction-staging-names.ts adds CLAUDE_SYNC_SCRATCH_DIRECTORY_NAMES (.trash, .staging) and isClaudeSyncScratchDirectory(), next to the existing Orca staging-name check.
The native walk (skill-root-file-walk.ts, used on macOS, Linux, Windows, and on SSH hosts) refuses to enter those names, the same way it already skips Orca's own .*.orca-* staging entries.
The WSL guest find command (skill-discovery-wsl.ts) prunes the same names alongside the existing staging glob, built from the same constant so the two paths stay in sync.
Why
These folders are Claude Code's sync scratch space, not installed skills. Skipping only these two exact names removes the duplicates without hiding a skill someone deliberately keeps in some other dot-directory. Skipping all hidden directories would have been a broader behavior change than this bug needs.
N/A: there is no layout or styling change. The only visible effect is that duplicate entries stop appearing in the skills list; the before/after evidence is the path listings in Testing below.
Testing
Reproduced on macOS against a real ~/.claude/skills: on main the native walk returned 70 SKILL.md files, 5 of them under .trash/.staging. On this branch it returned 65, with 0 scratch copies.
Probe tree with scratch dirs plus lookalikes (.trashcan/, trash/real/, .hidden-ok/, synced/acct/live/, nested .trash/, and a symlink named .staging): on main both the native walk and the WSL find command (run through local bash) listed all 10 entries. On this branch both listed only the 5 legitimate ones.
New tests: skill-root-file-walk.test.ts (native walk ignores .trash/round/docs and synced/account/.staging/docs) and skill-discovery-wsl-bash-filter.test.ts (runs the generated WSL find script; Linux-only). The native test fails on main.
vitest src/main/skills/discovery src/main/skills/filesystem: the new and touched tests pass. skill-native-discovery.test.ts has 9 failures on this machine that show up on main too, because real home-directory skills leak into the test. That is unrelated to this change.
Passed: oxlint (anti-slop, code-quality native plugins), ast-grep, the changed-code quality gate, and oxfmt --check on the touched files.
Platforms: macOS run locally. Linux/WSL find covered by the Linux-only test in CI.
Risk
Level: Low
A skill whose own folder is literally named .trash or .staging would no longer be listed. Claude Code reserves those names for sync scratch, so this is not expected in practice. To back it out, revert this commit.
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
No actionable comments were generated in the recent review.
Walkthrough
Skill discovery now excludes .trash and .staging directories during local file traversal and in generated WSL find commands. A shared exported name list and exact-match predicate define these directories. Tests cover both discovery paths.
Severity of issue fixed: Medium
Merge Risk: Minimal · up to ff3a0
Installed-skill discovery now skips Claude sync scratch directories (.trash and .staging), so stale sync copies no longer inflate skill counts. Skills whose own folder is named .trash or .staging will no longer appear, which is intended. The change is small and low risk to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Issue #42604 asks that discovery skip dot-directories, at least .trash, and probably .staging. The whole-PR diff (merge base to head) shows the required behavior. `skill-transaction-staging-names.…
Out of Scope Changes check
Every changed file connects to the issue scope. The helper file adds one exported constant and one predicate. isSkillStagingEntryName is unchanged in the diff. The native walk and the WSL prune both…
Title check
The title names the main change: skill discovery now skips Claude sync scratch folders (.trash, .staging). It matches the code changes in the summary and the objectives, and it follows the conventiona…
Description check
The description follows the repository template and covers ELI5, What Changed, Why, Linked Issue (Fixes #42604), Visual Proof (N/A with reason), Testing, Risk (Low, with a revert path), Agent skill up…
Full details: Linked Issues check
Explanation
Issue #42604 asks that discovery skip dot-directories, at least .trash, and probably .staging. The whole-PR diff (merge base to head) shows the required behavior. skill-transaction-staging-names.ts adds CLAUDE_SYNC_SCRATCH_DIRECTORY_NAMES (.trash, .staging) and isClaudeSyncScratchDirectory. skill-root-file-walk.ts applies this check in entersDirectory, so the native walk does not enter those directories. skill-discovery-wsl.ts adds the same two names to the guest find prune expression. Tests cover both paths: skill-root-file-walk.test.ts lists a real docs/SKILL.md and omits the .trash and .staging copies. skill-discovery-wsl-bash-filter.test.ts runs the generated command on Linux and expects only the normal skill directory. The issue's suggestion to deduplicate identical skills or show their paths is phrased as optional ('would also help'). The PR does not implement it and says so. That is not a firm requirement. The change since the previous reviewed head is limited to the WSL prune test coverage and the native-walk test. The incremental diff could not be read, so this verdict relies on the whole-PR diff, which was readable.
Full details: Out of Scope Changes check
Explanation
Every changed file connects to the issue scope. The helper file adds one exported constant and one predicate. isSkillStagingEntryName is unchanged in the diff. The native walk and the WSL prune both use the same two names. The three test additions cover those two code paths. The PR does not skip all hidden directories and does not add deduplication, which keeps it narrower than the issue's broader suggestions. No unrelated files appear in the whole-PR diff.
Full details: Title check
Explanation
The title names the main change: skill discovery now skips Claude sync scratch folders (.trash, .staging). It matches the code changes in the summary and the objectives, and it follows the conventional commit style.
Full details: Description check
Explanation
The description follows the repository template and covers ELI5, What Changed, Why, Linked Issue (Fixes #42604), Visual Proof (N/A with reason), Testing, Risk (Low, with a revert path), Agent skill upstream boundary, and Notes. The author also filled in the checklist. The AI Disclosure section is blank, which the template allows for internal contributors. The lint/typecheck/test/build checklist item is unchecked, but the Testing section says which checks passed locally. The Testing section does not report a Linux or WSL run beyond CI, which the author states.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
This assertion can pass even if the surrounding find expression prints scratch skills. Add a Linux test that runs the command and checks that real and other hidden skills appear, while .trash and .staging skills do not.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 342248b4-acb6-4dad-b733-7042326828a1
Commits
Reviewing files that changed from the base of the PR and between 3036ed0 and 8cbb1de.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
nwparker
changed the title
fix(skills): skip Claude sync scratch copies during discovery
fix(skills): skip Claude sync scratch folders (.trash, .staging) during skill discovery
Nov 15, 2026
The failing check is test / tests node 24 7/12 on run 43681864168, job 132714824981, conclusion failure (attempt 2). journal-domain-maintenance.test.ts:305 received { kind: 'domain-retired', deleted: 4, more: true } and expected more: false. That file is not in ff3a0d07e643. PR checks passed failed because that job failed.
…42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* test: remove 53 low-value suites and trim redundant cases
---------
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
* Move environment store operations off the main thread
* Preserve CLI startup speed with the serialized environment owner
* Handle absent paired host labels in the producer regression fixture
* Preserve publication ownership and copy selected environment results
* Correct publication and WSL readiness regression fixtures
* Include environment store worker in deployed server artifacts
* Check fresh listing publication across an intervening store update
* Await store-backed results in new recovery coverage
* Retire failed page publications and retain CLI worker support entries
* Unpack environment store support modules for the installed CLI
* Align async store callers with their return contracts
* Avoid hardening work for absent environment store files
* Keep permission repair bounded to one hardening attempt
* Align store test fixtures and await pairing replacement
* Use the semantic store operation for external pairing fixtures
* Provide the live sender frame in the timed subscription fixture
* Share pending server lookups and settle retired phone requests
* Keep the relay error type import
* Keep status ownership and transport imports acyclic
* Await replacement pairing in status retirement cases
* Keep asynchronous server rows bound to their admitted pairing
* Keep inventory snapshots and queued delivery at one publication boundary
* Await saved-host and graph test setup through publication completion
* Finish async fixture types and remove foreground timing probe
* Await renderer surface transitions in process identity coverage
* Await nested graph publication fixtures through their callers
* Await restored pane graph publication before hook assertions
* Include imported store worker and sidebar files in web typecheck
* Prepare saved host storage in source-based WSL test rigs
* Await saved server lookups in the source retirement diagnostic
* Preserve newer WSL status across async saved-host reads
* Fence stopped probes when a newer WSL Ready arrives
* Keep saved WSL host selection covered when admission is off
* Check WSL probe ownership after async admission
* Preserve WSL stop authority without cancelling Ready persistence
* Prune removed WSL E2E real-time wait from flaky-test baseline
* Limit WSL callback invalidation to confirmed stops
* Retire pending WSL notices on every confirmed stop
* Close the WSL picker dialog explicitly between scenarios
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* Keep quit teardown within the source line budget
---------
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
* Remove finished-agent retention and keep sleeping status with panes
* Fix legacy pane projection and sleeping-agent regression fixtures
* Cover sleeping display-only status in parked terminal coverage
* Keep pane conversation identity only across continuous agent observations
* Remove duplicate import and keep sleep fixtures type checked
* Preserve conversation boundaries across replays and inherited clocks
* Cover conversation map stability across a large status batch
* Bound conversation capacity work to changed pane owners
* Pass capacity classifiers their layout input directly
* Finalize conversation provenance once per status batch
* Keep paired snapshot tests focused on observable outcomes
* Type the conversation provenance test fixtures explicitly
* Consolidate agent session imports after main merge
* Preserve provider replacement evidence when resetting conversation continuity
* Separate retention deletion from sleeping agent display
* Restore migration row bucket comparison
* Skip unusable pane identities before title ownership lookups
* Refresh conversation titles when their owning pane changes
* Update completion test sound mock after module move
* Keep finished agent status with sleeping panes and update agents by key
* Forward sleeping pane status and scope paired tab updates
* Preserve keyed selectors and compiler invalidation through final checks
* Keep bound store hooks visible to the compiler and measure published links
* Install provenance measurement before factory capture
* Use a static store hook and name presentation metadata once
* Preserve keyed freshness and atomic agent status publication
* Preserve remote folder dashboard regression after suite retirement
* Model pane wake before live identity reobservation in regression
* Share keyed row transactions and finish main integration
* Align runtime fixtures with keyed agent status reads
* Keep status projections addressed and activity summaries current
* Retire empty workspace status summaries after their source leaves
* Use the standard store fixture for parked terminal graph tests
* Align status fixtures with app types and a fixed test clock
* test: capture stored terminal render failure details
* Read terminal titles and completion prompts from keyed agent status
* Compose foreground agent state in worktree test stores
* test: complete lineage list agent state fixture
* Keep sleeping completion when retiring process authority
* Run durable agent-hook status tests with Node SQLite
* Preserve sleeping Done when renderer retires its process
* Update terminal fixtures for process retirement
* Read sleeping pane resume sources by key
* Bind sleep capture fixture to its live panes
* Pass the pane tree to the sleep capture fixture graph
* Preserve accepted completion identity through sleep
* Pass a nullable title to the status classifier
* Resolve accepted host status once and preserve delivery order
* Drop published sleep status when its host owner retires
* Use the supported remote completion test envelope
* Preserve published activity when filling completed status
* Update imports for main module moves
* Remove an unreachable native chat owner comparison
* Read host and unread card inputs by address instead of per root
A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Correct sleeping pane test imports after module moves
* Combine duplicate subscription test imports
* Record addressed acknowledgement deletions on row drops
* Type subscription fixture key set for string readers
* Keep accepted updates complete after observer failures
* Seed the send picker with its SSH terminal identity
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* Keep a host card's unchanged agent rows after filtering out another host's pane
Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.
* Seed the Copy Session ID shortcut test through keyed agent status
* Seed the graph payload partition test through keyed agent status
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
* Remove finished-agent retention and keep sleeping status with panes
* Fix legacy pane projection and sleeping-agent regression fixtures
* Cover sleeping display-only status in parked terminal coverage
* Keep pane conversation identity only across continuous agent observations
* Remove duplicate import and keep sleep fixtures type checked
* Preserve conversation boundaries across replays and inherited clocks
* Cover conversation map stability across a large status batch
* Bound conversation capacity work to changed pane owners
* Pass capacity classifiers their layout input directly
* Finalize conversation provenance once per status batch
* Keep paired snapshot tests focused on observable outcomes
* Type the conversation provenance test fixtures explicitly
* Consolidate agent session imports after main merge
* Preserve provider replacement evidence when resetting conversation continuity
* Separate retention deletion from sleeping agent display
* Restore migration row bucket comparison
* Skip unusable pane identities before title ownership lookups
* Refresh conversation titles when their owning pane changes
* Update completion test sound mock after module move
* Keep finished agent status with sleeping panes and update agents by key
* Forward sleeping pane status and scope paired tab updates
* Preserve keyed selectors and compiler invalidation through final checks
* Keep bound store hooks visible to the compiler and measure published links
* Install provenance measurement before factory capture
* Use a static store hook and name presentation metadata once
* Preserve keyed freshness and atomic agent status publication
* Preserve remote folder dashboard regression after suite retirement
* Model pane wake before live identity reobservation in regression
* Share keyed row transactions and finish main integration
* Align runtime fixtures with keyed agent status reads
* Keep status projections addressed and activity summaries current
* Retire empty workspace status summaries after their source leaves
* Use the standard store fixture for parked terminal graph tests
* Align status fixtures with app types and a fixed test clock
* test: capture stored terminal render failure details
* Read terminal titles and completion prompts from keyed agent status
* Compose foreground agent state in worktree test stores
* test: complete lineage list agent state fixture
* Keep sleeping completion when retiring process authority
* Run durable agent-hook status tests with Node SQLite
* Preserve sleeping Done when renderer retires its process
* Update terminal fixtures for process retirement
* Spike addressed renderer agent status publication
* Join status only against admitted mobile membership
* Scope status membership reconciliation and observe bindings by key
* Cover status admission and scoped replica recovery
* Name the status replica runtime owner type
* Read sleeping pane resume sources by key
* Bind sleep capture fixture to its live panes
* Bound status replica retirement and recover interrupted publication
* Pass the pane tree to the sleep capture fixture graph
* fix(status): skip non-UUID leaves, release phone frames on headless restore, avoid unbound tree scan
- Graph status bindings and replica membership skip leaves that can't carry a status row instead of throwing.
- The pre-seed phone gate only holds frames for the renderer generation that owes the seed; restoring headless authority redelivers the held worktrees.
- Status capture skips the leaf count when the tab has no terminal, and counts saved leaves only up to two.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(status): release held phone frames whenever the unseeded renderer loses the graph
Desktop builds without a headless fallback mark the graph unavailable but keep the renderer generation, so the pre-seed gate stayed shut until a window reopened.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* perf(status): reuse the capped saved-leaf count per immutable layout
Status churn on an unmounted tab with only a tab-level terminal no longer descends a deep saved split tree on every change.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Preserve accepted completion identity through sleep
* Pass a nullable title to the status classifier
* Resolve accepted host status once and preserve delivery order
* Drop published sleep status when its host owner retires
* Use the supported remote completion test envelope
* Preserve published activity when filling completed status
* Update imports for main module moves
* Remove an unreachable native chat owner comparison
* Read host and unread card inputs by address instead of per root
A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Correct sleeping pane test imports after module moves
* Combine duplicate subscription test imports
* Record addressed acknowledgement deletions on row drops
* Type subscription fixture key set for string readers
* Keep accepted updates complete after observer failures
* Seed the send picker with its SSH terminal identity
* Correct status publication imports after preload module move
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* Keep a host card's unchanged agent rows after filtering out another host's pane
Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.
* Document the runtime stub cast in the status admission test
* Await graph publication in the phone projection status tests
* Share the renderer status binding check and move graph tab-id validation out of the window graph
Main's async graph publication grew session-window-graph past the 300-line limit; the binding predicate now has one owner beside its capture path.
* Seed the Copy Session ID shortcut test through keyed agent status
* Restore the reviewed status binding checks and move the remount check instead
Keeps the capture path's lookup behind its UUID and changed-worktree guards; the window graph stays under the line limit by moving the PTY remount check to the graph promotion base.
* Seed the graph payload partition test through keyed agent status
* fix(agent-status): retry status publication after a failed or superseded graph sync
An inactive sender now asks for a graph sync on each status change (base got this
retry from agentStatusEpoch in the sync key), and a superseded ack parks the sender
until the next accepted graph instead of stopping it.
* fix(agent-status): don't stage status changes while a snapshot is pending
A parked sender kept tombstones for every removed occupant; the next snapshot
recaptures every row and main clears its replica on snapshot.
* fix(agent-status): don't start renderer status publication in paired web clients
The web stub answers every batch with superseded; with superseded now re-arming
on each accepted graph, a web sender would resend snapshots and request graph
syncs for nothing.
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
)
* Remove finished-agent retention and keep sleeping status with panes
* Fix legacy pane projection and sleeping-agent regression fixtures
* Cover sleeping display-only status in parked terminal coverage
* Keep pane conversation identity only across continuous agent observations
* Remove duplicate import and keep sleep fixtures type checked
* Preserve conversation boundaries across replays and inherited clocks
* Cover conversation map stability across a large status batch
* Bound conversation capacity work to changed pane owners
* Pass capacity classifiers their layout input directly
* Finalize conversation provenance once per status batch
* Keep paired snapshot tests focused on observable outcomes
* Type the conversation provenance test fixtures explicitly
* Consolidate agent session imports after main merge
* Preserve provider replacement evidence when resetting conversation continuity
* Separate retention deletion from sleeping agent display
* Restore migration row bucket comparison
* Skip unusable pane identities before title ownership lookups
* Refresh conversation titles when their owning pane changes
* Update completion test sound mock after module move
* Keep finished agent status with sleeping panes and update agents by key
* Forward sleeping pane status and scope paired tab updates
* Preserve keyed selectors and compiler invalidation through final checks
* Keep bound store hooks visible to the compiler and measure published links
* Install provenance measurement before factory capture
* Use a static store hook and name presentation metadata once
* Preserve keyed freshness and atomic agent status publication
* Preserve remote folder dashboard regression after suite retirement
* Model pane wake before live identity reobservation in regression
* Share keyed row transactions and finish main integration
* Align runtime fixtures with keyed agent status reads
* Keep status projections addressed and activity summaries current
* Retire empty workspace status summaries after their source leaves
* Use the standard store fixture for parked terminal graph tests
* Align status fixtures with app types and a fixed test clock
* test: capture stored terminal render failure details
* Read terminal titles and completion prompts from keyed agent status
* Compose foreground agent state in worktree test stores
* test: complete lineage list agent state fixture
* Keep sleeping completion when retiring process authority
* Run durable agent-hook status tests with Node SQLite
* Preserve sleeping Done when renderer retires its process
* Update terminal fixtures for process retirement
* Spike addressed renderer agent status publication
* Join status only against admitted mobile membership
* Scope status membership reconciliation and observe bindings by key
* Cover status admission and scoped replica recovery
* Name the status replica runtime owner type
* Read sleeping pane resume sources by key
* Bind sleep capture fixture to its live panes
* Bound status replica retirement and recover interrupted publication
* Pass the pane tree to the sleep capture fixture graph
* fix(status): skip non-UUID leaves, release phone frames on headless restore, avoid unbound tree scan
- Graph status bindings and replica membership skip leaves that can't carry a status row instead of throwing.
- The pre-seed phone gate only holds frames for the renderer generation that owes the seed; restoring headless authority redelivers the held worktrees.
- Status capture skips the leaf count when the tab has no terminal, and counts saved leaves only up to two.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(status): release held phone frames whenever the unseeded renderer loses the graph
Desktop builds without a headless fallback mark the graph unavailable but keep the renderer generation, so the pre-seed gate stayed shut until a window reopened.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* perf(status): reuse the capped saved-leaf count per immutable layout
Status churn on an unmounted tab with only a tab-level terminal no longer descends a deep saved split tree on every change.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Preserve accepted completion identity through sleep
* Pass a nullable title to the status classifier
* Resolve accepted host status once and preserve delivery order
* Drop published sleep status when its host owner retires
* Use the supported remote completion test envelope
* Preserve published activity when filling completed status
* Update imports for main module moves
* Remove an unreachable native chat owner comparison
* Read host and unread card inputs by address instead of per root
A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Correct sleeping pane test imports after module moves
* Combine duplicate subscription test imports
* Record addressed acknowledgement deletions on row drops
* Type subscription fixture key set for string readers
* Keep accepted updates complete after observer failures
* Seed the send picker with its SSH terminal identity
* Correct status publication imports after preload module move
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* Keep a host card's unchanged agent rows after filtering out another host's pane
Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.
* Document the runtime stub cast in the status admission test
* Await graph publication in the phone projection status tests
* Share the renderer status binding check and move graph tab-id validation out of the window graph
Main's async graph publication grew session-window-graph past the 300-line limit; the binding predicate now has one owner beside its capture path.
* Seed the Copy Session ID shortcut test through keyed agent status
* Restore the reviewed status binding checks and move the remount check instead
Keeps the capture path's lookup behind its UUID and changed-worktree guards; the window graph stays under the line limit by moving the PTY remount check to the graph promotion base.
* Seed the graph payload partition test through keyed agent status
* fix(agent-status): retry status publication after a failed or superseded graph sync
An inactive sender now asks for a graph sync on each status change (base got this
retry from agentStatusEpoch in the sync key), and a superseded ack parks the sender
until the next accepted graph instead of stopping it.
* fix(agent-status): don't stage status changes while a snapshot is pending
A parked sender kept tombstones for every removed occupant; the next snapshot
recaptures every row and main clears its replica on snapshot.
* fix(agent-status): don't start renderer status publication in paired web clients
The web stub answers every batch with superseded; with superseded now re-arming
on each accepted graph, a web sender would resend snapshots and request graph
syncs for nothing.
* Rebuild phone snapshots only for workspaces whose inputs changed
Every runtime graph publication built per-workspace phone snapshot inputs
(owner resolution, narrowed maps, mounted-surface capture) for every retained
workspace before asking whether the cached snapshot could be reused. A gate
now runs first: a workspace reuses its snapshot without building inputs when
no shared input changed, no keyed write touched its tabs, it has no mounted
terminal, its own workspace-keyed sources are identical and its host tab
mapping revision is unchanged. Anything without keyed provenance falls back
to the previous full path. The ambiguous-tab-id set and the per-workspace tab
index are cached by their tabsByWorktree identity.
* Remove the now-unused single host tab mapping setter
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
* Remove finished-agent retention and keep sleeping status with panes
* Fix legacy pane projection and sleeping-agent regression fixtures
* Cover sleeping display-only status in parked terminal coverage
* Keep pane conversation identity only across continuous agent observations
* Remove duplicate import and keep sleep fixtures type checked
* Preserve conversation boundaries across replays and inherited clocks
* Cover conversation map stability across a large status batch
* Bound conversation capacity work to changed pane owners
* Pass capacity classifiers their layout input directly
* Finalize conversation provenance once per status batch
* Keep paired snapshot tests focused on observable outcomes
* Type the conversation provenance test fixtures explicitly
* Consolidate agent session imports after main merge
* Preserve provider replacement evidence when resetting conversation continuity
* Separate retention deletion from sleeping agent display
* Restore migration row bucket comparison
* Skip unusable pane identities before title ownership lookups
* Refresh conversation titles when their owning pane changes
* Update completion test sound mock after module move
* Keep finished agent status with sleeping panes and update agents by key
* Forward sleeping pane status and scope paired tab updates
* Preserve keyed selectors and compiler invalidation through final checks
* Keep bound store hooks visible to the compiler and measure published links
* Install provenance measurement before factory capture
* Use a static store hook and name presentation metadata once
* Preserve keyed freshness and atomic agent status publication
* Preserve remote folder dashboard regression after suite retirement
* Model pane wake before live identity reobservation in regression
* Share keyed row transactions and finish main integration
* Align runtime fixtures with keyed agent status reads
* Keep status projections addressed and activity summaries current
* Retire empty workspace status summaries after their source leaves
* Use the standard store fixture for parked terminal graph tests
* Align status fixtures with app types and a fixed test clock
* test: capture stored terminal render failure details
* Read terminal titles and completion prompts from keyed agent status
* Compose foreground agent state in worktree test stores
* test: complete lineage list agent state fixture
* Keep sleeping completion when retiring process authority
* Run durable agent-hook status tests with Node SQLite
* Preserve sleeping Done when renderer retires its process
* Update terminal fixtures for process retirement
* Spike addressed renderer agent status publication
* Join status only against admitted mobile membership
* Scope status membership reconciliation and observe bindings by key
* Cover status admission and scoped replica recovery
* Name the status replica runtime owner type
* Read sleeping pane resume sources by key
* Bind sleep capture fixture to its live panes
* Bound status replica retirement and recover interrupted publication
* Pass the pane tree to the sleep capture fixture graph
* fix(status): skip non-UUID leaves, release phone frames on headless restore, avoid unbound tree scan
- Graph status bindings and replica membership skip leaves that can't carry a status row instead of throwing.
- The pre-seed phone gate only holds frames for the renderer generation that owes the seed; restoring headless authority redelivers the held worktrees.
- Status capture skips the leaf count when the tab has no terminal, and counts saved leaves only up to two.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(status): release held phone frames whenever the unseeded renderer loses the graph
Desktop builds without a headless fallback mark the graph unavailable but keep the renderer generation, so the pre-seed gate stayed shut until a window reopened.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* perf(status): reuse the capped saved-leaf count per immutable layout
Status churn on an unmounted tab with only a tab-level terminal no longer descends a deep saved split tree on every change.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Preserve accepted completion identity through sleep
* Pass a nullable title to the status classifier
* Resolve accepted host status once and preserve delivery order
* Drop published sleep status when its host owner retires
* Use the supported remote completion test envelope
* Preserve published activity when filling completed status
* Update imports for main module moves
* Remove an unreachable native chat owner comparison
* Read host and unread card inputs by address instead of per root
A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* Correct sleeping pane test imports after module moves
* Combine duplicate subscription test imports
* Record addressed acknowledgement deletions on row drops
* Type subscription fixture key set for string readers
* Keep accepted updates complete after observer failures
* Seed the send picker with its SSH terminal identity
* Correct status publication imports after preload module move
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <[email protected]>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <[email protected]>
* Keep a host card's unchanged agent rows after filtering out another host's pane
Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.
* Document the runtime stub cast in the status admission test
* Await graph publication in the phone projection status tests
* Share the renderer status binding check and move graph tab-id validation out of the window graph
Main's async graph publication grew session-window-graph past the 300-line limit; the binding predicate now has one owner beside its capture path.
* Seed the Copy Session ID shortcut test through keyed agent status
* Restore the reviewed status binding checks and move the remount check instead
Keeps the capture path's lookup behind its UUID and changed-worktree guards; the window graph stays under the line limit by moving the PTY remount check to the graph promotion base.
* Seed the graph payload partition test through keyed agent status
* fix(agent-status): retry status publication after a failed or superseded graph sync
An inactive sender now asks for a graph sync on each status change (base got this
retry from agentStatusEpoch in the sync key), and a superseded ack parks the sender
until the next accepted graph instead of stopping it.
* fix(agent-status): don't stage status changes while a snapshot is pending
A parked sender kept tombstones for every removed occupant; the next snapshot
recaptures every row and main clears its replica on snapshot.
* fix(agent-status): don't start renderer status publication in paired web clients
The web stub answers every batch with superseded; with superseded now re-arming
on each accepted graph, a web sender would resend snapshots and request graph
syncs for nothing.
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Jinjing <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: BingZ <[email protected]>
Co-authored-by: Neil <[email protected]>
(cherry picked from commit 47ef2ab)
imgbotBot
pushed a commit
to bibhubhatta/forca
that referenced
this pull request
Nov 19, 2026
…tablyai#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
imgbotBot
pushed a commit
to bibhubhatta/forca
that referenced
this pull request
Nov 22, 2026
…tablyai#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Claude Code keeps old and half-synced copies of skills in hidden
.trashand.stagingfolders. Orca was counting those leftover copies as installed skills, so the same skill could show up more than once. Orca now skips those two folders when it looks for skills.What Changed
Before: skill discovery (the skills UI and
orca skills installed) walked every folder under a skills root, including~/.claude/skills/.trash/<round>/<skill>and~/.claude/skills/synced/<account>/.staging/<skill>. Each Claude sync could leave more stale copies, and every one was listed.After: discovery does not enter a directory named exactly
.trashor.staging, at any depth. Everything else is unchanged: lookalikes such as.trashcan/ortrash/, other dot-directories, and livesynced/<account>/<skill>copies are still found.Mechanism:
skill-transaction-staging-names.tsaddsCLAUDE_SYNC_SCRATCH_DIRECTORY_NAMES(.trash,.staging) andisClaudeSyncScratchDirectory(), next to the existing Orca staging-name check.skill-root-file-walk.ts, used on macOS, Linux, Windows, and on SSH hosts) refuses to enter those names, the same way it already skips Orca's own.*.orca-*staging entries.findcommand (skill-discovery-wsl.ts) prunes the same names alongside the existing staging glob, built from the same constant so the two paths stay in sync.Why
These folders are Claude Code's sync scratch space, not installed skills. Skipping only these two exact names removes the duplicates without hiding a skill someone deliberately keeps in some other dot-directory. Skipping all hidden directories would have been a broader behavior change than this bug needs.
Linked Issue
Fixes #42604
Visual Proof
N/A: there is no layout or styling change. The only visible effect is that duplicate entries stop appearing in the skills list; the before/after evidence is the path listings in Testing below.
Testing
~/.claude/skills: onmainthe native walk returned 70 SKILL.md files, 5 of them under.trash/.staging. On this branch it returned 65, with 0 scratch copies..trashcan/,trash/real/,.hidden-ok/,synced/acct/live/, nested.trash/, and a symlink named.staging): onmainboth the native walk and the WSLfindcommand (run through local bash) listed all 10 entries. On this branch both listed only the 5 legitimate ones.skill-root-file-walk.test.ts(native walk ignores.trash/round/docsandsynced/account/.staging/docs) andskill-discovery-wsl-bash-filter.test.ts(runs the generated WSLfindscript; Linux-only). The native test fails onmain.vitest src/main/skills/discovery src/main/skills/filesystem: the new and touched tests pass.skill-native-discovery.test.tshas 9 failures on this machine that show up onmaintoo, because real home-directory skills leak into the test. That is unrelated to this change.oxfmt --checkon the touched files.findcovered by the Linux-only test in CI.Risk
Level: Low
A skill whose own folder is literally named
.trashor.stagingwould no longer be listed. Claude Code reserves those names for sync scratch, so this is not expected in practice. To back it out, revert this commit.Review
Agent skill upstream boundary
Notes
findprunes the same names.Original fix by @bbingz in #42610.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)