Repository navigation
feat(native): add manual and local ACP provider setup - #197
Merged
Merged
Conversation
This was referenced Nov 4, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.pngSetup choices:
/private/tmp/native-factory-2f5f764a/139-manual-acp/after-choices.pngManual registry fields:
/private/tmp/native-factory-2f5f764a/139-manual-acp/after-manual.pngLocal arguments/environment:
/private/tmp/native-factory-2f5f764a/139-manual-acp/after-local.pngRequired-executable validation:
/private/tmp/native-factory-2f5f764a/139-manual-acp/after-required-executable.pngFooter before the validation layout correction:
/private/tmp/native-factory-2f5f764a/139-manual-acp/before-validation-footer.pngLocal → registry source switch:
/private/tmp/native-factory-2f5f764a/139-manual-acp/after-source-switch.pngBuilt with GPT-6.1 Sol in Codex