feat: Implement cloud follow-up resume for agent sessions#1189
Open
feat: Implement cloud follow-up resume for agent sessions#1189
Conversation
98e4786 to
eaab07a
Compare
jonathanlab
reviewed
Mar 11, 2026
apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx
Outdated
Show resolved
Hide resolved
| method: "session/update", | ||
| jsonrpc: "2.0", | ||
| id: ts, | ||
| method: "session/prompt", |
| } | ||
| } | ||
|
|
||
| private broadcastTurnComplete(stopReason: string): void { |
Contributor
There was a problem hiding this comment.
What's the reasoning behind using this versus just catching the session/prompt response which already includes a stopReason? See: https://agentclientprotocol.com/protocol/prompt-turn#4-check-for-completion
Probably just convenience?
Contributor
Author
There was a problem hiding this comment.
Yeah good question, so as far as I could gather, the broadcast can be fired asap whilst the session/prompt response is tied to the request/response lifecycle. For cloud runs where there's no active prompt request in flight (prompt passed via pending_user_message inside the run state), there's no session/prompt response to catch
chore: cleaner chore: cleaner
eaab07a to
b0f9a3d
Compare
jonathanlab
approved these changes
Mar 11, 2026
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.
agent server broadcasts a notification when a turn finishes, needed for follow ups messages to cloud runs.
added support for cloud resume flow and snapshot-aware state management.
Edited UI to allow user to add messages while cloud run is executing and/or snapshot created ready to be resumed.
ph_code_snapshot_functionality.mp4