fix(bird): put Brave wrapper first on PATH and check the wiring

This commit is contained in:
hermes committed 2026-11-29 10:37:58 -05:00
1 parent 8378ac41fd
commit 72a23ff0d0
3 files changed
+72 -4

No files matched your search

+10 -4
View File
@@ -71,6 +71,10 @@ in
syntaxHighlighting.enable = true; # commands turn green when valid
initContent = ''
bindkey '^f' autosuggest-accept
# Brave-only bird wrapper wins over Homebrew's npm bird shim. zshrc runs
# after .zprofile, whose brew shellenv puts /opt/homebrew/bin first.
typeset -U path
path=("$HOME/.pi/agent/bin" $path)
# Keep the OpenCode Go CLI, Pi, no-mistakes, and Hermes key aligned with
# the desktop app login after an account switch.
if [ -x "$HOME/.local/bin/opencode-go-key-sync" ]; then
@@ -295,10 +299,12 @@ in
# Brave-only bird reader. The config points bird's Chromium source at Brave;
# the wrapper decrypts Brave cookies with the Brave Safe Storage key and
# hands them to bird as env vars. PATH puts ~/.pi/agent/bin before Homebrew,
# so `bird` resolves to this wrapper. force = true on the config is needed
# once: a pre-existing unmanaged ~/.config/bird/config.json5 would otherwise
# make home-manager refuse the switch. The wrapper path is new, so no force.
# hands them to bird as env vars. The session PATH puts ~/.pi/agent/bin
# before Homebrew, so `bird` resolves to this wrapper and not the npm shim.
# force = true on the config is needed once: a pre-existing unmanaged
# ~/.config/bird/config.json5 would otherwise make home-manager refuse the
# switch. The wrapper path is new, so no force.
home.sessionPath = [ "${home}/.pi/agent/bin" ];
home.file.".config/bird/config.json5" = {
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/.config/bird/config.json5";
force = true;