feat(ui): Stop button + queue-at-boundary for task interrupt (AGX1-391)#366
Closed
declan-scale wants to merge 1 commit into
Closed
feat(ui): Stop button + queue-at-boundary for task interrupt (AGX1-391)#366declan-scale wants to merge 1 commit into
declan-scale wants to merge 1 commit into
Conversation
Dual-mode composer button (Stop when a turn is streaming and the input is empty; Send that enqueues when there is text), Esc-to-interrupt, a queued-message chip flushed on the running->idle edge, and INTERRUPTED treated as a non-terminal status (composer stays enabled). Exposes the sync message/send AbortController so Stop tears down the stream, and settles the rpcStatus meta cache to idle so no thinking indicator hangs. The interrupt call goes through a thin adapter (POST /tasks/{id}/interrupt) with a TODO to swap to the typed SDK method once regenerated. Part of AGX1-391; depends on the backend PR scale-agentex#365.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Closing per design discussion on AGX1-391: interruption must be implemented by the agent itself (the agent stops its own turn and sets its state to INTERRUPTED; the control plane just forwards |
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.
Draft. Frontend half of AGX1-391 for the native agentex chat. Split out of the backend PR #365.
Included
INTERRUPTEDtreated as non-terminal (composer stays enabled; running is judged fromrpcStatus).message/sendAbortController exposed so Stop tears the stream down; meta cache settled toidleso no hung 'thinking' indicator.Depends on
POST /tasks/{id}/interruptroute +INTERRUPTEDstatus). The interrupt call uses a thin REST adapter with aTODO(AGX1-391)to swap to the typed SDK method after regeneration.Note
.tshooks; will strip to match the no-inline-comment convention before marking ready.🤖 Generated with Claude Code