feat(desktop): mid-turn steer injection#3360
Open
JesonChou wants to merge 1 commit into
Open
Conversation
d558c42 to
a9db29a
Compare
- Add Agent steerQueue + Steer/SteerConsumed/consumeSteer methods - Consume queued steer each loop iteration, persist to session, emit Steer event - Defer final-answer return while steer queue has items - Add event.Steer kind with wire mappings (desktop + serve) and tests - Add Controller.Steer/SteerConsumed delegation to executor - Add App.Steer/SteerForTab with per-tab routing - Add Steer/SteerForTab to frontend AppBindings, mock, and useController - Add runningRef + steer dispatch in App.tsx handleSend - Add MCPSurfaceReady gap-fix in wire mappings
a9db29a to
867debb
Compare
Author
|
@SivanCola @esengine 大佬请审核下,已经根据1.5 rebase过 |
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
SteerForTab).historyMessagesToItemstool-result lookup withSanitizeToolPairing's turn-scoped pairing: position-aware scan instead of a session-global Map to avoid cross-turn ID collisions with synthesizedcall_%dIDs.Changes
Steer (#3263)
internal/event/event.go:Steerevent kindinternal/agent/agent.go:steerQueue+ Run-loop injection + persistenceinternal/control/controller.go:Steer/SteerConsumeddesktop/app.go:App.Steer/App.SteerForTabdesktop/wire.go+internal/serve/wire.gowith testsrunningRef+ steer dispatch inhandleSendTool-result pairing alignment (#3286)
useController.ts: globalresultByIDMap →collectToolResultsAfterinternal/serve/index.html: sameRelated
Closes #3263