agmsgd (v1.6.0, Windows): daemon enable records npm's extensionless codex shim, so every Codex seat stays windows_codex_executable_unresolved
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bash, javascript, node.js
Research direction
Start in scripts/daemon.sh around L492 in _resolve_codex, and scripts/daemon/channels/windows-codex-queue.mjs L11 resolveWindowsCodexExe. On Windows, make the recorded path resolve to codex.exe or the npm vendor exe, mirroring the gate's lookup. Done when agmsg daemon enable records a native codex.exe and daemon offer codex seats become addressable without the workaround.
Written by the indexing model from the issue text.
Description
Summary
On Windows with npm-installed Codex, every Codex seat stays blocked / windows_codex_executable_unresolved. Meanwhile daemon offer codex says it is available.
Details
agmsg daemon enablerecords npm's extensionless shim (.../AppData/Roaming/npm/codex) asmeta.codex_path. The cause is that_resolve_codex(scripts/daemon.sh, around L492) takes the first<PATH dir>/codex.- The Windows queue gate,
resolveWindowsCodexExe(scripts/daemon/channels/windows-codex-queue.mjs, L11), accepts an absolute path only when its basename iscodex.exe.- It does the npm vendor-exe lookup only for the bare name
codex. - So the recorded path is never accepted.
- It does the npm vendor-exe lookup only for the bare name
- Git Bash's
.exelookup also makes[ -f <dir>/codex ]true for a lonecodex.exe. That path is still recorded ascodex.
Proposal
On Windows, resolve the recorded path the way resolveWindowsCodexExe resolves the bare name: first <dir>\codex.exe, then npm's @openai/codex-win32-<arch> vendor exe.
Alternatively, let the gate apply that lookup to an absolute codex shim as well.
Workaround
AGMSG_REAL_CODEX=<native codex.exe> agmsg daemon enable records the native exe. The seat became addressable on the next check, with no restart.
Environment
- agmsg v1.6.0 (install.sh), agmsgd enabled with
agmsg daemon enable - Windows 11 Pro 26200, non-admin user, Git for Windows bash 5.2.37 (MSYS)
- Node 24.11.1, Codex CLI 0.164.0 (npm global), Claude Code 2.1.310
- Dominant language
- Shell
- Stars
- 1.5k
- Forks
- 156
- Avg merge
- 19h 36m
- Merged PRs (30d)
- 213
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fujibee/agmsg
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
plugin install: the confirmation hint names 'agmsg' even for an install with another --cmd nameOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
agmsgd (v1.6.0, Windows): a dead agmsgd is never restarted (the launcher exits 0, so RestartOnFailure never fires)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fullsend-ai/agents#1833 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gnosis/gnosis_vpn#661 ·
Maintainers usually reply within 1 day
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
github/copilot-cli#5287 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
admission-deferred priority: medium status: ready work-class: scoped
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melodic-software/claude-code-plugins#10887 · 4 comments ·
Maintainers usually reply within 1 day