Repository navigation
fix(ui): show video compression errors and honest preparation progress - #198225
roboclaw-bot wants to merge 3 commits into
Conversation
Co-authored-by: dankarization <26330178+dankarization@users.noreply.github.com>
Co-authored-by: dankarization <26330178+dankarization@users.noreply.github.com>
Worked on by: - @dankarization Co-authored-by: dankarization <26330178+dankarization@users.noreply.github.com> OpenClaw-Publication: 37d3c1a4-6a59-493d-9072-ca27e509e93c
|
🦞👀 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. |
|
Any chrome, not only mobile. |
|
Codex review: needs maintainer review before merge. What this changesThis PR exposes video compression failure explanations and bounded diagnostic codes, and labels encoding and attachment preparation separately. Example: Encoding finishes for screen.mp4, and reading the prepared copy reaches 3%.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: it addresses source-confirmed composer feedback defects, and no concrete introduced correctness or security bug was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI attachment lifecycle admits selected files, runs optional video compression in a worker, reads the prepared copy into the draft, and projects progress and recoverable failures into the attachment tile. flowchart LR
A[Selected video] --> B[Attachment lifecycle]
B --> C[Compression wrapper]
C --> D[Encoder worker]
D --> B
B --> E[File reader]
E --> F[Ready draft attachment]
B --> G[Attachment tile]
Technical reviewBest possible solution: Keep the repair within the existing compression wrapper, attachment lifecycle, and tile while preserving their retry, cancellation, and admission contracts. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the hidden explanation and continued compressing label during FileReader progress; the reported approximately 30 MB encoding failure itself remains unreproduced and unroot-caused. Is this the best way to solve the issue? The scoped approach fits the existing owners: fixed diagnostic vocabulary crosses the worker boundary, the lifecycle records the phase, and the tile presents those facts without another upload path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4a24e68929d1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +128, Tests +291, Docs +5. Total +424 across 13 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
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 Reviewed November 13, 2026, 5:51 AM ET / 10:51 UTC. |
Related: #194249 (closed report; no closing-fix evidence was available).
What Problem This Solves
In Chrome, including the reported mobile case, failed video compression shows a generic retry action without an inline cause, and post-encoding attachment reads can appear to restart compression progress.
User Impact
The existing tile shows an actionable, sanitized failure reason and bounded stage/error code. Encoding and attachment preparation have distinct progress labels, and failed tiles can wrap recovery text without clipping the controls. Original-file retry, cancellation, queued work, staged-file ordering, and negotiated batch admission remain owned by the existing lifecycle.
Open for review, not ready to merge: real mobile rendering, inspected before/after screenshots, and hardware WebCodecs behavior remain unqualified. The reported encoding failure remains unreproduced and unroot-caused; a smaller successful resend is not proof that it works. This website change is not deployed and is not part of an Android APK.
Why This Change Was Made
Keep failure and phase state with the current worker wrapper, reader/controller, and tile rather than introducing another upload path. Diagnostics contain only fixed stage/category values, never codec exceptions, URLs, filenames, or recording contents. Codec negotiation and size caps are unchanged. Integration retains current main's separately indexed CSS action selectors.
Evidence
November 22 hosted CI
The required CI aggregate is failing on the unchanged published head
cd70b08957ab6496e4448df351937c7f9997038f. The bundled UI failure matches the same assertion on the tested merge's exact main parent,b8a55ae92072dac7ec0c456a04831f7284e22170. The test expects Set up a model after a model authentication failure; #203394 intentionally changed that action to Open Models. This comparison classifies only that assertion; it does not establish that the replacement button passed in those runs.Separately, performance CI failed during the baseline phase, before measuring a paired candidate delta. It does not establish a bundle-size regression from this PR or clear the performance requirement. No gate, budget, or assertion was waived.
Earlier local evidence
Current build advisory values
Largest JavaScript gzip: 558.4 KiB versus 553.7 KiB; total CSS gzip: 324.2 KiB versus 318.9 KiB; total CSS raw: 1666.1 KiB versus 1642.8 KiB; chat boot JavaScript gzip: 1280.4 KiB versus 1273.2 KiB; New Session boot JavaScript gzip: 794.1 KiB versus 787.0 KiB. The production build reports these without rejecting the build; performance-gate clearance is not asserted.
Requested by Daniil Karpenko.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by