Documentation
¶
Overview ¶
Package childenv builds the environment for a child process that agent-deck spawns (claude workers, pooled MCP servers), guaranteed not to inherit the conductor's telegram pollution.
It lives in its own leaf package — not in internal/session — because internal/session imports internal/mcppool, so mcppool cannot import session. Both packages (and cmd/agent-deck) import this leaf so a single filter is the only way to construct a child env. Direct os.Environ() in the spawn-path packages is forbidden by golangci forbidigo (see .golangci.yml); this is the one allowlisted home for it.
Issue #1163: a child must NEVER inherit the parent's CLAUDE_CONFIG_DIR. The conductor's config dir points at a worker-scratch profile whose settings.json enables the telegram plugin; inheriting it makes the child load telegram and spawn a duplicate poller. #1152 stripped TELEGRAM_* but not CLAUDE_CONFIG_DIR — this closes that gap structurally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.