Harden Codex handoff completion and state isolation#235
Draft
dechow73-maker wants to merge 2 commits into
Draft
Conversation
Author
|
Operator workflow note saved from the local orchestration run, not part of the requested upstream source diff:
Local reusable skill saved at: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #235 +/- ##
=======================================
Coverage ? 92.78%
=======================================
Files ? 65
Lines ? 5504
Branches ? 0
=======================================
Hits ? 5107
Misses ? 397
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CAO PR Draft
Date: 2026-05-13 Asia/Shanghai
Local branch:
codex/cao-codex-handoff-fixesBase:
awslabs/cli-agent-orchestrator:mainatb57a064Title
Harden Codex handoff completion and state isolation
Body
Summary
This PR fixes two issues found while running live CAO/Codex handoff pilots against current Codex CLI output:
CAO_HOME_DIRoverride so local pilots and CI can isolate CAO state from~/.aws/cli-agent-orchestrator;handoffrecognizes real final answers while ignoring stale spinner rows and Codex TUI tool-activity bullets.Details
The state-isolation change keeps CAO-managed directories under the overridden home, including
agent-storeandagent-context, and documents the override indocs/settings.md.The Codex provider change recognizes current footer formats such as
gpt-5.5 xhigh · /path, anchors footer detection to status-bar-shaped lines, distinguishes tool activity rows from final answer bullets, and extracts the post-tool final response after MCP/tool activity.Testing
uv run mypy src/still reports 21 repository-wide pre-existing errors outside the touched source files; the touched-source mypy gate above passes.Live Smoke
127.0.0.1:9899pilot_codex_supervisorpilot_codex_inspectorcao-mcp-server.handoffreturned success in28.06sSESSION_STATE.mdandSESSION_STATE.md exists: yesPush And PR Commands
Use these once GitHub auth and a fork/remote are available:
Then open:
Alternative with GitHub CLI after installing/authenticating
gh:Offline Patch Artifact
Two-commit mailbox patch: