Skip to content

Commit 1e216a0

Browse files
ziggyclaude
andcommitted
Use process.execPath for agent spawning and update CLAUDE.md
Fixes ENOENT when launchd PATH doesn't include /opt/homebrew/bin. Updates project CLAUDE.md for containerless architecture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d154574 commit 1e216a0

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/container-runner.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ function readSecrets(): Record<string, string> {
5656
/**
5757
* Ensure per-group directories and settings exist.
5858
*/
59-
function ensureGroupDirs(group: RegisteredGroup, isMain: boolean): {
59+
function ensureGroupDirs(
60+
group: RegisteredGroup,
61+
isMain: boolean,
62+
): {
6063
groupDir: string;
6164
groupIpcDir: string;
6265
groupSessionsDir: string;
@@ -156,7 +159,10 @@ export async function runContainerAgent(
156159
const groupDir = resolveGroupFolderPath(group.folder);
157160
fs.mkdirSync(groupDir, { recursive: true });
158161

159-
const { groupIpcDir, groupSessionsDir } = ensureGroupDirs(group, input.isMain);
162+
const { groupIpcDir, groupSessionsDir } = ensureGroupDirs(
163+
group,
164+
input.isMain,
165+
);
160166
const agentEntrypoint = getAgentRunnerEntrypoint();
161167

162168
const safeName = group.folder.replace(/[^a-zA-Z0-9-]/g, '-');
@@ -193,7 +199,7 @@ export async function runContainerAgent(
193199
return new Promise((resolve) => {
194200
// Build environment for the agent process
195201
const agentEnv: Record<string, string> = {
196-
...process.env as Record<string, string>,
202+
...(process.env as Record<string, string>),
197203
// NanoClaw-specific paths (replaces container volume mounts)
198204
NANOCLAW_GROUP_DIR: groupDir,
199205
NANOCLAW_IPC_DIR: groupIpcDir,

0 commit comments

Comments
 (0)