Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@
"--host-daemon-port" "38890"
# No --auto-update. It is not merely redundant against bbVersion
# above, it is broken here in two independent, silent ways:
# * the daemon installs the new build into BB_APP_NPM_PREFIX
# below, but ProgramArguments execs bbClientPrefix — launchd
# never runs the updated tree, and KeepAlive restores the old
# one on the next restart;
# * the daemon installs the new build under its own npm prefix
# while ProgramArguments execs bbClientPrefix — launchd never
# runs the updated tree, and KeepAlive restores the old one on
# the next restart;
# * the install shells out to mise's npm wrapper, which ends with
# `mise reshim`. launchd's PATH has no /opt/homebrew/bin, so
# that exits 127 AFTER npm unpacked the tree correctly; npm
Expand All @@ -149,7 +149,13 @@
];
EnvironmentVariables = {
BB_DATA_DIR = bbMachineDataDir;
BB_APP_NPM_PREFIX = "${bbMachineDataDir}/npm";
# No BB_APP_NPM_PREFIX. Its only reader in the daemon bundle is the
# self-update installer, which is unreachable without
# --auto-update, so it was inert config. Worth knowing before
# re-adding the flag: unset omits `--prefix` altogether rather than
# defaulting sensibly, so a bare `npm install -g` would land in the
# mise-managed node install. Restore this alongside any future
# --auto-update, not after it.
CLAUDE_CONFIG_DIR = "${homeDirectory}/.config/claude-code";
BB_CLAUDE_CODE_EXECUTABLE = "${homeDirectory}/.local/bin/claude";
};
Expand Down
Loading