Skip to content

Fix Codex cancellation and output handling; stabilize Claude sessions - #84

Merged
Germey merged 5 commits into
mainfrom
codex/coding-bridge-reliability-20261004
Oct 4, 2026
Merged

Germey merged 5 commits into
mainfrom
codex/coding-bridge-reliability-20261004

Conversation

@acedatacloud-dev

@acedatacloud-dev acedatacloud-dev commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Local sessions could keep shell commands running after Stop, hang on JSON events larger than 64 KiB, hide or reorder Claude answers, and block commands behind multi-GB history scans. This change terminates the Codex process tree, bounds and drains output safely, preserves Claude complete/streamed message ordering and fork identities, and caches unchanged history summaries while keeping discovery off the command path.

Also detects the SDK-bundled Claude CLI, honors explicit CLI paths and CODEX_HOME, applies Claude effort changes by resuming the same transcript, fails code-restore errors explicitly, denies pending approvals on stop, and uses stable Homebrew opt interpreter paths for new service installations. Removes artificial Codex typewriter delays and slash-command suggestions that exec cannot execute.

Validation: ruff check .; NO_PROXY=127.0.0.1,localhost pytest -q — 643 passed. New real-subprocess regressions cover 70 KB–2 MB stdout/stderr, oversized events, clean exits without results, detached children, and cancellation cleanup.

Live acceptance on macOS used studio.acedata.cloud, the production relay, and this patched local node: Codex and Claude both fixed fixture code, passed tests, stopped running commands, and continued with remembered context. Claude additionally passed attachment reading, allow/deny approvals, AskUserQuestion, restart/history resume, edit-fork identity, and /status. Unchanged 200-session history refresh improved from 11.749 s to 0.538 s. Synthetic fixtures and evidence are retained locally; no customer repositories were modified.

Rollout: publish the agent and restart node daemons. Existing Homebrew service units require one reinstall to replace stale Cellar paths. The companion Nexior PR handles accurate permission and stopped-state labels. Windows process-tree code is covered structurally but was not live-tested. No merge or production release performed.

Review: self-reviewed code and regression evidence; no separately requested adversarial review.
Final history coverage also excludes injected context from titles, preserves custom Codex patch tools, and omits binary media payloads from relayed/history tool results.

@Germey
Germey merged commit 75b6595 into main Oct 4, 2026
3 checks passed
@Germey
Germey deleted the codex/coding-bridge-reliability-20261004 branch October 4, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants