Repository navigation
refactor(media): remove unreachable geometry metadata backfills - #149272
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 18, 2026, 12:26 PM ET / 16:26 UTC (Revision 6). ClawSweeper reviewWhat this changesRemoves unreachable fallback assignments that record adjustments to image and video dimensions, aspect ratios, and resolutions. Merge readiness✅ Ready for maintainer review This remains useful, behavior-preserving cleanup that is absent from current main. No actionable correctness or security findings remain; the maintainer-authored PR should proceed through normal review. Priority: P3 Review scores
Verification
How this fits togetherMedia geometry normalization translates requested image and video settings into provider-supported values. Its outputs feed provider requests and the metadata explaining adjustments in tool results. flowchart LR
A[Image or video request] --> C[Geometry normalization]
B[Provider capabilities] --> C
C --> D[Supported geometry]
C --> E[Adjustment metadata and ignored options]
D --> F[Provider generation]
E --> G[Tool result]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -23. Total -23 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep normalization metadata owned by the branches that change geometry, preserving the existing caller policies and result contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims behavior-preserving cleanup, not a user-facing bug fix. Source inspection supports the branches being unreachable; no runtime reproduction was executed. Is this the best way to solve the issue? Yes. Removing the redundant tail assignments is the narrowest cleanup because the producing branches already record the same metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 890c55a28e2e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Merged via squash.
|
…/current-conversation-binding-row * commit 'f5276e5a54c088dd23475f08479acd9738d959bd': (46 commits) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) perf(gateway): avoid session list stalls on broad updates (#152074) fix: preserve model failure causes and worker fallback runtime (#152028) perf(logging): reduce Gateway hot-path info log volume (#152080) improve(gateway): reduce duplicate worker data fetched from SQLite (#151878) improve: format messages with many links faster (#152112) perf(cron): avoid unused SQL binding in config projections (#152029) fix: explain cloud worker startup failures (#152043) refactor(discord): share Markdown edit projection (#149214) refactor(media): remove unreachable geometry metadata backfills (#149272) chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039) fix(ui): restore sidebar and chat test collection (#152099) fix(clickclack): finish SQLite cleanup between persistence tests (#152061) fix(workboard): isolate board deletion from unrelated subscriptions (#152102) refactor(agents): unify tool availability and plugin work ownership (#152073) fix: session group moves lag while requests are pending (#151689) fix(agents): preserve active cleanup during requester settlement (#151907) perf(sessions): keep deletion responsive under disk pressure (#152092) fix: preserve successful direct replies without serializing bookkeeping keys (#151870) ...
…pr-149282-proof-20260918 * commit 'dfa48c256f0853268c6b42cbe09fc1338d7d24ea': test(qa-lab): stabilize timeout recovery delivery proof (#152100) fix: probe SQLite when Node denies worker threads (#152075) perf(gateway): keep GitHub co-author trailer scans linear (#152115) fix(media): report CLI models with missing command or args (#151969) refactor: remove retired runtime code and duplicate helpers (#151973) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) perf(gateway): avoid session list stalls on broad updates (#152074) fix: preserve model failure causes and worker fallback runtime (#152028) perf(logging): reduce Gateway hot-path info log volume (#152080) improve(gateway): reduce duplicate worker data fetched from SQLite (#151878) improve: format messages with many links faster (#152112) perf(cron): avoid unused SQL binding in config projections (#152029) fix: explain cloud worker startup failures (#152043) refactor(discord): share Markdown edit projection (#149214) refactor(media): remove unreachable geometry metadata backfills (#149272) chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039) fix(ui): restore sidebar and chat test collection (#152099)
What Problem This Solves
Remove three unreachable metadata backfills from media geometry normalization. The branches producing changed or derived values already record the required metadata.
User Impact
Image and video requests preserve selected geometry, requested/applied and derived metadata, ignored-option ordering, and behavior when capabilities are absent. Existing image/video policy differences and public contracts remain intact.
Why This Change Was Made
Keep the producing branches authoritative. Production: -23 lines; tests unchanged. No helper, API or dependency change is introduced.
The historical one-file sloppiness score worsened from 57.563025 to 58.910891: the same 18 cloned lines occupy more of the smaller file. Historical cyclomatic complexity fell from 50 to 34 and measured SLOC from 119 to 101. No fresh scan or performance gain is claimed.
Evidence
c22e819952f8d9989d2733192652b587f02d015c.e2b0e2b313b0b4fec1857dcad8d8dc0be8fd9716found the original geometry-owner preimage unchanged and rechecked shared helpers, image/video callers, sibling behavior, tests and dependency contracts. This does not claim runtime validation of that main snapshot.9ec8061eb18854590451afb2b470dbd9f311c9db, whose complete tree equals the reviewed head. Node 24.19.0, pnpm 12.3.4, Vitest 5.0.0.test/scripts/worker-deploy-build-plugin.test.ts:39exceeded 120000 ms. The original timeout remains unexplained.Fresh hosted checks for this head passed: CI attempt 3, Workflow Sanity attempt 2, and the current required openclaw/ci-gate. Complete attempt-job metadata and the unchanged PR head were verified on 2026-09-18 at 16:07 UTC. No new test counts or actual-checkout claim are inferred from this metadata.
The latest ClawSweeper review is historical revision 5, completed at 2026-09-15T20:29:47.296Z. Its freshness window has expired; no fresh Claw review or merge readiness is claimed.