Skip to content

fix(gateway): expose idempotencyKey in chat history metadata#94398

Closed
wyf027 wants to merge 1 commit into
openclaw:mainfrom
wyf027:codex/chat-history-idempotency-key-79844-20260618
Closed

fix(gateway): expose idempotencyKey in chat history metadata#94398
wyf027 wants to merge 1 commit into
openclaw:mainfrom
wyf027:codex/chat-history-idempotency-key-79844-20260618

Conversation

@wyf027

@wyf027 wyf027 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • carry persisted user-message idempotencyKey into __openclaw transcript metadata during history hydration
  • preserve the key for live history appends, session.message broadcasts, and oversized history placeholders
  • add focused regression coverage for transcript reads, inline history updates, and live session message events

Fixes #79844.

Real behavior proof

Behavior addressed: clients can correlate optimistic user bubbles with hydrated or live Gateway messages via __openclaw.idempotencyKey instead of text/FIFO heuristics.

Verification: git diff --no-index --check on the seven touched files.

Not run: official gateway vitest/tsgo commands, because this workspace is not a full OpenClaw checkout and earlier clone attempts disconnected during fetch.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: S r: too-many-prs Auto-close: author has more than twenty active PRs. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 18, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime r: too-many-prs Auto-close: author has more than twenty active PRs. size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chat.history: surface idempotencyKey on hydrated user messages for client-side correlation

1 participant