Repository navigation
fix(media): keep failure markers visible in audio-only processing - #130869
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
In audio-only media processing (locked model selection on a native harness, inbound audio, explicit audio-understanding config), an audio attachment that failed STT — provider error,
maxBytes, timeout, blocked — produced no output, no placeholder, and no marker:applyMediaUnderstandingsuppressed ALL attachment markers in that mode. The runner had already recorded thefaileddisposition; the only trace was a process-level log line not tied to the message. The agent then tried to answer a voice note it never heard, with no record why.Why This Change Was Made
The blanket suppression (added by #122098) was redundant with the renderer's own contract:
renderMediaAttachmentMarkersonly renders capabilities that have decisions, and audio-only execution produces only an audio decision — so removing the special case cannot introduce image/video/document markers for attachments still owned by the native harness (#108714's design, preserved; file extraction stays disabled in this mode). The fix deletes the branch and adds the invariant comment (net −1 production line).buildSyntheticSkippedAudioOutputsdeliberately stays limited to the too-small-audio transcript contract — extending it to failures would turn errors into transcription outputs and bypass the shared marker budget; the marker is the single canonical mechanism. Docs sentence updated. Sibling #130846 (native-vision dispositions) verified as an ancestor and untouched.User Impact
A failed voice-note transcription now leaves a visible failure marker in the agent-facing body instead of vanishing — the agent can say "your audio couldn't be processed (reason)" rather than answering blind.
Evidence
src/media-understandingsuite 521 tests green; focused regressions re-run green after rebase onto latestorigin/main. Mixed-attachment fixtures assert the exact agent-visible body across image/video/audio/document combinations.../codexuser_input.rs:15, v2/turn.rs:330, models.rs:1745): this changes only OpenClaw text construction, not Codex transport.