fix: keep media provider inventory internal#75550
fix: keep media provider inventory internal#75550clawsweeper[bot] merged 3 commits intoopenclaw:mainfrom
Conversation
|
Codex review: passed. Summary Reproducibility: yes. On current main, a synthetic image_generate or video_generate list result with details.providers and shouldEmitToolOutput false reaches emitToolOutput; the existing media handler test locks in that old video_generate behavior. Next step before merge Security Review detailsBest possible solution: Land one canonical fix that keeps provider inventory off hidden/shared chat surfaces, preserves generated media delivery and internal structured results, then close #75166 and reconcile the overlapping #75728 branch. Do we have a high-confidence way to reproduce the issue? Yes. On current main, a synthetic image_generate or video_generate list result with details.providers and shouldEmitToolOutput false reaches emitToolOutput; the existing media handler test locks in that old video_generate behavior. Is this the best way to solve the issue? Yes for the narrow reported bug. Removing the compact-output exception is the smallest maintainable handler fix; #75728 is the broader alternative only if maintainers want surface-aware direct-chat diagnostics. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against ad0e1a0d5d9b. |
6b32e1e to
aad8488
Compare
|
Thanks for the review. Added the missing Verified locally:
|
|
The remaining failure appears to be unrelated to this PR. The parity gate times out before running scenarios because All standard CI checks for this PR are passing. Happy to rerun once the parity gate/base issue is resolved. |
aad8488 to
e9d4737
Compare
956d244 to
b433232
Compare
|
@clawsweeper automerge |
|
🦞🦞 Source: What merged:
Fixups included:
The automerge loop is complete. Automerge progress:
|
Summary: - The branch removes the compact image/video provider-inventory output bypass, adds media handler regression tests for hidden and verbose modes, and adds an Unreleased changelog fix entry. - Reproducibility: yes. On current main, a synthetic image_generate or video_generate list result with details ... ut false reaches emitToolOutput; the existing media handler test locks in that old video_generate behavior. ClawSweeper fixups: - Included follow-up commit: chore: rerun ci - Included follow-up commit: chore: move changelog entry below media fixes Validation: - ClawSweeper review passed for head 56069df. - Required merge gates passed before the squash merge. Prepared head SHA: 56069df Review: openclaw#75550 (comment) Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com>
Summary: - The branch removes the compact image/video provider-inventory output bypass, adds media handler regression tests for hidden and verbose modes, and adds an Unreleased changelog fix entry. - Reproducibility: yes. On current main, a synthetic image_generate or video_generate list result with details ... ut false reaches emitToolOutput; the existing media handler test locks in that old video_generate behavior. ClawSweeper fixups: - Included follow-up commit: chore: rerun ci - Included follow-up commit: chore: move changelog entry below media fixes Validation: - ClawSweeper review passed for head 56069df. - Required merge gates passed before the squash merge. Prepared head SHA: 56069df Review: openclaw#75550 (comment) Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com>
Summary
image_generate/video_generateprovider inventory could bypass normal tool-output visibility and be emitted to shared chat surfaces.shouldEmitToolOutput().Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/pi-embedded-subscribe.handlers.tools.media.test.tsimage_generateandvideo_generateprovider inventory does not emit whenshouldEmitToolOutput()is false.User-visible / Behavior Changes
Provider inventory text from media list results is no longer shown when normal tool output is hidden. Verbose/full tool output can still show it.
Diagram (if applicable)
N/A
Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
shouldEmitToolOutput: falseSteps
image_generateorvideo_generatelist result withdetails.providers.handleToolExecutionEndwithshouldEmitToolOutput()false.emitToolOutputis called.Expected
emitToolOutputis not called.Actual
emitToolOutputwas called through the compact provider inventory bypass.Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
image_generateprovider inventory does not emitvideo_generateprovider inventory does not emitReview Conversations
Compatibility / Migration
Risks and Mitigations
AI Assistance