Skip to content

Support cancellation during first-turn sandbox initialization #433

Description

@rohanmalhotracodes

Description

When a user cancels the first turn while the sandbox is still initializing, the turn does not cancel promptly because the cancellation signal is not propagated to the sandbox initialization methods.

This is separate from sandbox exec cancellation addressed in #407.

Steps to reproduce

  1. Start a new conversation that requires a sandbox.
  2. Cancel the first turn while the sandbox is still initializing.
  3. Observe that cancellation takes time to complete.

Expected behavior

The cancellation signal should be propagated through the sandbox initialization flow so that cancelling the first turn stops initialization promptly.

Actual behavior

Sandbox initialization does not currently receive the cancellation signal, causing cancellation to be delayed.

Acceptance criteria

  • Pass the cancellation signal to the relevant sandbox initialization methods.
  • Cancelling during first-turn initialization completes promptly.
  • Normal sandbox initialization remains unaffected when no cancellation is requested.
  • Add test coverage for cancellation during initialization.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions