Skip to content

MCP: add resume-path support for Codex sessions#10117

Closed
rabsef-bicrym wants to merge 3 commits intoopenai:mainfrom
Martian-Engineering:martian/happy-codex-resume
Closed

MCP: add resume-path support for Codex sessions#10117
rabsef-bicrym wants to merge 3 commits intoopenai:mainfrom
Martian-Engineering:martian/happy-codex-resume

Conversation

@rabsef-bicrym
Copy link

@rabsef-bicrym rabsef-bicrym commented Jan 28, 2026

Summary

  • Add resume_path to the Codex MCP tool schema + implementation
  • Cover the schema update in tests
  • Run rustfmt

Context

Happy CLI can resume Codex sessions by passing a resume path through MCP. This enables a smooth “pick up where you left off” flow across desktop + mobile. The intent is to make Codex feel first‑class in Happy, approaching parity with other CLI workflows (e.g., Claude Code), without altering the existing Codex CLI UX.

Implementation notes

  • MCP schema and tool wiring accept an explicit resume path
  • Tests updated to match the new schema

Testing

  • python scripts/asciicheck.py
  • python scripts/readme_toc.py
  • python scripts/format.py
  • python scripts/stage_npm_packages.py
  • cargo fmt --all
  • cargo clippy --all-targets --all-features
  • cargo shear
  • cargo check --all-targets --all-features
  • cargo nextest run --all-targets --all-features
  • cargo deny check
  • pnpm --filter @openai/codex-sdk lint
  • pnpm --filter @openai/codex-sdk test -- --runInBand
  • pnpm --filter @openai/codex-sdk build
  • pnpm --filter @openai/codex-cli shell-tool-mcp:format
  • pnpm --filter @openai/codex-cli shell-tool-mcp:test
  • pnpm --filter @openai/codex-cli shell-tool-mcp:build

Companion PR

- Add resume-path to codex tool config and message processor

- Resume threads from rollout in MCP runner

- Expose ThreadManager helper for resume
- Add resume-path to expected schema

- Add payload-compat test for legacy callers
- Reformat MCP resume-path changes after rebase
@github-actions
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@etraut-openai
Copy link
Collaborator

We've updated our contribution guidelines to indicate that we're no longer accepting unsolicited code contributions. All code contributions are by invitation only. To read more about why we've taken this step, please refer to this announcement.

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