-
Notifications
You must be signed in to change notification settings - Fork 155
bug: apm run start picks wrong runtime — system PATH stub takes priority over APM-managed binary, codex v0.116+ incompatible with GitHub Models #605
Copy link
Copy link
Open
Labels
acceptedDeprecated: use status/accepted. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use status/accepted. Kept for issue history; will be removed in milestone 0.10.0.area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.docs/src/content (Starlight), README, doc generation.bugDeprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).type/bugSomething does not work as documented.Something does not work as documented.
Milestone
Metadata
Metadata
Assignees
Labels
acceptedDeprecated: use status/accepted. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use status/accepted. Kept for issue history; will be removed in milestone 0.10.0.area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.docs/src/content (Starlight), README, doc generation.bugDeprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).type/bugSomething does not work as documented.Something does not work as documented.
Type
Projects
Status
In Progress
Description
apm run startselects the wrong runtime in two separate but related scenarios:Scenario A — System PATH stub wins over APM-managed binary
When a broken runtime stub exists in the system PATH (e.g. a GitHub CLI extension registers a
copilotshim),_detect_installed_runtimefinds it viashutil.which()before checking~/.apm/runtimes/. The selected binary may be non-functional.Scenario B — codex v0.116+ is incompatible with GitHub Models
codex removed
wire_api = "chat"support in v0.116 and now requireswire_api = "responses"(OpenAI Responses API). GitHub Models only exposes the Chat Completions endpoint — the/responsesendpoint returns 404. There is no configuration workaround; the two are fundamentally incompatible at the API level.apm runtime setup codexinstalls the latest release (currently v0.117), which cannot work with GitHub Models regardless of config.Steps to Reproduce
Scenario A:
apm runtime setup codexcopilotin PATH (e.g.gh extension install github/gh-copilot)apm run start— copilot stub is selected, codex is ignoredScenario B:
apm runtime setup codex(installs v0.116+)$env:GITHUB_TOKEN = "..."; apm run startChanging to
wire_api = "responses":Expected Behaviour
~/.apm/runtimes/take priority over anything in PATH.apm runtime setup codexeither installs a version that works with GitHub Models, or clearly documents the incompatibility and suggests an alternative.Environment