feat: add Codex profile migration - #22
Merged
Merged
Conversation
z2z23n0
marked this pull request as ready for review
July 23, 2026 11:39
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.
Mainline Intent
Intent:
int_c2a73786Status:
proposedTitle: 将 Codex 跨 Mac profile 迁移固化为 Agent Capsule 能力
What changed
新增 capsule profile 命令组和独立的 agent-capsule.codex-profile.v1 迁移清单,覆盖项目发现、显式范围导出、令牌化 LAN 服务、增量拉取、目标端 Git 克隆、受控离线导入、一次性 macOS 调度、完整性校验与清理。同步更新 Agent Capsule skill 和中英文 README,让代理能够通过目标 Mac 的 Codex 任务编排完整迁移。
Why
本次真实换机证明单会话胶囊不足以恢复项目侧栏、原生 thread id、skills、MCP 配置、memories 和 automations,临时 launchctl submit 还会造成 Codex 重启循环。需要把已经验证过的边界和执行顺序做成可重跑、可备份、可校验的正式能力。
Decisions
Subsystems: README.md, README.zh-CN.md, cmd, profile, skills