mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
buildEnv() was appending extra env vars to os.Environ() without deduplicating. When the parent process already had a key (e.g. MULTICA_AGENT_ID from a prior run or shell profile), os.Getenv in the child would return the stale first occurrence, causing agent CLI actions to silently fall back to user identity. Now buildEnv removes parent entries that will be overridden before appending the daemon-provided values. Also: - Add X-Agent-ID to CORS allowed headers - Add handler tests for agent comment/issue attribution via X-Agent-ID - Add unit test verifying buildEnv override behavior