Files
multica/server/cmd
Jiayuan 31a22ff30f fix(agent): ensure daemon env vars override parent environment
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
2026-03-30 03:38:34 +08:00
..