Repository navigation
docs: clarify configured media fallback selection - #134574
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:41 PM ET / September 1, 2026, 00:41 UTC. ClawSweeper reviewWhat this changesThe PR updates image, music, and video tool documentation to state that an explicit media-model primary or fallback limits candidate fallback to that configured list, while automatic provider discovery applies only when none is configured. Merge readinessNo blocking findings. The correction matches the current agent-tool contract; this maintainer-authored, protected-label PR should remain open for normal maintainer handling rather than automated cleanup. Priority: P3 Review scores
Verification
How this fits togetherAgent media tools turn a tool-call override, configured media models, or discovered ready providers into an ordered provider/model candidate list. The media runtimes then attempt that list in order and return the first successful generated asset or aggregated failure details. flowchart LR
A[Agent media tool call] --> B[Model override]
A --> C[Configured media models]
A --> D[Provider discovery]
B --> E[Candidate selection]
C --> E
D --> E
E --> F[Media generation runtime]
F --> G[Generated asset or failure details]
Decision needed
Why: The technical review is clear, but the protected maintainer label requires explicit maintainer handling under repository policy. Before merge
Agent review detailsSecurityNone. PR surfaceDocs +2. Total +2 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Merge the narrowly scoped documentation correction so the public selection order accurately distinguishes agent-tool behavior from the reusable runtime's default discovery behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR changes documentation only. The documented behavior is source-verifiable through the three agent-tool callers and their shared candidate selector. Is this the best way to solve the issue? Yes. Updating the three affected tool pages is the narrowest maintainable fix because the runtime contract is already correct and direct runtime callers intentionally retain their separate default behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 04d73ea52d82. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The image, music and video agent-tool pages say automatic fallback across providers is always enabled. The tools actually stop adding automatically discovered candidates when a primary or fallback model is explicitly configured.
Why This Change Was Made
Describe the existing selection order at each named agent-tool boundary: a per-call model override is exclusive, configured primary/fallback models bound the candidate list, and automatic selection applies when neither is configured. Describe provider readiness without assuming that every provider uses the same authentication path.
User Impact
Operators can tell which providers their configured agent tools may try. Runtime behavior, configuration, CLI defaults and plugin SDK contracts are unchanged. Configured fallback models still run in order. The correction is scoped to the agent tools because direct CLI/SDK runtime callers retain their own defaults.
Evidence
Read the complete pages, all three tool and runtime owners, shared selectors, configuration helpers and direct CLI/SDK callers. Explicitness comes from a nonblank primary or fallback, not a timeout-only slot. The tools pass the existing automatic-fallback flag to their runtime; Image also applies it during reference-capability candidate selection. The runtime retains configured candidates even when automatic discovery is disabled.
All 41 relevant source contexts were checked, including the pending Image wrapper cleanup's equivalent argument flow. Local stable-tag and available raw-parent comparisons corroborate the existing policy; the original introduction lies beyond shallow history. All ten normal docs-only changed checks, formatting and managed review passed. No runtime code or test changed; docs are +21/-19. No external provider call or new provider-specific claim is made.