nexus/packages/adapters/opencode-local/src
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
..
cli Fix opencode-local adapter: parser, UI, CLI, and environment tests 2026-03-07 19:01:04 +00:00
server fix: guard os.userInfo() for UID-only containers, exclude HOME from cache key 2026-03-17 13:05:23 -04:00
ui feat: optimize heartbeat token usage 2026-03-13 09:40:43 -05:00
index.ts Remove legacy OpenClaw adapter and keep gateway-only flow 2026-03-07 18:50:25 -06:00