Surface the Remote Control session URL through Temporal's bridged agent path - #215
Merged
Conversation
…nt path claude-code-swe-agent reports its Remote Control URL as a progress event with Stage: "remote-control-url", but BridgedAgentWorkflow was folding it into a plain narration line, and TurnResult/invokeRecord had nowhere to carry it once the turn completed -- so it only ever existed, briefly, as unstructured text inside a live poll's progress lines. Adds a first-class RemoteControlUrl field threaded through TurnProgress, TurnMeta, ConversationState (carried across an episode's turns), and invokeRecord, on both the pending and succeeded /invoke responses. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3zV2JdVTYGuS1KGwyXCJz
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
BridgedAgentWorkflowfolded claude-code-swe-agent'sremote-control-urlprogress stage into a plain narration string, and neitherTurnResultnor/invoke'sinvokeRecordhad anywhere to carry it — so the URL only ever existed as unstructured text during a narrow live-polling window and was lost once the turn completed.RemoteControlUrlfield threaded throughTurnProgress,TurnMeta,ConversationState(carried forward across an episode's turns, including its final one), andinvokeRecordon both the pending and succeeded/invokeresponses.Test plan
go build ./...go vet ./...go test ./...(all packages, including two new tests:TestBridgedAgentSurfacesRemoteControlUrl,TestBridgedAgentCarriesRemoteControlUrlAcrossTurns)🤖 Generated with Claude Code
https://claude.ai/code/session_01D3zV2JdVTYGuS1KGwyXCJz