orca icon indicating copy to clipboard operation
orca copied to clipboard

Worktrees running Codex over SSH show no sidebar agent activity row — spinner-only titles carry no identity and launch identity is never consulted

Open choihjin opened this issue 4 months ago • 0 comments

Describe the bug

On an SSH host, a worktree with a working Claude session shows its agent activity row under the worktree card, but a worktree with a working Codex session shows nothing — no agent row at all — even though Codex is actively running tools.

Side-by-side on the same SSH host:

Worktree Agent (working) Terminal title (OSC) Sidebar agent row
A Codex ⠼ <cwd-name> ❌ none
B Claude ✳ <task summary> ✅ shown

Why it happens

All three identity signals fail for Codex over SSH:

  1. Title: Codex emits spinner + cwd titles (⠼ <cwd-name>) with no agent name. resolveTitleDerivedAgentType (src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts) correctly refuses to attribute a bare spinner to Claude (CLAUDE_AGENT_TOKEN_RE gate), so the title-derived row is dropped entirely.
  2. Hooks: Codex status hooks are dead in SSH worktrees — #8711. Confirmed live: with a remote Codex mid-task, the renderer's agentStatusByPaneKey stays empty, so no authoritative hook row exists either.
  3. Process: the foreground-process fallback runs a local ps; a remote pane's shell PID is not in the local process table.

Claude still shows because its titles are self-identifying (✳ prefix) and its hooks work remotely.

Meanwhile the tab already knows who it launched: tab.launchAgent is stamped by the agent launcher and worktree create --agent, survives the remote path (worktree-remote.ts passes launchAgent into runtime.createTerminal — confirmed live on an SSH workspace), and the hook-row path (resolveRowAgentType in worktree-agent-rows.ts) already prioritizes it. The title-derived fallback is the only sidebar path that never consults it.

To Reproduce

  1. Add an SSH host and create a worktree/workspace with Codex as the agent (worktree create --agent codex or the agent launcher).
  2. Give Codex a task so it runs tools — the terminal title becomes ⠸ <cwd>.
  3. Look at the sidebar: the worktree shows no agent activity row (a Claude worktree on the same host shows one).

Expected behavior

A worktree whose Orca-launched Codex is actively working should show a Codex activity row, like Claude does.

Additional context

  • #8711 (assigned) is the root-cause fix for the hooks signal and will bring full status detail. This issue is narrower: while hooks are absent, a spinner-only title plus the tab's launch identity is already enough evidence to show "Codex — Running" instead of nothing.
  • Possibly the repro shape behind #8763 (cannot_repro): remote panes where the only signal is an anonymous spinner title.

choihjin avatar Jul 21 '26 01:07 choihjin