GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction
@claude
fix(bin,mcpx): one home-resolution rule for bin/ and the mcpx plugin (#…
afc23d3
…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]>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 04:22
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 04:22
@dezren39
dezren39 merged commit e837d3c into main Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the claude/home-resolution-bin-11205 branch November 18, 2026 04:22
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 18, 2026
home-resolution contract: bin/ proxy family + mcpx plugin unit (unit 2 of #8220) #11205
Closed
3 tasks
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
This was referenced Nov 25, 2026
home-resolution contract: the last three os.homedir() files outside bin/ and pm-stack (unit 3 of #8220) #14757
Closed
home-resolution contract: disposition the os.homedir() surface against #5762 #8220
Closed
Home is not optional — one home-resolution contract for the repo's tools #5762
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

home-resolution contract: bin/ proxy family + mcpx plugin unit (unit 2 of #8220)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dezren39 @claude
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.