Repository navigation
feat(search): configure providers and verify search in Settings - #154135
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: blocked before merge. Reviewed September 21, 2026, 6:39 AM ET / 10:39 UTC (Revision 13). ClawSweeper reviewWhat this changesAdds Search settings for configuring existing providers, inspecting model-specific routing, testing provider responses, and opening an unsent chat with the selected model. Merge readiness⛔ Blocked before merge - 1 item remains The contribution remains useful and is not implemented on the inspected main branch. The earlier authority finding is repaired, and source inspection resolves the prior migration concern. No actionable blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI uses Gateway methods to inspect search configuration and test the existing provider runtime. Configuration changes remain with the shared configuration owner, while native search routes hand off to the chat composer. flowchart TD
A[Search settings] --> B[Existing configuration owner]
A --> C[Gateway access checks]
B --> D[Provider and model routing]
C --> D
D --> E[Provider test with live authority]
D --> F[Unsent model-selected chat]
E --> G[Results or actionable error]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1740, Tests +2101, Docs +45, Other +3. Total +3889 across 58 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep configuration, credentials, routing, and execution with their existing owners while exposing accurate setup and health feedback through Search settings. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request: current-main inspection confirms the dedicated Search settings workflow is absent. The supplied evidence exercises the proposed workflow. Is this the best way to solve the issue? Yes. The implementation extends existing configuration, credential, model-catalog, and search owners, preserves existing stored settings, and distinguishes provider verification from native search. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aabfaf98b24a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
d9f5d32 to
e9e5397
Compare
|
8dacff8 to
f0bd3fe
Compare
Keep the existing timeout and success predicate while preserving the complete redacted cron response in assertion output and retained proof. The original CI timeout remains unproven after bounded replay; this change improves diagnosis without claiming a causal flake repair.
Keep Search settings credential availability and native routing on lifecycle-published auth snapshots. Missing publication remains unavailable instead of reopening persisted auth on the Gateway request thread. Regression cases fail on the previous cold-state fallback; 71 focused and sibling cases, typechecks, lint, and independent review pass.
d7acf63 to
09fd84f
Compare
|
Merged via squash.
|
…claw#154135) * feat(search): configure providers and verify search in Settings * refactor(search): keep settings projections lint clean * fix(search): bind provider tests to applied settings * fix(search): preserve protocol order and complete CI coverage * perf(search): defer model URL validation until needed * fix(search): recheck authority before provider requests * fix(search): include authority helper in wrapper closure * test(qa): retain redacted cron run failure diagnostics Keep the existing timeout and success predicate while preserving the complete redacted cron response in assertion output and retained proof. The original CI timeout remains unproven after bounded replay; this change improves diagnosis without claiming a causal flake repair. * fix(search): project status from published auth state Keep Search settings credential availability and native routing on lifecycle-published auth snapshots. Missing publication remains unavailable instead of reopening persisted auth on the Gateway request thread. Regression cases fail on the previous cold-state fallback; 71 focused and sibling cases, typechecks, lint, and independent review pass.
What Problem This Solves
Search can appear enabled without a usable provider, and operators have no single place to inspect model-specific routing, configure a provider, or check its credentials.
User Impact
Settings → Search lets administrators choose a provider, edit its existing credential and endpoint settings, inspect search routing for an agent/model, and run a real provider test with results, source links, latency, or an actionable error. Native and external-harness search offers an unsent chat with the chosen model selected instead of pretending another provider verified that route.
Why This Change Was Made
The page reuses the existing plugin configuration, credential editor, model catalog, and search execution owners. Provider setup remains independent from tested health; account, connection, model, configuration, and query changes cannot leave a stale success beside a new selection. No new credential store or configuration migration is introduced. Test queries use the provider's normal account limits and billing.
Evidence
skill-runtime.library-read.test.ts: it deleted its temporary database root before asynchronous reclamation workers released their leases. Fixed on main in 103115f2f0b and incorporated here. The existing-owner resource assertion fails on the old teardown; all nine cases pass after awaiting agent drainage before shared-state shutdown/root removal, including a fresh-main replay (58.23 seconds wall). Typecheck, lint, formatting, and independent P2 review pass; no deadline or behavior assertion was weakened.update-cli.test.ts. A task-only custody probe found the relocated shared-state worker still alive after native-only teardown, with its coordinator directory inside the home being removed. Fixed on main in 2a820f484186: the existing whole-state asynchronous drain settles that worker before filesystem cleanup. The same custody assertion fails before the fix and passes afterward with no remaining actor. All 36 focused Windows, relocated-state, and recovery cases pass (80.55 seconds wall), together with selected type/lint/format/repository checks and independent P2 review. A supplementary full-file run stopped on a loaded host after 138 passes and no failures; it is not claimed as complete. A subsequent startup failed withENOSPCbefore any cases ran; clearing task-owned disposable caches restored space and the focused run passed. The timing-dependentENOTEMPTYitself was not reproduced. No production behavior, deadline, or assertion was weakened.system-notice, light) inchat-mobile-bubble-margin.e2e.test.ts. A single unchanged replay of all 56 cases in the original order passed with Node 24.19.0 and Chromium 153.0.8010.12 matched to CI (109.89 seconds wall; the failing case took 1.005 seconds). The replay was macOS arm64 versus Linux CI; the original post-close diagnostic did not identify the awaited step. No cause or fix is claimed, and no deadline or assertion was changed.c018e0667d80using the installed Codex app-server 0.154.0, real stdio client, and a credential-free synthetic Responses endpoint. The production handler, search runtime, provider, and bounded turn remained real. Authorized traffic wroteinitialize → model/list → thread/start → turn/start, and the actual native HTTP request advertisedweb_search. A read-only caller spawned nothing; client/profile/config revocation before thread or turn dispatch prevented that next frame and all provider I/O. Seven child processes exited cleanly. Status/profile/registry selection and response content were synthetic, and no authenticated Gateway WebSocket or remote search-quality claim is made. The fixture recorded native WebSocket attempts followed by one successful SSE HTTP POST. Total wall time was 199.74 seconds, including compilation; no new per-PR test was added.src/config,src/state, orpackages/storage-core.packages/gateway-protocol/src/schema/web-search.tsdefines only the new RPC request/response payloads;settings-targets.tsonly maps existing search config paths to the new navigation destination. No persisted field or database table is added or retired, so no data migration is required. Full protocol generation preserves existing method order, and existing config-owner round-trip coverage passes. The automated database-migration checklist is a path-classification false positive.Before: no Search settings destination (synthetic fixture).
After: provider routing and an actionable authentication failure (synthetic fixture).
Successful provider test with sources