nexus/packages
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
..
adapter-utils fix: address review feedback on skills and session compaction 2026-03-17 09:21:44 -05:00
adapters fix: guard os.userInfo() for UID-only containers, exclude HOME from cache key 2026-03-17 13:05:23 -04:00
db Add workspace operation tracking and fix project properties JSX 2026-03-17 09:36:35 -05:00
plugins Merge remote-tracking branch 'public-gh/master' into paperclip-subissues 2026-03-16 19:51:09 -05:00
shared Add workspace operation tracking and fix project properties JSX 2026-03-17 09:36:35 -05:00