Skip to content

[Bug][macOS]: Main ~100% CPU / fan heat persists on 1.4.193 — git.exec + FS storm with 98.7% path-missing worktreeMeta (#15412/#17278 incomplete) #17775

Closed

Description

@shahidbeig-a11y

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

Expected

  1. Path-missing / deregistered worktreeMeta + session maps should not accumulate to ~100× live worktrees.
  2. Main should not sit at ~100% CPU for hours with only a few live seats.
  3. diagnostics memory CPU should not contradict ps this badly.
  4. Users should not need to quit Orca and hand-edit orca-data.json to 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

  1. shahidbeig-a11y commented on Sep 1, 2026

    @shahidbeig-a11y
    ContributorAuthor

    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 worktreeMeta rows do not drive the git.exec storm.

    Evidence: every listWorktrees call site takes repo.path from the registered repo list; none iterates worktreeMeta. Trace cwd volume tracks live registered repos (matri-agent-platform, factory), not the 1,439 dangling rows.

    So:

    Cross-link only; do not merge the fixes.

  2. shahidbeig-a11y commented on Sep 1, 2026

    @shahidbeig-a11y
    ContributorAuthor

    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.

  3. shahidbeig-a11y commented on Sep 1, 2026

    @shahidbeig-a11y
    ContributorAuthor

    Sticky editor-tab companion is #17778 (not heat).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions