Repository navigation
feat(studio): T06 stop/abort run from the Test pane - #1067
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /agents/:id/abortcancels a running OR approval-paused run with an optional reason (1..200 chars, default'user'); the reason lands on the status payload'sabortReason('user'for Stop clicks,'abort_listener:<id>'for abort listeners).AbortErrorkeeps SDK abort detection); paused runs go throughabortPaused, which disarms the approval deadline and marks the entrystoppeddirectly since the host emits no settle event./agents/:id/stopkept for existing callers and delegates to abort with the default reason.StopButtonin the Test run bar's actions slot (visible while running/paused, "Stopping…" in flight, error note on failure);stopAgent()now calls/abort.Test plan
npm run test:server --workspace apps/agent-forge -- abort app.test(45 tests, incl. 9 abort tests)npm run typecheck+typecheck:serverfor apps/agent-forgefallow audit --base origin/mainclean on changed filesGenerated with Devin