Skip to content

feat(studio): T06 stop/abort run from the Test pane - #1067

Merged
LinuxDevil merged 6 commits into
mainfrom
fb-t06-abort
Nov 12, 2026
Merged

LinuxDevil merged 6 commits into
mainfrom
fb-t06-abort

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Summary

  • POST /agents/:id/abort cancels a running OR approval-paused run with an optional reason (1..200 chars, default 'user'); the reason lands on the status payload's abortReason ('user' for Stop clicks, 'abort_listener:<id>' for abort listeners).
  • Running agent path aborts through the host; running flow path aborts its AbortController (DOMException AbortError keeps SDK abort detection); paused runs go through abortPaused, which disarms the approval deadline and marks the entry stopped directly since the host emits no settle event.
  • /agents/:id/stop kept for existing callers and delegates to abort with the default reason.
  • Studio: StopButton in the Test run bar's actions slot (visible while running/paused, "Stopping…" in flight, error note on failure); stopAgent() now calls /abort.
  • Merged with current main: preserves approval deadlines, steer messages, the Problems tab, and C19/L03 work.

Test plan

  • npm run test:server --workspace apps/agent-forge -- abort app.test (45 tests, incl. 9 abort tests)
  • Studio tests: StopButton, TestPane, NodeSpansSheet, state (92 tests)
  • npm run typecheck + typecheck:server for apps/agent-forge
  • fallow audit --base origin/main clean on changed files

Generated with Devin

Devin and others added 6 commits November 9, 2026 19:59
Union T06's abort route/abortReason tracking with main's approval
deadlines, steer messages and Problems tab: the paused-abort path keeps
abortPaused (reason + deadline disarm), the settle/failure paths keep both
abortReason and deadlineTimer handling.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
T06 routes Stop through /agents/:id/abort; the legacy /stop wrapper had
no callers left (fallow unused-class-member).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@LinuxDevil
LinuxDevil merged commit 7f5e195 into main Nov 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant