Repository navigation
Unlink Chrome-Agent 1Password native host and add share-to-agent helper - #1058
Merged
Merged
Conversation
- Remove Chrome-Agent from home.activation.linkOnePasswordNativeHost in users/dev/home.darwin.nix and clean up any existing manifest file/symlink so Chrome-Agent's 1Password extension can run standalone against a dedicated vault. - Install pkgs._1password-cli and a share-to-agent helper on macOS to copy a single 1Password item into the Agent vault via interactive approval, without printing secrets, calling op signout on exit to close the CLI session immediately. - Add unit tests in scripts/test-share-to-agent.sh and wire into CI.
johnnymo87
enabled auto-merge (squash)
December 1, 2026 18:29
…ion guard Rewrite echo "$out" | grep -q ... to grep -q ... <<<"$out" so the pipefail-inversion check passes under set -o pipefail. X-Shepherd-Wake: #1058
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.
Summary
Chrome-Agentfromhome.activation.linkOnePasswordNativeHostinusers/dev/home.darwin.nix(and removes any existing manifest atChrome-Agent/NativeMessagingHosts/com.1password.1password.jsonon switch) soChrome-Agent's 1Password extension runs standalone against a dedicatedAgentvault.pkgs._1password-cliandshare-to-agent(assets/scripts/share-to-agent.sh) on macOS to copy a single 1Password item into theAgentvault viaop item get --format json --reveal->jq->op item create --vault Agent -, without printing secrets, and runningop signoutin anEXITtrap to end the ~10-minuteopCLI session immediately.scripts/test-share-to-agent.shand wires them into.github/workflows/ci.yml.Verification
bash scripts/test-share-to-agent.sh: 4/4 pass.bash users/dev/test-unwired-tests.sh: pass.shellcheck assets/scripts/share-to-agent.sh scripts/test-share-to-agent.sh: clean.gitleaks detect --source . --no-git --redact --no-banner: 0 findings.nix eval .#darwinConfigurations.Y0FMQX93RR-2.system --apply 'x: "ok"': ok.