codex-plugin-cc/plugins/codex
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
..
.claude-plugin chore: bump plugin version to 1.0.2 (#74) 2026-03-31 12:59:31 -07:00
agents Initial commit 2026-03-30 09:42:33 -07:00
commands Fix /codex:rescue AskUserQuestion contract (#43) 2026-03-31 12:44:30 -07:00
hooks Initial commit 2026-03-30 09:42:33 -07:00
prompts Initial commit 2026-03-30 09:42:33 -07:00
schemas Initial commit 2026-03-30 09:42:33 -07:00
scripts fix: gracefully handle unsupported thread/name/set on older Codex CLI (#126) 2026-04-07 20:08:25 -07:00
skills Initial commit 2026-03-30 09:42:33 -07:00
CHANGELOG.md Initial commit 2026-03-30 09:42:33 -07:00
LICENSE Initial commit 2026-03-30 09:42:33 -07:00
NOTICE Initial commit 2026-03-30 09:42:33 -07:00