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
Read the remaining process starts without a synchronous ps on macOS, and pick a custom OmO by its holder in command outcomes (#1545 follow-ups) #1985
Follow-up from #1545 (branch fix/agent-process-identity).
That PR takes the synchronous macOS ps (processStartedAt -> Bun.spawnSync) off the path a pending or first message is checked on: currentIdentity in server/core/pending.ts, the OmO and GJC discovery inside the client snapshot it reads, and the Claude subagent refresh that snapshot starts (claudePaneSession). Three other callers still read a process's start synchronously, so on macOS each still holds the event loop while ps answers (bounded to a second by #1748):
paneProcessRoots (server/conversation.ts) calls omoProcessIdentity with its default synchronous processStartedAt for each foreground process. It runs when a message is typed into an OmO or OpenCode pane, including a ready first message with an OpenCode skill mention (queueFirstMessage -> drainPending -> dispatchPendingText -> openCodeSkillsToType -> paneProcessRoots), traced by the Codex review of that PR.
codexTranscriptPath (server/codex.ts): Math.min(...codexProcesses.map((process) => processStartedAt(process.pid) ...)), once per Codex process of the pane.
Each is already inside an async function. The fix is to await processStartedAtAsync (server/process-start.ts) there, or pre-read the starts as omoPanes and heldOmoProcess do, and pin it with a darwin unit test that fails when spawnSync is reached (see server/omo.test.ts, server/gjc-status.test.ts and the claudePaneSession case in server/conversation.test.ts in that PR).
A related point from the same review: command outcomes (server/prompt.tsoutcomeProcess) still pick an OmO through agentProcesses alone, so for an argv-silent custom OmO they bind its bundled SDK child, as before. Pending sends now prefer the OmO process holding the session (heldOmoProcess). Outcomes could take the same held pick, but their bound-process check (agentProcesses([running], agent)) would then need to accept a held custom OmO too.
Reproduce the ps paths: on macOS, or on Linux with process.platform mocked to darwin and Bun.spawnSync spied, call each function for a pane whose foreground process is the agent; spawnSync is called with ps.
Activity
fix(pending): bind a queued message to the agent process as command o…
fix(prompt): bind a command outcome to the custom OmO holding the ses…