Repository navigation
Conversation
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: blocked before merge. What this changesThe branch aligns public image filenames with encoded MIME types, removes source directories from image names, and applies byte-based naming to QQBot chunk uploads. Review scores
Merge readiness⛔ Blocked before merge - 3 items remain This PR retains useful queue-replay and filename-sanitization work beyond the merged conversion fix. Keep it open for maintainer handling; the protected label also excludes automatic cleanup. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe shared media loader reads attachments, detects their format, and prepares bytes and filenames for channel delivery. The delivery queue preserves durable artifact paths, so replay must correct public metadata without changing storage custody. flowchart TD
A[Local or remote attachment] --> B[Shared media loader]
B --> C[Detect and optimize image]
C --> D[Reconcile public filename]
C --> E[Durable queue artifact]
E --> B
D --> F[Channel attachment delivery]
Technical reviewBest possible solution: Use one shared public-image metadata boundary for direct loading and queue replay, preserve artifact custody and current image-byte safeguards, and keep QQBot upload policy in Tencent's package. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a clear path: replay PNG bytes from a .webp spool artifact below preservation limits, and current main returns the stale filename. This review did not execute that path. Is this the best way to solve the issue? The shared metadata owner is the best repair boundary; renaming durable artifacts or adding channel-specific corrections would duplicate policy. The submitted branch needs refreshing because conversion naming already exists and QQBot now has an external owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f1c2314964b7. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +32, Tests +318. Total +350 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (8 earlier review cycles)
Reviewed October 3, 2026, 4:36 AM ET / 08:36 UTC (Revision 9). |
45a4c0d to
4942a88
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This PR has had no commits since 2026-08-07 and still has a real-endpoint proof gap for the QQBot upload path. Reopen or refresh it if the filename fix is still needed. If this change is still needed, please open a fresh PR against current |
Closes #120118
What Problem This Solves
Image optimization and MIME sniffing can change the encoded format without changing the public filename. A transparent WebP converted to PNG was returned and durably queued as PNG bytes with
image/pngwhile still named.webp; large QQBot image uploads then submitted that stale name toupload_prepare.The same public metadata owner must also strip source path components even when the encoded MIME already matches the extension. Otherwise a direct Windows/local filename can leak directory information into outbound metadata.
Why This Change Was Made
The shared web-media result reconciles image leaf names with the normalized output MIME while leaving raw-loader metadata and durable artifact paths untouched. Every optimized image result—preserved or converted—passes through that public metadata owner. QQBot performs the same narrow reconciliation only at its chunked image-upload boundary, reading the bounded prefix from the already-verified descriptor so it does not reopen, rename, or replace source custody.
The split is intentional: normal direct/local/remote and queue replay paths belong to
loadWebMedia; large QQBot local paths can bypass that loader, and only the chunked endpoint sends a server-visible image filename.Production LOC: +55/-23 (net +32). Tests and test support: +320/-2 (net +318). The production growth implements the shared filename/MIME/privacy invariant plus the QQBot verified-descriptor boundary; it adds no config, protocol, dependency, storage schema, or compatibility surface.
User Impact
Converted and sniffed images now carry leaf filenames that match their encoded bytes without exposing source directories. Equivalent aliases such as
.jpegforimage/jpeg, unknown image formats, non-image uploads, raw-loader metadata, and SQLite-owned spool paths remain unchanged.Evidence
804ae7f1217fd095484485a05798f6816db0ca0f: queue replay returned PNG bytes/MIME namedtransparent.webp, preserved a.webpspool path containing the PNG signature, and replayed the same UUID.webpname: https://github.com/openclaw/openclaw/actions/runs/31139366120transparent.pngand a UUID.pngpublic name while the durable path remained.webpwith the same PNG bytes: https://github.com/openclaw/openclaw/actions/runs/31139880371mainpreserved all seven original commits exactly undergit range-diff.tbx_01kzf3jxy2w1anmcsrpsdh50m2: https://github.com/openclaw/openclaw/actions/runs/31221922361tbx_01kzf513vdj9101cb4khagfys4: https://github.com/openclaw/openclaw/actions/runs/31223486982check:changedpassed core/extension production and test typechecks, lint, formatting, plugin boundaries, dead-code, import cycles, storage guards, and media guards on Testboxtbx_01kzf5b4bs9s7dmpz90xvxpnkz: https://github.com/openclaw/openclaw/actions/runs/31223810874assistant-transcript-repairshard failure; that exact file passed 7/7 on Testboxtbx_01kzf6edj53w91ddr4w8yp0xd9(https://github.com/openclaw/openclaw/actions/runs/31224920438) and the full shard rerun passed without a code change.[email protected]exportsreasonableDetectionSizeInBytes = 4100from its shippedsource/index.js; QQBot bounds its verified-descriptor probe to that value.Remaining pre-land proof
QQBOT_APP_IDandQQBOT_CLIENT_SECRETare not exported and no matching QQBot/QQ/Tencent credential exists in the service-account-accessible Molty vault. The mandatory one-password workflow requires explicit consent before searching or using the personal 1Password account.The final exact head is
4942a882bb5f51938f22bcc40730248ed9c17190.AI-assisted: yes. No agent transcript is included because public transcript insertion requires separate explicit consent.