Repository navigation
Fix duplicate Control UI assistant-media replies - #74502
HemantSudarshan wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the same contributor opened #75481 as the refreshed canonical PR for the same Control UI assistant-media duplicate-reply fix, with the same gateway guard/test plus the missing changelog entry. Current main still has the underlying fallback path, so the product bug should remain tracked through #73956 and #75481 rather than this older branch. So I’m closing this here and keeping the remaining discussion on the canonical linked item. Review detailsBest possible solution: Close this stale implementation PR and use #75481 as the canonical branch to review, rebase if needed, validate, and land for #73956. Do we have a high-confidence way to reproduce the issue? Yes. The linked bug has a concrete reproduction path: an agent-run final payload with visible text plus stale local audio Is this the best way to solve the issue? No for this PR as the branch to merge. The code direction is narrow and appropriate, but #75481 is the better path because it refreshes the same fix onto newer main and includes the required changelog entry. Security review: Security review cleared: The diff only changes a gateway transcript-append guard and a focused regression test; it adds no dependencies, workflows, permissions, secret handling, package resolution, or code-execution surface. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against c38d94677c09. |
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
Supersedes #74501, which used the previous codex-prefixed branch name.