Skip to content

Stream and resume scoped native CLI sessions - #44

Draft
engkimo wants to merge 44 commits into
mainfrom
agent/codex-direct-stream-resume
Draft

Stream and resume scoped native CLI sessions#44
engkimo wants to merge 44 commits into
mainfrom
agent/codex-direct-stream-resume

Conversation

@engkimo

@engkimo engkimo commented Jul 15, 2026

Copy link
Copy Markdown
Owner

What changed

  • complete the Chat CLI hook/tool execution and permission-mode groundwork
  • add single-engine --route-direct paths for Codex CLI and Claude Code
  • preserve native workspace, permission, project settings, skills, hooks, MCP, and plugins
  • normalize Codex JSONL and Claude stream-json into provider-independent events
  • persist and render native events incrementally while either engine is running
  • resume explicit native sessions with workspace and permission provenance checks
  • clean up cancelled child processes without swallowing caller cancellation
  • record the multi-engine control-plane strategy and update Chat CLI specs/handoff docs

Why

Morphic should preserve strong native agent loops while owning cross-engine routing, safety, audit, session continuity, cost/result normalization, and handoff. The previous Chat CLI defaulted to deterministic local output or a multi-role council, and its CLI adapters discarded native event activity and safety scope.

Impact

morphic chat and morphic code can opt into a scoped Codex or Claude runtime, expose concise live progress, retain raw provider events in the append-only ledger, and continue the exact native session on later turns. Resume fails closed if workspace or permission provenance differs.

Validation

  • uv run --extra dev pytest tests/unit/ -q — 3,519 passed
  • uv run --extra dev ruff check . — clean
  • git diff --check — clean
  • no paid/live Codex or Claude task was invoked; subprocess streaming and command shape are covered locally

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e56480b4-2eb6-4da3-b0d8-a534692b3cc0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/codex-direct-stream-resume

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@engkimo engkimo changed the title Stream and resume scoped Codex sessions Stream and resume scoped native CLI sessions Jul 15, 2026
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.

1 participant