Skip to content

mcp exec through the agent: a yielded script's still-running shell step gets no_call #1528

Backlog

Description

@lydakis

From the Codex review of #1527.

sonny mcp exec goes through the agent's own exec only while the command runs in the foreground of a running call. One case falls outside that: a script's shell step whose script yielded.

When an outer exec yields (its default 30 s) while its tools.shell step still runs, the script's call is finished (lift). The step itself stays in the foreground, as test_a_yielded_call_keeps_its_step_past_its_turn covers. A sonny mcp exec that this step's command starts after the yield gets no_call (Database::command_call requires the launching call to be executing in a running turn). It then falls back to starting the servers itself, which a sandbox mostly prevents.

Supporting it means a command's call could outlive the call that launched it, and possibly its turn: who takes and answers it, where its audit row goes, and what ends it once the turn is over. That is beyond the v1 foreground prototype George approved (12-02), so it is tracked here rather than built in #1527.

Requested by George


Generated by Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions