Repository navigation
feat(native): add ACP registry search and sign-in wizard - #198
Conversation
c31361d to
b5f80be
Compare
|
Review follow-up: The verified P2 Create race is fixed in a separate commit: the dialog's shared state owns its Create phase and saved instance ID. Preparation, late-result staging and selection application all require the editing phase. Registry inputs/actions are disabled while Create owns the draft, and sign-in subscribes/renders using the captured saved ID. The deterministic state/handler ordering regression fails before the guards with All common gates were joined before the fix, then run once on the fixed revision: clippy, 1,329 workspace tests, normal/snapshot builds, theme/parity/conformance and the complete pinned check:changed command. New offscreen evidence uses only copied smoke home and fixtures: Declared gaps and runtime verification restrictions remain unchanged. Ready for the same reviewer to re-review the new head. |
The native add-provider dialog stopped at manual/Local ACP configuration and handed registry accounts off to Settings for sign-in. This ports registry search/preparation into Provider → Identity → Sign in and reuses the existing provider Account controls after Create.
Search debounces for 300ms, supports Enter/explicit refresh and loading/refresh/error/empty states, filters the real first-class provider registry IDs, prevents configured agents from being prepared again, and renders at most 512 results in a virtualized 256px list. Preparation merges the server's returned agent ID, version and distribution before applying the web's identity and configuration defaults (including the allowlisted icon URL). Dialog tokens, connection IDs, cancellation and result epochs prevent old searches/preparations from changing a hidden step, replacement dialog or environment. Provider-management permission and policy are checked again at execution and selection.
Manual/Local ACP setup keeps its reset/draft/Back behavior. Built-in wizard configuration and ChatGPT setup remain on their existing paths. Registry Create opens the shared auth UI, including discovery, browser/device-code/credentials/terminal interactions, cancellation, sign-out and Done/Skip behavior. No contracts, web or server code changed.
Validation:
cargo clippy --workspace --all-targets -- -D warningscargo test --workspace(1,329 tests), plus the focused 53 provider casesACP Registrymust derive its label-based ID rather than the manual custom IDvp run check:changed aae811d2ffe6cfdf188c321dfa02041a3fedca78is green on the final revisionOffscreen evidence (local PNGs only, per factory instructions):
/private/tmp/native-factory-2f5f764a/evidence-139-registry/before-choices.png/private/tmp/native-factory-2f5f764a/evidence-139-registry/search-dark.png,/private/tmp/native-factory-2f5f764a/evidence-139-registry/search-light.png/private/tmp/native-factory-2f5f764a/evidence-139-registry/preparing-dark.png,/private/tmp/native-factory-2f5f764a/evidence-139-registry/identity-dark.png/private/tmp/native-factory-2f5f764a/evidence-139-registry/signin-dark.png,/private/tmp/native-factory-2f5f764a/evidence-139-registry/auth-active-dark.png,/private/tmp/native-factory-2f5f764a/evidence-139-registry/signed-in-dark.pngST-PROVIDERS and ST-SHELL stay partial and retain #139. Remaining gaps: registry icon image rendering (the validated URL is persisted; rows use the existing initials fallback), recent-query cache reuse across dialog reopen, selected-agent Docs/Source links, and the accepted P3s for concurrent argument-array merges and live-policy select focus. The known offscreen renderer still sometimes omits cached heading/footer glyphs after scrolling; this does not expand into a renderer rewrite.
No real registry requests/preparations/downloads, provider Create/auth/launch, paid turns, real windows, computer use, clipboard writes, new dev servers or containers, live-state access or cleanup occurred. Real-provider and reduced-scope remote behavior remain unverified. The worktree is retained for orchestrator cleanup.
Review follow-up:
b5f80bef497c749ad5cc72dd5ff7af172658b6afis based onfork/nativeataae811d2ffe6cfdf188c321dfa02041a3fedca78. The rebase pointd1a17db0d148b5473f8b6f36e83a723bf0d41cebpreserves all ten non-ledger feature blobs and the exact non-ledger patch fromc31361d326. All 129 other ledger rows, including Appearance/theme rows, retain the new base's values; ST-SHELL/ST-PROVIDERS remain partial #139.The verified P2 Create race is fixed in a separate commit: the dialog's shared state owns its Create phase and saved instance ID. Preparation, late-result staging and selection application all require the editing phase. Registry inputs/actions are disabled while Create owns the draft, and sign-in subscribes/renders using the captured saved ID. The deterministic state/handler ordering regression fails before the guards with
fixture-bcrossing the pending Create, then passes for new preparation, late/queued application, failure recovery and completed Create. Existing permission/policy/connection/dialog guards remain in place.All common gates were joined before the fix, then run once on the fixed revision: clippy, 1,329 workspace tests, normal/snapshot builds, theme/parity/conformance and the complete pinned check:changed command. New offscreen evidence uses only copied smoke home and fixtures:
/private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/saving.png,/private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/auth-active.png,/private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/local.png,/private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/identity-back.png. All four exited 0 and were inspected; the known cached-glyph limitation still appears after Back. Failing-first/check logs, blob/ledger proofs, range-diff and the isolated review-fix patch are in/private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/(proof.json,range-diff.txt,review-fix.patch). No real Create/auth/registry operation was performed.Built with GPT-6.1 Sol in Codex