Repository navigation
fix: pass clientTools to runEmbeddedAttempt in /v1/responses agent path - #52171
Conversation
Greptile SummaryThis PR fixes a silent parameter-forwarding omission where
Confidence Score: 5/5
Reviews (1): Last reviewed commit: "fix: pass clientTools to runEmbeddedAtte..." | Re-trigger Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a7cc2b086
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0cca12c552
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 850216fb11
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
c2e5c7f to
db25854
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db25854f43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b66f53762
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const sessionKey = previousSessionKey ?? resolved.sessionKey; | ||
| const messageChannel = resolved.messageChannel; |
There was a problem hiding this comment.
Scope previous_response_id reuse to matching request context
This assignment always prioritizes the cached session from previous_response_id over the freshly resolved request context, so a request with a known response ID can bypass current user/session-key routing. In multi-user setups sharing one gateway token, that allows cross-conversation context bleed if a stale or leaked response ID is supplied; the cached entry should be validated against the same user/agent/session dimensions before reuse.
Useful? React with 👍 / 👎.
| const responseId = `resp_${randomUUID()}`; | ||
| // Store responseId -> sessionKey so continuation turns via previous_response_id | ||
| // can resolve back to the same agent session. | ||
| storeResponseSession(responseId, sessionKey); |
There was a problem hiding this comment.
Start response-session TTL when response is emitted
The response/session mapping is stored before the agent run executes, but lookup expiry is based on this timestamp (30m TTL). If a response takes a long time (for example, long tool loops), the mapping may already be expired when the client receives the response.id, so an immediate previous_response_id continuation silently starts a new session and loses history. The timestamp should be recorded or refreshed when the response is actually returned.
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
113a5bb to
0962ab6
Compare
0962ab6 to
74519e7
Compare
|
Merged via squash.
Thanks @charzhou! |
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
…th (openclaw#52171) Merged via squash. Prepared head SHA: 74519e7 Co-authored-by: CharZhou <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Summary
toolsin/v1/responsesrequests being silently dropped when routing to an Agent (model: "agent:...")runEmbeddedPiAgent()inrun.tscallsrunEmbeddedAttempt()by individually listing each param field but omittedclientTools, soparams.clientToolsinattempt.tswas alwaysundefinedtoClientToolDefinitions,allCustomToolsmerge,createAgentSession) was fully implemented but never triggeredTest plan
/v1/responsesrequest withtoolsfield targeting an Agent and verify the Agent can see and invoke the client toolstool_choicefiltering still works with client tools