Files
codex-app-server/cloud/codex-ui-host/start.sh
T
host 3e0ff898e0
ci / test (push) Successful in 45m25s
feat: wire native Codex UI as /console entry, keep classic console at /console-classic
- Vendor codex-ui-stack host/ as cloud/codex-ui-host/ (original/ not vendored, 650MB)
- Bridge emulates 7 methods missing in codex 0.164.0-alpha.9, exposes 29
  experimental-protocol methods (150 -> 179), Linux binary candidates,
  read-only POST /__codex_git
- GET /console 302s to the UI host (:8095) when reachable, else falls back
  to the classic React console; GET /console-classic always serves it
- Alignment tables: docs/codex-native-ui-alignment.md
- Tests: test_console 7, new test_codex_ui_host 4, handler method pin 247 -> 249
2026-11-06 19:03:35 +00:00

21 lines
678 B
Bash
Executable File

#!/usr/bin/env bash
# Start the standalone original-UI web host in development mode.
#
# ./start.sh UI :8095
# UI_PORT=9000 ./start.sh custom port
# node verify.mjs --deep run the self-check in another shell
#
# The app-server binary ships inside ChatGPT.app; set CODEX_APP_SERVER_BIN
# if it lives elsewhere. There is no orchestrator/API layer in this stack.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
UI_PORT="${UI_PORT:-8095}"
export CODEX_WEB_PORT="$UI_PORT"
echo "[stack] UI http://127.0.0.1:${UI_PORT}/"
echo "[stack] test node ${ROOT}/verify.mjs --deep"
exec node "$ROOT/host/web-server.mjs" --port "$UI_PORT"