Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. A source-level reproduction is an agent-run Next step before merge Security Review detailsBest possible solution: Land this narrow gateway fix after exact-head CI/changed-gate validation, while keeping the broader inline-media work in #75727 separate. Do we have a high-confidence way to reproduce the issue? Yes. A source-level reproduction is an agent-run Is this the best way to solve the issue? Yes. Requiring resolved non-text media before appending the agent-run assistant-media supplement is the narrowest maintainable fix, and the separate non-agent media path still preserves visible text. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against f968c30e94f0. |
8a17bc7 to
38e4dc2
Compare
BunsDev
left a comment
There was a problem hiding this comment.
Approved for the assistant-media duplicate-reply fix.
Reviewed the refreshed head 38e4dc2299e3929eec42589c37ff75c075321c91. The patch keeps the fix scoped to the agent-run assistant-media transcript supplement: stale/non-playable media refs no longer append a text-only gateway-injected assistant message, while resolved media supplements and non-agent command/TTS fallback behavior remain covered by adjacent tests.
Validation I ran:
- pnpm test src/gateway/server-methods/chat.directive-tags.test.ts -- --reporter=verbose
- pnpm exec oxfmt --check --threads=1 src/gateway/server-methods/chat.ts src/gateway/server-methods/chat.directive-tags.test.ts CHANGELOG.md
- pnpm check:changelog-attributions
- git diff --check origin/main...HEAD
- Testbox pnpm check:changed, plus exact-head CI sampling
Remaining CI failures are unrelated to this PR's touched files:
- check-test-types: src/agents/subagent-registry-lifecycle.test.ts mock type mismatch
- check-dependencies: unrelated dependency scan failure in src/auto-reply/reply/session-fork.runtime.ts
Not merging in this review step because the aggregate CI is still red on unrelated lanes and main merge requires explicit maintainer approval.
eb001ff to
e67a9be
Compare
e67a9be to
24d1e2c
Compare
Summary
gateway-injectedassistant message from the:assistant-mediapath when stale media references no longer resolved to playable content.main, kept the agent-run assistant-media transcript append gated on resolved display media, and added a changelog entry.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
mainto avoid stale-base CI failures.Root Cause (if applicable)
mediaUrl/mediaUrls, then fell back to transcript/display/payload 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 (not just CI), and how:
pnpm test src/gateway/server-methods/chat.directive-tags.test.ts -t "does not persist agent media supplements" -- --reporter=verbosepnpm test src/gateway/server-methods/chat.directive-tags.test.ts -- --reporter=verbosepnpm exec oxfmt --check --threads=1 src/gateway/server-methods/chat.ts src/gateway/server-methods/chat.directive-tags.test.tspnpm check:changelog-attributionsgit diff --check upstream/main...HEADtsgocore/core-test,lint:core, runtime sidecar loader guard, import-cycle guard, webhook body guard, and pairing auth guards.pnpm testsuite; browser-driven Control UI manual session; Testbox, becauseblacksmithis not installed in this checkout.Note: local
pnpm check:changeddid not execute normally on this Windows path because the script direct-run guard/path handling returned no plan and thetsgowrapper splitsC:\Projects\Personal Project\...at the space. I ran the same changed-gate plan through the exported modules and bypassed only the Windows shell quoting layer fortsgo.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations