Skip to content

Comments

Gateway: avoid duplicate block stream replies #138

Closed
jverdi wants to merge 2 commits intoopenclaw:mainfrom
jverdi:jverdi/fix-duplicate-block-stream
Closed

Gateway: avoid duplicate block stream replies #138
jverdi wants to merge 2 commits intoopenclaw:mainfrom
jverdi:jverdi/fix-duplicate-block-stream

Conversation

@jverdi
Copy link
Contributor

@jverdi jverdi commented Jan 3, 2026

Possible fix for duplicate messages:

  • Some providers send full content on text_end, and we were appending that on top of deltas, doubling the reply.
  • Update the block streaming buffer logic to treat text_start/text_end content as authoritative and replace buffers when it matches or extends the current buffer, instead of always appending.
  • Add a regression test that simulates a full-content text_end and asserts only one block reply is emitted.
  • now handles both single message and multi-chunk

(coded by codex, tested locally)

@jverdi
Copy link
Contributor Author

jverdi commented Jan 3, 2026

ok, looks like you got it! closing again.

@jverdi jverdi closed this Jan 3, 2026
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 7, 2026
…tartupcommands-modification

Gateway: add startupCommands RPCs (list / append / remove)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant