Codex agent exits and MOI reports inconsistent server state
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 169
- Forks
- 12
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 23
Description
Summary
The Codex agent connection exits immediately in a newly initialized MOI workspace. The Agent page shows:
codex app-server exited
The workspace UI remains available, but messages cannot be sent.
Environment
- macOS
- MOI CLI:
0.10.0 - MOI workspace skill:
0.13.0 - Codex CLI:
0.144.6 - Bun:
1.4.0 - Harness: Codex
Steps to reproduce
- Initialize the project with
moi init --harness=codex. - Run
moi skill update. - Start MOI and open the generated workspace URL.
- Open the Agent tab.
- Observe the login prompt and the red
codex app-server exitederror.
Actual behavior
- The Agent page displays
codex app-server exited. - The message field is disabled, so the agent cannot be used.
- Running
moi startreports:Server is already running on http://localhost:13337 - At the same time,
moi statusreports:Server is not running cli version 0.10.0 - A Bun process is listening on both MOI ports
13337and13059.
Expected behavior
MOI should connect to the Codex app-server and allow messages to be sent. The CLI should also report a consistent server state.
A screenshot showing the Agent error is available and will be attached in a follow-up comment.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the failure with moi init --harness=codex, moi skill update, moi start, and moi status, then inspect the Agent tab and the CLI's server-state reporting entry points. Compare the Codex app-server connection failure with the Bun process listening on ports 13337 and 13059. Done means the Agent accepts messages and moi start and moi status report a consistent server state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, typescript
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100