fix(agents): preserve announce threadId on sessions.list fallback#63506
Conversation
|
@codex review |
Greptile SummaryThis PR fixes a bug where the A2A announce fallback path ( Confidence Score: 5/5Safe to merge — the change is narrow, well-targeted, and covered by both unit and integration tests. The fix is minimal and correct: it reads No files require special attention.
|
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. ℹ️ 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". |
0ba7653 to
96a1fa0
Compare
96a1fa0 to
a81e85d
Compare
|
Merged via squash.
Thanks @SnowSky1! |
…enclaw#63506) Merged via squash. Prepared head SHA: a81e85d Co-authored-by: SnowSky1 <126348592+SnowSky1@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
…enclaw#63506) Merged via squash. Prepared head SHA: a81e85d Co-authored-by: SnowSky1 <126348592+SnowSky1@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
…enclaw#63506) Merged via squash. Prepared head SHA: a81e85d Co-authored-by: SnowSky1 <126348592+SnowSky1@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
…enclaw#63506) Merged via squash. Prepared head SHA: a81e85d Co-authored-by: SnowSky1 <126348592+SnowSky1@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
…enclaw#63506) Merged via squash. Prepared head SHA: a81e85d Co-authored-by: SnowSky1 <126348592+SnowSky1@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
Summary
threadIdwhenresolveAnnounceTarget()falls back tosessions.listdeliveryContext.threadIdandlastThreadIdthrough announce target hydrationRoot cause
The legacy A2A announce fallback rehydrated
channel,to, andaccountIdfromsessions.list, but it dropped thread/topic context. As a result, final announce deliveries were sent to the top-level channel instead of the originating thread/topic.Verification
pnpm test -- src/agents/tools/sessions.test.ts src/agents/openclaw-tools.sessions.test.tspnpm exec oxfmt --check src/agents/tools/sessions-helpers.ts src/agents/tools/sessions-announce-target.ts src/agents/tools/sessions.test.ts src/agents/openclaw-tools.sessions.test.tsCloses #63469