fix(orchestrator): separate office task session ownership (#1893)

This commit is contained in:
Carlos Florêncio
2026-07-23 14:12:58 +01:00
committed by GitHub
parent 26c38b02e1
commit c041dbee0e
19 changed files with 281 additions and 26 deletions
@@ -42,7 +42,8 @@ calm, paced, visible retry — separate from generic agent failures.
Cancel (`session.recover` action `cancel_retry`), it falls through to the
existing red Resume / Start-fresh banner (with friendly "stayed overloaded
after several retries" copy instead of the raw 529). Gated to non-office tasks
(`isOfficeTask`, i.e. `AssigneeAgentProfileID`) so genuine office tasks keep
(`isOfficeTask`, i.e. authoritative Office ownership plus an assigned runner)
so genuine office tasks keep
their structured error UI. The transient branch runs *before* run-mode
automation finalization in `handleAgentFailed` — it's the only non-terminal
failure path, so finalizing (which reaps the ephemeral worktree) must wait