Skip to content

fix: cancel hook requests and processes with their callers #562

Description

@LeXwDeX

Why

Prompt and MCP timeouts return while underlying requests remain un-aborted, and agent tool subprocesses ignore their supplied signal.

Scope

Propagate Effect cancellation and timeout signals through command, model, MCP and agent execution; ensure resources and subprocess groups are cleaned up.

Approach

Turn the audit reproduction into a repository regression, fix the runtime boundary, and verify callers and adjacent hooks tests using Bun 1.3.14. Keep the user's existing working-tree edits outside this delivery.

Acceptance

Timeout/cancellation aborts underlying model and MCP signals and stops actual child work; success, deadline and instance-disposal tests pass.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions