Skip to content

bug(platform): a steer restart refused for sandbox room fails the run instead of parking it #4720

Closed

Description

@yannickmonney

Summary

A task comment on a running agent run restarts its turn (steerTaskAgentTurnImpl, services/platform/backend/core/tasks/agent_run_host.ts:2630). When the restart's exec start is refused for room — session_memory_busy, the live-exec cap, a host refusal — the catch settles the run failed with steer_restart_failed (agent_run_host.ts:2989-3013). Verified on main at 73d03a9.

The kick treats the same refusals as a wait: it parks the run for capacity (parkTaskAgentRunForCapacity), closes the refused exec's key as a room wait, and spends no attempt (agent_run_host.ts:1722-1770). On the steer path the card shows a failure, the auto-retry budget is charged, and the retry meets the same full session.

Suggested fix

Classify the error in the steer catch with sandboxCapacityRefusal(err) / isDestroyPendingRefusal(err) as the kick does, and park the run for capacity under the new exec (execRefused, turn key released as AWAITING_ROOM_RESULT_STATUS) instead of settling it failed. The comment still heads the next brief through the discussion delta.

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 31, 2026
    c3f7ad3
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

    agent-readybugpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions