Repository navigation
refactor(media): consolidate capability defaults and compression grids - #177665
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. |
Keep all byte, character, timeout, prompt, output-kind and compression values while migrating internal consumers to one private capability descriptor. No SDK exports or configuration defaults change.
a1a74dd to
a91b7dd
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates media capability defaults and compression grids and migrates their internal consumers. Example: Describe an image without configured media overrides.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-approved consolidation removes duplicated media facts while preserving existing behavior, and no actionable introduced defect was found. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherMedia loaders and understanding runtimes combine attachments, configuration, and model policies to produce bounded image inputs and typed descriptions or transcriptions. flowchart TD
A[Attachments and configuration] --> B[Media loaders]
C[Capability defaults] --> D[Understanding resolver]
B --> E[Image normalization and compression]
F[Compression grids and model limits] --> E
D --> G[Provider execution]
E --> G
G --> H[Descriptions and transcriptions]
Technical reviewBest possible solution: Retain the consolidated descriptors within the existing owners while preserving configured overrides, media limits, output kinds, and compression behavior. Do we have a high-confidence way to reproduce the issue? This PR addresses duplicated internal representations rather than a reported product failure; source comparison establishes the duplication and matching replacement values. Is this the best way to solve the issue? The change uses the existing shared packages and media owners, completes the internal caller migration, and introduces no unnecessary wrapper, state owner, or test machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2cd23b665868. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -16. Total -16 across 8 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 October 19, 2026, 4:08 PM ET / 20:08 UTC. |
|
Inherited-only CI evidence for exact head
Actual checked-out merge This is narrow owner-boundary/source attribution, not a passing full consumer replay. The focused consumer command reached a confirmed cold compiled-worker setup before assertions and was stopped/joined under the no-local-build budget. Its incomplete result remains disclosed. No production/test hunk, requester authority, durability repair, default value, guard or assertion was changed to obtain this exception. Complete census:83 terminal CI jobs (54 success/27 skipped/2 failures),211 terminal exact-head checks. Three historical metadata cancellations have successful same-head/same-workflow replacements: PR context job118272758911 (nine successful executed steps), dispatch118272755896 (twelve). No selected product job is cancelled or zero-step. CodeQL neutral is not claimed passing. Current flake register and latest six completed scheduled main runs were checked; this is actual main-owner causality, not a listed-flake or shard-name-only assertion. The CI-attribution review follow-up is now addressed. The campaign authorizes native inherited-only admission; native submission still revalidates exact head/run, complete failure accounting, security, enforced reviews, policy and writer authority. No CI rerun, status injection or security waiver. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ...
#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ... Co-authored-by: Vincent Koc <[email protected]>
openclaw#177665) Keep all byte, character, timeout, prompt, output-kind and compression values while migrating internal consumers to one private capability descriptor. No SDK exports or configuration defaults change.
openclaw#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (openclaw#177614) fix(release): tag restart plugin cohorts consistently (openclaw#177725) refactor(ui): inline single-caller detail requests (openclaw#177705) chore(i18n): refresh native locales (openclaw#177721) refactor(codex): drop unread private runtime reports (openclaw#177689) refactor(ui): consolidate static artwork registries (openclaw#177692) refactor(ui): derive settings schema analysis in the view (openclaw#177624) refactor(media): consolidate capability defaults and compression grids (openclaw#177665) refactor(auth): bind OAuth managers to native provider operations (openclaw#177676) refactor(ui): remove redundant component rendering layers (openclaw#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082) fix(agents): report failed secret input prompt delivery (openclaw#177688) refactor(ui): share chat message render contracts (openclaw#177668) fix(ui): settle model status after overlapping publication (openclaw#177667) refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670) refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635) refactor: fold private operation helpers into their callers (openclaw#177655) refactor(ui): remove unused chat leaf element adapters (openclaw#177582) perf(talk): use published authority for foreign voice writes (openclaw#177533) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Media defaults repeat the same capability keys across independent byte, character, timeout, prompt and output-kind tables. Compression quality settings repeat the same preference decision in a switch.
What Changed
One private capability descriptor now supplies all five facts. Existing callers consume it directly, including image execution and output selection. A private media-cap map retains the document fallback, and the compression grid retains identical ladders while returning fresh arrays. All security, image dimension, byte, model policy and input validation checks stay.
This media-area recovery removes 16 net production lines across eight files. The workspace common package is private; SDK barrels select runtime operations, not these removed constants. No SDK export/signature, configuration/default value, protocol, schema or dependency changes. Existing tests are unchanged.
Best-effort tradeoffs accepted
None. This consolidates repeated static facts without removing guards. Source provenance: common media extraction #88297, media-cap extraction #88534, compression #157982. Their feature and error handling contracts remain.
Evidence
Conflict-only integration
GitHub reported the draft conflicting at its original head. The repair onto main
90703b442f6preserves the newer configured-image-provider owner and validated-config nullish fallback flow. Only the two fallback table references required manual resolution. No old type/scope/config guards were restored. The eight-file cut remains 16 net production lines removed; the range comparison contains only that fallback-context adaptation. Frozen-lockfile installation passed after rebasing. Fresh runtime-value and Madge cycle checks both report zero.Exact-head CI and inherited-failure exception
CI run 39314620042, attempt 1 completed failed, not green. All 83 jobs are terminal: 54 success, 27 skipped, and the two failures below. No selected product job was cancelled or had zero executed steps.
checks-node-changed-compact-large-17/ 118273496587get-reply-run.requester-authority.test-support.ts:127. Main #177652 intentionally removes undefined keys before replay/persistence; the deciding owner, caller, test and normalization inputs are byte-identical between actual tested main and merge.openclaw/ci-gate/ 118277603343The raw checkout identifies merge
43772a8aa60262b1b5091d737bcf2a2110b73e44, ordered parents main16aee9219d04a2bad2e076a018e2c21f06f802e6and reviewed heada91b7ddaffda74948e968ecb0c75a0ec75af12d7. The retained actual object and independently reconstructed full tree match. The actual merge contains only the eight reviewed media changes.A narrow real-owner comparison reproduces the same five missing-property mismatches serially on actual CI main, tested merge, and fresh current main
2f7829d9769f; the pre-#177652 owner has none. This settles owner-boundary causality, not a fullrunPreparedReplyreplay or end-to-end pass. An actual focused consumer attempt hit cold compiled-worker setup before assertions and was stopped/joined under the local-build budget; that gap remains explicit. No requester/durability code or test was weakened or changed.Complete exact-head census: 211 terminal checks, including the same two failures, three superseded metadata cancellations, and one neutral CodeQL result (not a scan-pass claim). The two historical PR-context cancellations have the same-head/same-workflow successful replacement job 118272758911 with nine executed successful steps; dispatch cancellation has replacement 118272755896 with twelve. No missing product suite is excused. The current flake register and latest six completed schedules were checked; these five assertions are not a listed flake and are attributed through the actual main-owner comparison, not shard names. Submission uses the campaign-authorized native inherited-only exception, retaining current security, review, policy and writer checks. No CI rerun or source push was used to chase green.