GeezerVison is showing github.com — fix(bin,mcpx): one home-resolution rule for bin/ and the mcpx plugin by dezren39 · Pull Request #11487 · developing-today/code
Conversation
dezren39
commented
Nov 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: The bin/ scripts each resolved home their own way. os.homedir() quietly falls back to the passwd entry when HOME is unset, ~ expansion did the same, proxy-relay took a relative XDG_STATE_HOME as given, sync-models ran agy with a hardcoded /home/user/.gemini/agy-proxy-env, and the mcpx plugin's stateDir turned an empty HOME into a working-directory-relative .local/state/mcpx.
After: One rule everywhere in this unit: home is a non-empty HOME, an empty HOME counts as unset, and unset is a named error (HOME is not set or is empty: <tool> requires a non-empty HOME …) before any path is read. Absolute XDG overrides keep working; relative or empty ones are ignored. With HOME set, every path is exactly what it was.
How:
- New
bin/home-dir.mjs (resolveHome, homePath, expandTilde, xdgStateHome) with a probe-matrix test.
- Routed through it:
check-opencode-go-seating, opencode-acp-adapter, opencode-route-proxy, proxy-relay, proxy-supervise (tilde expansion and default cwd), record (DEFAULT_TARGET became a lazy defaultTarget(env)), scratch-worktree, provider-catalog-sync and sync-models (which also lost its hardcoded /home/user).
stateDir in both mirrored daemon.ts copies follows the contract, and mcpx's Go envJoin now ignores a relative XDG dir so the plugin and the daemon still agree on where state lives.
Testing:
node --test bin/*.test.mjs: 328 passed, including the new probe matrix and an end-to-end check that opencode-route-proxy exits naming HOME when HOME is unset or empty. proxy-supervise.test.mjs and record.test.mjs updated to the contract.
bun test plugin/core/ in pkgs/mcpx: 64 passed. The mirrored .opencode copy: 34 passed.
go test ./internal/daemon/ in pkgs/mcpx: ok, with a new test for a relative XDG_STATE_HOME.
Closing inventory (#5762): the pm-stack unit (task 20094) has not merged, so that duty passes to it. A fresh sweep on this branch shows the remaining homedir() uses are all in pm-stack/aggregator (its own unit) plus home/openclaw/acpx/muse-agent-acp-wrapper.mjs, which neither unit covers.
Nix side: not changed here (dezren39/nix is read-only from this session). If the nix mcpx package or its home-manager units set a relative XDG_STATE_HOME or XDG_CACHE_HOME, they need the matching change.
Closes #11205
Generated by Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…11205)
bin/home-dir.mjs implements the contract for the bin/ family: a
non-empty HOME, an empty HOME counts as unset, unset is a named
HomeUnsetError, absolute XDG overrides win and relative ones are
ignored. Every bin/ site that used os.homedir(), a ~ expansion, or a
hardcoded /home/user now goes through it. The mcpx plugin's stateDir
(both mirrored daemon.ts copies) refuses an empty HOME and a relative
XDG_STATE_HOME, and the Go side ignores relative XDG dirs to match.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-18T04:23:03.788976Z |
afc23d3 |
Draft marked ready |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|