Repository navigation
fix: preserve readable generated image and video filenames - #147833
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 11:56 PM ET / September 14, 2026, 03:56 UTC. ClawSweeper reviewWhat this changesThe PR gives generated image and saved-video attachments readable filenames in tool results and background completion, using the existing media-store decoder. Merge readiness✅ Ready for maintainer review This fix remains necessary: current main and v2026.9.4 still expose storage IDs as image and saved-video names. No actionable correctness or security findings were found; the merged music fix establishes the same approach for a separate path. Priority: P2 Review scores
Verification
How this fits togetherImage and video tools receive generated media from providers and save buffered results in OpenClaw’s media store. Attachment metadata and formatted tool results then carry those files into foreground responses or background completion. flowchart TD
A[Provider results and filename hint] --> B{Buffered media or video URL}
B -->|Buffered media| C[Media store saves unique path]
C --> D[Existing filename decoder]
D --> E[Attachment metadata and result text]
B -->|Video URL| E
E --> F[Foreground response or background completion]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +73. Total +73 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep media-store naming authoritative across generated media, preserving unique storage paths and existing URL-only behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: generate buffered media with a filename hint and current main exposes the UUID-suffixed storage ID as its attachment name. Runtime reproduction was not performed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the storage owner’s decoder is the narrow repair and matches the merged music implementation without duplicating naming policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 65710d3e8bac. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit 'e3d8d0078369b21223c70028c4502c89f1420897': (51 commits) fix: background requests delay opening chats (#147845) chore(i18n): refresh native locales (#147899) feat: start remote sessions without a repository (#147773) fix(slack): retire probe sockets after timeout (#147846) refactor(agents): share theme ANSI color encoding (#147838) improve(memory): bound vector recall decision counts (#147900) improve(browser): narrow dashboard lifetime rechecks (#147892) test(discord): compact lifecycle matrices (#147855) fix(agents): use exact model rows for harness support (#147849) test(agents): compact embedded lifecycle matrices (#147856) test(agents): compact embedded admission matrices (#147853) test(cli): compact node management matrices (#147854) feat(artifacts): select assistant-delivered files by run (#147682) improve: reduce event-loop work when recording prompts (#147876) fix: preserve readable generated image and video filenames (#147833) fix(ci): skip SDK rendering for identical revisions (#147572) fix: prevent false process failures and stalled background waits (#147871) fix(ui): restore live updates when retrying chat history (#147865) fix(ui): preserve text and image order in assistant replies (#147731) refactor(qa-lab): reuse approval result formatter (#147867) ...
What Problem This Solves
Generated image and saved-video results show internal UUID-suffixed storage names instead of readable filenames.
User Impact
A generated
poster.pngis now namedposter.pngin attachment metadata and tool-result text, including background completion. Its unique storage path remains unchanged. URL-only video results keep their existing names.Why This Change Was Made
Both tools now use the media store's existing filename decoder, matching the music result path. This keeps filename interpretation with the storage owner without changing persistence, delivery order, or provider requests.
Related: #147570.
Evidence
Seven strengthened existing cases failed on the original code for the incorrect names; the URL-only no-save control passed. After the repair, all 139 tests across five owner and sibling files passed, including real isolated storage and synthetic background completion. The test count is unchanged.
Independent P2 review completed two clean passes, and the complete selected changed-file gate passed. Providers were mocked; no live generation, Gateway or native app was used.