orca/src
Jinwoo Hong e8c84bb704
fix: propagate hook-only agent status to Remote Orca Server clients (#7970) (#7998)
* fix: propagate hook-only agent status to Remote Orca Server clients

On a headless Remote Orca Server, agent-status hooks (OSC 9999) updated the
retained row map but never republished PTY-backed session snapshots — only
terminal *title* changes did. Paired desktop/web/mobile clients therefore
kept a stale agent state (e.g. opencode working/idle) until relaunch, and
even title-driven updates carried an empty prompt and no agent identity
because the snapshot builder only used the title heuristic (#7970).

- retainAgentRowSnapshot reports client-visible changes (state, prompt,
  agent type, tool, interactive prompt, interrupted) so handlePtyData can
  republish snapshots on hook-only transitions without fanning out a
  rebuild per repeated same-state hook ping.
- buildPtyMobileAgentStatus prefers the fresh retained hook payload over
  the title-only fallback, so clients see the real state/prompt/agentType
  and interactive prompts. The non-agent-title suppression (#1437 stuck
  spinners) still wins unless the hook shows a live tool/question signal,
  and it now also covers leaf-backed panes with no PTY record.

Co-authored-by: Orca <help@stably.ai>

* fix: refetch remote projects when the client-events stream replays

worktreesChanged/reposChanged emitted during a transport gap are lost, not
queued. A quick drop can replay without flipping the environment
unreachable, so the reachability-transition refetch never runs and a
server-created worktree stays invisible until relaunch (#7970). Request a
debounced project refresh on the replay tag, mirroring the SSH-state
refetch that already rides it.

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-09 19:21:55 -07:00
..
cli Disable experimental new worktree card style by default (#7977) 2026-07-09 14:52:03 -07:00
main fix: propagate hook-only agent status to Remote Orca Server clients (#7970) (#7998) 2026-07-09 19:21:55 -07:00
preload
relay fix(preflight): resolve WSL/SSH agent paths past shell aliases (#7867) 2026-07-09 17:08:35 -07:00
renderer fix: propagate hook-only agent status to Remote Orca Server clients (#7970) (#7998) 2026-07-09 19:21:55 -07:00
shared fix(preflight): resolve WSL/SSH agent paths past shell aliases (#7867) 2026-07-09 17:08:35 -07:00
types