codex-plugin-cc/plugins/codex/scripts/lib
Trevin Chow 4bd783b7ce
fix: gracefully handle unsupported thread/name/set on older Codex CLI (#126)
* fix: gracefully handle unsupported thread/name/set on older Codex CLI

Codex CLI v0.118.0 does not recognize the thread/name/set JSON-RPC method,
causing startThread() to throw. Thread naming is cosmetic (for job log
labels) and should not block thread creation. Wraps the call in try/catch
so it fails silently on older CLI versions.

Fixes #119

* refactor: only suppress unsupported-method errors for thread/name/set

Address Codex review feedback: the bare catch swallowed all errors
including auth, network, and server failures. Now only suppresses
errors containing 'unknown variant' or 'unknown method' (the specific
error older CLI versions return) and rethrows everything else.
2026-04-07 20:08:25 -07:00
..
app-server-protocol.d.ts Use app-server auth status for Codex readiness (#177) 2026-04-07 20:06:22 -07:00
app-server.mjs fix: inherit process.env in app-server spawn when no explicit env is provided (#159) 2026-04-07 20:07:29 -07:00
args.mjs Initial commit 2026-03-30 09:42:33 -07:00
broker-endpoint.mjs Initial commit 2026-03-30 09:42:33 -07:00
broker-lifecycle.mjs Initial commit 2026-03-30 09:42:33 -07:00
codex.mjs fix: gracefully handle unsupported thread/name/set on older Codex CLI (#126) 2026-04-07 20:08:25 -07:00
fs.mjs Initial commit 2026-03-30 09:42:33 -07:00
git.mjs Fix working-tree review crash on untracked directories (#166) 2026-04-06 20:45:33 -07:00
job-control.mjs Initial commit 2026-03-30 09:42:33 -07:00
process.mjs fix: respect SHELL on Windows for Git Bash (#178) 2026-04-07 19:56:34 -07:00
prompts.mjs Initial commit 2026-03-30 09:42:33 -07:00
render.mjs Initial commit 2026-03-30 09:42:33 -07:00
state.mjs Initial commit 2026-03-30 09:42:33 -07:00
tracked-jobs.mjs Initial commit 2026-03-30 09:42:33 -07:00
workspace.mjs Initial commit 2026-03-30 09:42:33 -07:00