nexus/packages/adapters
John Wessel 5965266cb8
fix: guard os.userInfo() for UID-only containers, exclude HOME from cache key
Address Greptile review feedback:

1. Wrap os.userInfo() in try/catch — it throws SystemError when the
   current UID has no /etc/passwd entry (e.g. `docker run --user 1234`
   with a minimal image). Falls back to process.env.HOME gracefully.

2. Add HOME to VOLATILE_ENV_KEY_EXACT so the discovery cache key is
   not affected by the caller-supplied HOME vs the resolved HOME.
   os.userInfo().homedir is constant for the process lifetime, so
   HOME adds no useful cache differentiation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 13:05:23 -04:00
..
claude-local feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
codex-local Treat Codex bootstrap logs as stdout 2026-03-16 18:26:36 -05:00
cursor-local feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
gemini-local feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
openclaw-gateway chore: release v0.3.1 2026-03-12 13:09:22 -05:00
opencode-local fix: guard os.userInfo() for UID-only containers, exclude HOME from cache key 2026-03-17 13:05:23 -04:00
pi-local feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00