-
Notifications
You must be signed in to change notification settings - Fork 30
Server exited before becoming ready (1) when starting t1code #6
Copy link
Copy link
Open
Description
Bug Description
When running bunx @maria_rcks/t1code, the TUI interface starts but the backend server crashes immediately with:
Error: Server exited before becoming ready (1).
at waitForServerPort (/private/tmp/bunx-501-@maria_rcks/t1code@latest/node_modules/@maria_rcks/t1code/dist/index.mjs:4140:50)
at async startServerSupervisor (/private/tmp/bunx-501-@maria_rcks/t1code@latest/node_modules/@maria_rcks/t1code/dist/index.mjs:4259:8)
at async <anonymous> (/private/tmp/bunx-501-@maria_rcks/t1code@latest/node_modules/@maria_rcks/t1code/dist/index.mjs:6515:14)
The TUI renders but becomes unresponsive because the server process it manages has exited.
Environment
- macOS (Darwin 25.4.0)
- Bun 1.3.5
- t1code v0.0.15
Steps to Reproduce
- Set environment variables:
export ANTHROPIC_API_KEY="<key>" export ANTHROPIC_BASE_URL="https://api.minimaxi.com/anthropic" export ANTHROPIC_MODEL="MiniMax-M2.7-highspeed"
- Run
bunx @maria_rcks/t1code - Observe: TUI appears but immediately shows the error
Additional Notes
- API key and model are valid (tested with curl, returns successful responses)
- The error occurs even with valid API credentials
- Port 3939/3940 appear available (no process conflict)
- The server supervisor seems to exit with code 1 before the server becomes ready
Expected Behavior
t1code should start the backend server successfully and connect to the configured LLM API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels