Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cc",
"version": "1.6.0",
"version": "1.6.1",
"description": "Claude Code Plugin for Codex. Delegate code reviews, investigations, tracked tasks, and transcript transfers from inside Codex.",
"author": {
"name": "CBEPX",
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

## [Unreleased]

## v1.6.1

### Added

- Surface bounded Claude stream parse diagnostics while accepting a valid terminal result for read-only tasks and reviews; workspace-write tasks remain fail-closed on malformed output.
- Resolve explicit full job IDs across workspace and linked-worktree state roots without broadening prefix or no-argument lookup beyond the current workspace.

### Changed

- Route native hooks through a minimal stable launcher in Codex's marketplace-specific `$PLUGIN_DATA` namespace, recover only from validated sibling `cc` cache versions, and require the current Codex 0.151 `hooks` feature without rewriting the removed `plugin_hooks` flag.
- Prefer the live `CODEX_THREAD_ID` over stale workspace markers for job ownership and resume routing while blocking direct Claude-driven recursion even when no marker exists.

### Fixed

- Re-capture worker identity inside the worker, tag every status-reaper terminal transition, and allow a late real runner result to replace only reaper-owned failures.
- Cancel foreground Claude reviews on `SIGINT` or `SIGTERM` while preserving sandbox, MCP-config, and review-worktree cleanup; retain accurate text output when a cancel race finds an already-terminal job.

## v1.6.0

### Added
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ It follows the shape of [openai/codex-plugin-cc](https://github.com/openai/codex
Install the fork release from the CBEPX marketplace snapshot:

```bash
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.0
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.1
codex plugin add cc@cbepx
```

Then run `$cc:setup` once inside Codex.

`cc-plugin-codex` uses Codex native plugin hooks. The active plugin copy lives under Codex's plugin cache, and hook commands resolve through `$PLUGIN_ROOT`; there is no separate local checkout install.
`cc-plugin-codex` uses Codex native plugin hooks. Hook commands enter through a small launcher under `$PLUGIN_DATA`; it resolves the current valid version from Codex's plugin cache, so an already-running session does not keep executing a deleted cache path.

The optional `npx` helper can install this fork release and enable the required Codex feature gates:

```bash
CC_PLUGIN_CODEX_MARKETPLACE_NAME=cbepx \
CC_PLUGIN_CODEX_MARKETPLACE_SOURCE=CBEPX/cc-plugin-codex \
CC_PLUGIN_CODEX_MARKETPLACE_REF=v1.6.0 \
npx -y https://github.com/CBEPX/cc-plugin-codex/releases/download/v1.6.0/cc-plugin-codex-1.6.0.tgz install
CC_PLUGIN_CODEX_MARKETPLACE_REF=v1.6.1 \
npx -y https://github.com/CBEPX/cc-plugin-codex/releases/download/v1.6.1/cc-plugin-codex-1.6.1.tgz install
```

On Windows, prefer the marketplace path or the `npx` helper. The shell-script helper below is POSIX-only.
Expand Down Expand Up @@ -266,7 +266,7 @@ $cc:setup --disable-review-gate # turn it off
```

Setup checks Claude Code availability, native plugin hook feature gates, and review-gate state. `--check` reports required repairs without changing config or hook trust. If Claude Code isn't installed, setup offers to install it.
This is also the repair path for marketplace-installed copies of the plugin: `$cc:setup` confirms `[features].hooks = true` and `[features].plugin_hooks = true`, then trusts this plugin's current native hook hashes so Codex loads the bundled hooks from the active plugin cache.
This is also the repair path for marketplace-installed copies of the plugin: `$cc:setup` installs or refreshes the stable hook launcher, confirms `[features].hooks = true`, then trusts this plugin's current native hook hashes.

## Background Jobs

Expand Down Expand Up @@ -341,7 +341,7 @@ The review gate is an **optional** stop-time hook. When enabled, pressing Ctrl+C
Install from the fork's marketplace snapshot:

```bash
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.0
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.1
codex plugin add cc@cbepx
```

Expand All @@ -351,7 +351,7 @@ Then run:
$cc:setup
```

Marketplace/plugin install places the plugin under Codex's plugin cache. `$cc:setup` verifies Claude Code, confirms `[features].hooks = true` plus `[features].plugin_hooks = true`, and trusts the current `hooks/hooks.json` hook hashes from the active plugin cache.
Marketplace/plugin install places the plugin under Codex's plugin cache. `$cc:setup` verifies Claude Code, installs or refreshes the stable hook launcher, confirms `[features].hooks = true`, and trusts the current `hooks/hooks.json` hook hashes.

### Upstream Sendbird build

Expand All @@ -362,8 +362,8 @@ This fork does not install from the upstream Sendbird marketplace. Use the CBEPX
```bash
CC_PLUGIN_CODEX_MARKETPLACE_NAME=cbepx \
CC_PLUGIN_CODEX_MARKETPLACE_SOURCE=CBEPX/cc-plugin-codex \
CC_PLUGIN_CODEX_MARKETPLACE_REF=v1.6.0 \
npx -y https://github.com/CBEPX/cc-plugin-codex/releases/download/v1.6.0/cc-plugin-codex-1.6.0.tgz install
CC_PLUGIN_CODEX_MARKETPLACE_REF=v1.6.1 \
npx -y https://github.com/CBEPX/cc-plugin-codex/releases/download/v1.6.1/cc-plugin-codex-1.6.1.tgz install
```

After install, run:
Expand Down Expand Up @@ -393,7 +393,7 @@ $cc:setup
Re-run the fork marketplace install flow, pinned to the release you want:

```bash
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.0
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.6.1
codex plugin add cc@cbepx
```

Expand All @@ -415,7 +415,7 @@ claude auth login
Re-run install and restart Codex. This plugin expects Codex plugin support and no longer installs local skill-wrapper fallbacks.

**Hooks not firing**
Check that `hooks = true` and `plugin_hooks = true` are set in `~/.codex/config.toml` under `[features]`. Run `$cc:setup` to verify and auto-repair the feature gates plus this plugin's hook trust hashes, then restart Codex if those flags were just changed.
Check that `hooks = true` is set in `~/.codex/config.toml` under `[features]`. Run `$cc:setup` to verify and auto-repair the stable launcher, feature gate, and this plugin's hook trust hashes, then restart Codex if the flag was just changed.

**A background job finished but I did not get the result nudge**
Use:
Expand Down
8 changes: 4 additions & 4 deletions hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$PLUGIN_ROOT/hooks/session-lifecycle-hook.mjs\"",
"command": "node \"${PLUGIN_DATA}/runtime/hook-launcher.mjs\" session-lifecycle",
"statusMessage": "Initializing Claude Code bridge"
}
]
Expand All @@ -18,7 +18,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$PLUGIN_ROOT/hooks/session-lifecycle-hook.mjs\" SessionEnd",
"command": "node \"${PLUGIN_DATA}/runtime/hook-launcher.mjs\" session-lifecycle SessionEnd",
"timeout": 3,
"statusMessage": "Cleaning up Claude Code bridge jobs"
}
Expand All @@ -30,7 +30,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$PLUGIN_ROOT/hooks/stop-review-gate-hook.mjs\"",
"command": "node \"${PLUGIN_DATA}/runtime/hook-launcher.mjs\" stop-review-gate",
"timeout": 900
}
]
Expand All @@ -42,7 +42,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$PLUGIN_ROOT/hooks/unread-result-hook.mjs\"",
"command": "node \"${PLUGIN_DATA}/runtime/hook-launcher.mjs\" unread-result",
"statusMessage": "Checking for unread Claude Code results"
}
]
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cc-plugin-codex",
"version": "1.6.0",
"version": "1.6.1",
"description": "Claude Code Plugin for Codex (CBEPX fork)",
"type": "module",
"author": {
Expand Down
Loading
Loading