Repository navigation
Description
Environment
- OS: macOS 26.5 (Apple Silicon)
- Orca: 1.4.193
- Host uptime: 7 days
- Live seats at capture: 3 agents (not “21 Orca processes” — those were Electron helpers)
Summary
Orca main process stays near 100% CPU for 5+ hours, driving sustained fan heat. Renderer/GPU helpers are secondary. parcel-watcher / session-scanner helpers were idle at 0%.
A 3s macOS sample of the main pid shows the same Node/libuv filesystem completion path reported in closed #15412:
uv__work_done → node::fs::AfterInteger → FSReqCallback::Resolve → V8/JS.
Traces show a concurrent git.exec storm (same family as open #15882): in the last 5MB of main.trace.ndjson, 10837 / 11318 spans were git.exec.
Persistent state (same Mac)
Path: ~/Library/Application Support/orca/profiles/local-default/orca-data.json (~4.6 MB)
| Metric | Value |
|---|---|
| Registered repos | 13 (paths exist) |
Live worktrees (orca worktree list) |
17 |
worktreeMeta |
1458 |
| …path missing on disk | 1439 (98.7%) |
| …path exists | 19 |
workspaceSession.tabsByWorktree |
1140 |
workspaceSession.unifiedTabs |
1140 |
| Path-missing meta still named by session maps | ~719 |
| Path-missing meta not session-pinned | ~720 |
Backups show live growth: worktreeMeta 1450 → 1458 over ~5 hours while real directories stayed at 19.
Paired Linux host shows the same class of leak (139 meta, 129 dangling = 92.8%). Details in companion issue about unsweepable orphans / no orca repo remove.
Trace breakdown (last 5MB)
Top git.exec subcommands: worktree 5133, diff 1157, rev-parse 1128, remote 1025, status 722.
Top cwds: matri-agent-platform (~3410), factory (~2770), then other registered repos.
Diagnostics caveat
orca diagnostics memory --json reported main CPU ~6% while ps showed ~100% on the same pid. Treat the memory JSON as a RAM map, not CPU truth.
Relation to prior work
- [Bug]: Main process reaches 100% CPU after terminal/worktree churn and retains thousands of removed worktrees #15412 (closed COMPLETED): symptom match (main 100%, AfterInteger sample, huge stale meta). Still reproducible on 1.4.193.
- perf(worktrees): batch-prune stale local metadata #17278 (merged batch-prune): explicitly “does not claim to fix every independent source of high CPU.” Our store shows why prune cannot finish the job: session maps pin ~half of dangling meta, and ~720 dangling rows remain even when unpinned — sweeper still not clearing them under multi-repo / remote / deregistered conditions (see companion orphan issue; code pointer
missing-local-worktree-metadata-pruning.ts). - [Bug][Linux/WSL2]: IDE freezes after long session — renderer ~52% CPU from continuous git.exec polling; runtime becomes unreachable #15882 (open): continuous
git.execpolling — we see the same span storm on macOS amplifying main load while many repos stay registered.
Expected
- Path-missing / deregistered
worktreeMeta+ session maps should not accumulate to ~100× live worktrees. - Main should not sit at ~100% CPU for hours with only a few live seats.
diagnostics memoryCPU should not contradictpsthis badly.- Users should not need to quit Orca and hand-edit
orca-data.jsonto recover.
Related companion
Filing a second issue for the orphan / no-CLI-remove store leak (retired repo id residue + unsweepable remote session mirrors). These share root causes; heat is the runtime symptom, orphans are the durable store symptom.
Activity
shahidbeig-a11y commentedon Sep 1, 2026
Companion + relatedness update
Companion store/orphan issue: #17776
Coordinated RCA with a second agent on the same Mac concluded these are two separate bugs that share a design habit (unbounded per-repo work / incomplete cleanup), but dangling
worktreeMetarows do not drive thegit.execstorm.Evidence: every
listWorktreescall site takesrepo.pathfrom the registered repo list; none iteratesworktreeMeta. Trace cwd volume tracks live registered repos (matri-agent-platform,factory), not the 1,439 dangling rows.So:
git.exec+FS storm on 1.4.193 (overlap with [Bug]: Main process reaches 100% CPU after terminal/worktree churn and retains thousands of removed worktrees #15412 / [Bug][Linux/WSL2]: IDE freezes after long session — renderer ~52% CPU from continuous git.exec polling; runtime becomes unreachable #15882 / incomplete perf(worktrees): batch-prune stale local metadata #17278 coverage)orca repo remove(sidebar “Unknown”, store growth)Cross-link only; do not merge the fixes.
shahidbeig-a11y commentedon Sep 1, 2026
Companion (separate defect): sticky editor tabs / multi-identity unifiedTabs — see the newly filed sticky-tabs issue linked from this conversation's follow-up. Not caused by the git.exec heat path.
shahidbeig-a11y commentedon Sep 1, 2026
Sticky editor-tab companion is #17778 (not heat).
perf(worktrees): gate worktree metadata hygiene on evidence, not on e…
perf(worktrees): gate worktree metadata hygiene on evidence, not on e…
perf(worktrees): gate worktree metadata hygiene on evidence, not on e…
perf(worktrees): gate worktree metadata hygiene on evidence, not on e…