Repository navigation
Fix duplicate Control UI assistant-media replies - #74501
Closed
HemantSudarshan wants to merge 1 commit into
Closed
HemantSudarshan wants to merge 1 commit into
HemantSudarshan wants to merge 1 commit into
Conversation
8 of 25 tasks
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.
Summary
gateway-injectedassistant message from the:assistant-mediapath when a media-bearing agent payload no longer resolved to playable media.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
mediaUrl/mediaUrls, then fell back to text when those media references failed to resolve to embeddable content.Regression Test Plan (if applicable)
src/gateway/server-methods/chat.directive-tags.test.tschat.sendtranscript append seam where the duplicate was created.User-visible / Behavior Changes
Control UI/WebChat should no longer show duplicate text-only assistant replies from stale or non-playable assistant-media/TTS supplements.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
chat.sendthrough the gateway seam with an agent run started.mediaUrl/mediaUrls.Expected
:assistant-mediaassistant transcript message is appended when no playable media resolves.Actual
Evidence
Human Verification (required)
What I personally verified:
pnpm test src/gateway/server-methods/chat.directive-tags.test.ts -- --reporter=verbosepnpm test src/gateway/server-methods/chat.directive-tags.test.ts -t "does not persist agent media supplements" -- --reporter=verbosepnpm check:changedEdge cases checked:
What I did not verify:
pnpm testsuite.Note:
pnpm test:changedcurrently fails on unrelated Windows path expectations insrc/crestodian/operations.test.tsandsrc/crestodian/rescue-message.test.ts(/tmp/workvsC:\tmp\work).Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
Superseded by #74502 from the non-codex branch requested by the author.