Repository navigation
fix(bedrock): reject truncated streams and normalize audio tool results - #116743
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 5:39 AM ET / 09:39 UTC. ClawSweeper reviewWhat this changesThe PR rejects Amazon Bedrock streams that end without Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 6 items remain Keep this protected Bedrock PR open for maintainer review. The stream-completion change introduces a concrete cancellation-ordering regression: it checks for a missing terminal event before honoring an already-aborted request, so a normal cancelled stream can be reported as provider truncation instead of cancellation. Priority: P2 Review scores
Verification
How this fits togetherThe Amazon Bedrock extension maps OpenClaw tool output into Bedrock Converse content blocks and consumes Bedrock’s streamed response events. Its completion logic determines whether an agent run finishes, fails, or is cancelled; its tool-result conversion determines what the model receives on the next provider request. flowchart LR
A[Agent tool result] --> B[Bedrock request converter]
B --> C[Bedrock content blocks]
D[Bedrock stream events] --> E[Stream completion checker]
F[Cancellation signal] --> E
E --> G[Agent run outcome]
C --> H[Bedrock Converse API]
Decision needed
Why: The mechanical ordering fix is clear, but the protected maintainer label requires an explicit owner decision on the expected provider cancellation contract before this PR lands. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +123. Total +126 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Check and preserve the aborted-request outcome before rejecting a non-terminal stream, add a regression test for that precedence, and attach redacted runtime evidence for the two corrected Bedrock paths before merge. Do we have a high-confidence way to reproduce the issue? Yes, from source with medium confidence: arrange an aborted Bedrock stream that ends before Is this the best way to solve the issue? No. Rejecting genuinely truncated streams is appropriate, but the check must not override the existing cancellation outcome; cancellation should be handled first and tested as a separate terminal condition. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against d2b869eda722. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit 'refs/frozen/talk-pcm-output-main-refresh': fix(skills): allow autonomous sweep sync (#116755) fix(irc): recognize punctuation in nickname mentions (#116758) fix(plugins): require explicit source external startup (#116759) fix(whatsapp): keep sends running when typing presence fails (#116739) fix(cli): reject dangling config path escapes (#116738) fix(qa): authenticate summaries and bound native scenario commands (#116748) fix(bedrock): reject truncated streams and preserve audio results (#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (#116760) chore(i18n): refresh native locales (#116640) fix(ollama): resolve web search secret refs (#104829) fix(ollama): honor stop sequences and async payload hooks (#116737) fix(ollama): stop oversized stream records from growing memory (#107473) fix(agents): preserve thinking for runtime-selected Ollama models (#116584)
* origin/main: (23 commits) fix(agents): preserve resumed turns after stale terminal events (#116777) fix(browser): preserve tab-bound browser authorization (#116778) fix(doctor): correct SQLite-backed automation warnings (#116769) fix(release): skip unavailable Buzz QA runner (#116753) feat(plugins): externalize DuckDuckGo search (#116740) refactor(reply): simplify task-owned typing refresh (#116770) fix(chat): explain chat-only model limits feat(models): expose tool support to clients docs(skill): require independent proof before issue closure fix(skills): allow autonomous sweep sync (#116755) fix(irc): recognize punctuation in nickname mentions (#116758) fix(plugins): require explicit source external startup (#116759) fix(whatsapp): keep sends running when typing presence fails (#116739) fix(cli): reject dangling config path escapes (#116738) fix(qa): authenticate summaries and bound native scenario commands (#116748) fix(bedrock): reject truncated streams and preserve audio results (#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (#116760) chore(i18n): refresh native locales (#116640) fix(ollama): resolve web search secret refs (#104829) ...
…enclaw#116743) Co-authored-by: Peter Steinberger <[email protected]>
* commit 'refs/frozen/talk-pcm-output-main-refresh': fix(skills): allow autonomous sweep sync (openclaw#116755) fix(irc): recognize punctuation in nickname mentions (openclaw#116758) fix(plugins): require explicit source external startup (openclaw#116759) fix(whatsapp): keep sends running when typing presence fails (openclaw#116739) fix(cli): reject dangling config path escapes (openclaw#116738) fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748) fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (openclaw#116760) chore(i18n): refresh native locales (openclaw#116640) fix(ollama): resolve web search secret refs (openclaw#104829) fix(ollama): honor stop sequences and async payload hooks (openclaw#116737) fix(ollama): stop oversized stream records from growing memory (openclaw#107473) fix(agents): preserve thinking for runtime-selected Ollama models (openclaw#116584)
* origin/main: (23 commits) fix(agents): preserve resumed turns after stale terminal events (openclaw#116777) fix(browser): preserve tab-bound browser authorization (openclaw#116778) fix(doctor): correct SQLite-backed automation warnings (openclaw#116769) fix(release): skip unavailable Buzz QA runner (openclaw#116753) feat(plugins): externalize DuckDuckGo search (openclaw#116740) refactor(reply): simplify task-owned typing refresh (openclaw#116770) fix(chat): explain chat-only model limits feat(models): expose tool support to clients docs(skill): require independent proof before issue closure fix(skills): allow autonomous sweep sync (openclaw#116755) fix(irc): recognize punctuation in nickname mentions (openclaw#116758) fix(plugins): require explicit source external startup (openclaw#116759) fix(whatsapp): keep sends running when typing presence fails (openclaw#116739) fix(cli): reject dangling config path escapes (openclaw#116738) fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748) fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743) docs(skill): isolate autonomous issue sweep worktrees fix(ci): retire Kova runtime deps coverage (openclaw#116760) chore(i18n): refresh native locales (openclaw#116640) fix(ollama): resolve web search secret refs (openclaw#104829) ...
Summary
messageStopevent, including non-Claude models.Verification
Root causes fixed
2 distinct provider/runtime defects.