Skip to content

Crash when Cursor or Codex are not installed and Settings page is visited #281

@martinjuhasz

Description

@martinjuhasz

Hi,

everytime i try to visit the settings page i get this crash.

I only have installed claude, not cursor or codex.
I got another error regarding cursor mcp integration first but i fixed that with adding an {} json file to ~/.cursor/mcp.json.

But now i run into this error seemingly because of codex server/routes/codex.js:103:25. i dont have a codex process running which the router is looking for, so i guess there is the problem.

Database initialized successfully
Database migrations completed successfully
[INFO] Using Claude Agents SDK for Claude integration
[INFO] Running in PRODUCTION mode

───────────────────────────────────────────────────────────────
  Claude Code UI Server - Ready
───────────────────────────────────────────────────────────────

[INFO] Server URL:  http://0.0.0.0:8080
[INFO] Installed at: /usr/local/lib/node_modules/@siteboon/claude-code-ui
[TIP]  Run "cloudcli status" for full configuration details

WebSocket connection attempt to: /ws?token=xyz
[OK] WebSocket authenticated for user: abc
[IN at: /home/dev/.claude.json
__ Found 0 MCP servers in config
node:_http_outgoing:700
    throw new ERR_HTTP_HEADERS_SENT('set');
    ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (node:_http_outgoing:700:11)
    at ServerResponse.header (/usr/local/lib/node_modules/@siteboon/claude-code-ui/node_modules/express/lib/response.js:794:10)
    at ServerResponse.send (/usr/local/lib/node_modules/@siteboon/claude-code-ui/node_modules/express/lib/response.js:174:12)
    at ServerResponse.json (/usr/local/lib/node_modules/@siteboon/claude-code-ui/node_modules/express/lib/response.js:278:15)
    at ChildProcess.<anonymous> (file:///usr/local/lib/node_modules/@siteboon/claude-code-ui/server/routes/codex.js:103:25)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1101:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:346:12) {
  code: 'ERR_HTTP_HEADERS_SENT'
}

Node.js v22.21.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions