Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 4:30 AM ET / 08:30 UTC. ClawSweeper reviewWhat this changesThe PR adds HEIC- and HEIF-sequence MIME variants to model-run JPEG normalization and covers local and Gateway CLI delivery. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking findings. Current main still bypasses JPEG conversion for the two sequence MIME values, while this PR extends the shared model-run preparation boundary before the local/Gateway split; the contributor’s real after-fix trace is sufficient proof. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe capability CLI reads image files, detects their MIME type, and normalizes unsupported provider formats before dispatching to a local model transport or Gateway. Both transports consume the same prepared image data. flowchart LR
A[CLI image file] --> B[MIME detection]
B --> C[Model-run image preparation]
C --> D{HEIC or HEIF family?}
D -->|sequence or still| E[JPEG conversion]
D -->|other image| F[Original image bytes]
E --> G[Local or Gateway model request]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +56. Total +61 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep both sequence aliases in the existing model-run MIME set, preserving one conversion path before local and Gateway dispatch. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: an input detected as image/heic-sequence or image/heif-sequence reaches the image branch but misses current main’s two-value conversion set; the submitted trace also records the before/after behavior with genuine sequence files. Is this the best way to solve the issue? Yes—the model-run reader is the correct boundary because it prepares data once before either transport; duplicating sequence handling in local or Gateway delivery would create drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5cb4bbcd41ef. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Real behavior proofTested the exact current head: Environment and production path
Genuine sequence inputsI encoded two 64x64 frames into a real two-image HEIF container, then exercised both sequence brands.
The real production conversion returned a 599-byte JPEG for each input, with magic Redacted model-run traceBoth inputs were run independently through the production command action: For both HEVC and MSF1 runs, the production CLI envelope reported: {
"ok": true,
"capability": "model.run",
"transport": "local",
"provider": "loopback-proof",
"model": "vision-proof",
"inputs": [{ "path": "<redacted>", "mimeType": "image/jpeg" }],
"outputs": [{ "text": "provider received JPEG", "mediaUrl": null }]
}The real provider boundary independently read back both requests:
The provider recorded only whether an Authorization header was present, never its value. Runner noteA direct @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Named follow-up: src/media/input-files.ts independently owns the public input_image MIME allowlist and currently omits image/heic-sequence and image/heif-sequence. Broadening that public accepted-MIME surface requires a separate media-owner/product decision; this PR intentionally changes only the existing CLI model-run conversion owner. |
|
Merged via squash.
|
Related to #128501
What Problem This Solves
Fixes an issue where
openclaw capability model run --fileusers could pass a HEIC or HEIF sequence image that was detected correctly but sent to the selected model provider without the required JPEG conversion. This affected both local and Gateway model probes.Why This Change Was Made
The model-run owner now treats the detector's existing
image/heic-sequenceandimage/heif-sequenceresults the same as the still-image HEIC/HEIF aliases. The change reuses the established JPEG conversion path and does not add a new MIME detector, provider rule, config surface, or dependency.User Impact
Sequence-form HEIC and HEIF files now reach model providers as JPEG input in both local and Gateway model-run workflows, matching the behavior already established for ordinary HEIC/HEIF files.
Evidence
hevcandmsf1brands; the production detector identified the sequence MIME types, but both local and Gateway cases failed becauseconvertHeicToJpegwas called zero times.node scripts/run-vitest.mjs src/cli/capability-cli.test.tspassed all 188 tests, including both sequence cases and the existing still-HEIC regression.oxfmt --checkpassed for both changed files; focused type-aware oxlint andgit diff --checkpassed.check:changedlane was not run locally; exact-head GitHub CI remains the broad gate.