You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex still runs through the SDK path unless GITBOT_CODEX_APP_SERVER is set #34
The codex app-server path — the only one that can ask the user for permission — is behind GITBOT_CODEX_APP_SERVER=1. By default Codex still runs through @openai/codex-sdk, where a permission mode picks a sandbox and nothing else.
Both paths therefore live in src/start-codex.ts and src/codex-app-server.ts, and the SDK path carries comments describing an architecture that no longer applies.
What to do
Remove the flag; make app-server the path.
Delete the SDK call path: loadCodexSdk, createCodex, permissionToCodex, handleEvent, handleItem, and the ThreadOptions / ThreadEvent imports. Delete it, don't defang it.
Keep @openai/codex-sdk as a dependency — it pins and ships the binary — and comment that, or it will look like a stray dep and get removed. Keep codexOnPath() and the fallback.
Leave listSessions, loadTranscript, stripEnvelopes and the attachment/manifest code alone: they read rollout files, which app-server writes identically.
Grep for stale claims. Several comments and docs still assert Codex has no approval channel — src/start-codex.ts:164-170, docs/ARCHITECTURE.md, README.md's agent comparison. A comment that confidently states the opposite of the truth is worse than none.
Blocked on
Worth resolving #32 first. The flag is a reasonable default-off while the PATH-fallback binary can silently fail to gate commands; making app-server the only path without a capability probe means a user on an older codex gets approvals that don't fire, with no SDK path left to fall back to.
Acceptance: grep -rn "GITBOT_CODEX_APP_SERVER" src ui is empty; a full manual pass on all four modes plus abort, resume and images; claude-code and opencode regression-tested; a fresh npm install + gitbot start works end to end.
Activity