nexus/packages/adapters/opencode-local
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
..
src fix: guard os.userInfo() for UID-only containers, exclude HOME from cache key 2026-03-17 13:05:23 -04:00
CHANGELOG.md chore: release v0.3.1 2026-03-12 13:09:22 -05:00
package.json chore: release v0.3.1 2026-03-12 13:09:22 -05:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts Add OpenCode provider integration and strict model selection 2026-03-05 15:24:20 +01:00