Skip to content

feat(native): add manual and local ACP provider setup - #197

Merged
rynfar merged 2 commits into
nativefrom
nw/139-manual-acp
Nov 4, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/139-manual-acp

Conversation

@rynfar

@rynfar rynfar commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Add provider could configure built-in drivers but had no way to enter an official ACP Registry ID or set up an installed Local ACP executable. This slice adds both explicit paths under Show more, using the existing schema-derived settings fields and shared argument/environment controls.

Manual registry setup includes source, official agent ID, executable override and authentication override. Local ACP uses Provider → Identity, requires an executable, and includes literal argument rows plus masked/plain environment values and secret references. Navigation validates prerequisites and identity; Back preserves drafts, switching built-in drivers preserves their drafts, and choosing a fresh manual/local setup resets the same drafts as web. Field focus follows transitions. Driver policy, field locks and providers:manage are checked again in handlers and before Create. The dialog owns its form draft; it never autosaves argument or environment edits to an existing provider.

Manual registry creation hands the new instance back to its provider settings for sign-in. Embedded wizard sign-in remains deferred. No registry search, result preparation or download was added or invoked. Native only: existing web/Electron/mobile behavior and contracts stay unchanged; local and remote connections use the existing destination-environment RPC.

ST-PROVIDERS and ST-SHELL remain partial, with their Native paths updated and #139 retained in both Issue columns. Please keep #139 open.

Remaining gaps:

  • ACP Registry network search, result preparation/downloads and embedded sign-in in the add wizard; Change setup returns to the manual/local choices in this slice.
  • Existing per-argument merge across simultaneous clients (P3), and focus after a live policy change on a focused Config select (P3).
  • The offscreen renderer intermittently omits the Cancel label after dismissing the ACP source menu until the footer is hovered. Real-window confirmation is outside the authorized verification scope.
  • Real provider Create/authentication/launches, secret-provider resolution, reduced-scope remote sessions and live failure injection remain unverified. Verification deliberately never submitted Create or launched a provider.

Switching a sensitive environment row back to Plain text now discards any incomplete secret-source selection, restores the raw literal and input mode, and clears stale validation. The shared handler covers the add wizard and existing instance editor; committed references and redacted rows remain protected. The extended core case fails before the fix on the lingering provider and covers blank/saved/replacement literals, returning to Sensitive, and protected reference/redacted rows.

Validation: 1,320 native workspace tests; clippy across all workspace targets with warnings denied; snapshot build; theme, parity, schema-derived conformance and changed-file checks. Core tests cover manual/local reset values, selection/identity navigation, source switching, configuration/secret payloads and pending secret-reference validation. Validation errors stay in the scrolling panel so the footer remains reachable; before/after captures provide the visual proof. No visual nitpick tests were added.

Offscreen evidence (local PNGs, copied smoke14658 home only):

  • Before: /private/tmp/native-factory-2f5f764a/139-manual-acp/before.png

  • Setup choices: /private/tmp/native-factory-2f5f764a/139-manual-acp/after-choices.png

  • Manual registry fields: /private/tmp/native-factory-2f5f764a/139-manual-acp/after-manual.png

  • Local arguments/environment: /private/tmp/native-factory-2f5f764a/139-manual-acp/after-local.png

  • Required-executable validation: /private/tmp/native-factory-2f5f764a/139-manual-acp/after-required-executable.png

  • Footer before the validation layout correction: /private/tmp/native-factory-2f5f764a/139-manual-acp/before-validation-footer.png

  • Local → registry source switch: /private/tmp/native-factory-2f5f764a/139-manual-acp/after-source-switch.png

Built with GPT-6.1 Sol in Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant