Skip to main content
在 Manus 中运行任何 Skill
一键导入

codex-infinity-thread

星标0
分支0
更新时间2026年5月27日 11:00

Keep long Codex conversations alive: repair an oversized session that crashes the Codex desktop app with "RangeError: Invalid string length" or won't open a conversation. Use whenever Codex won't reload a session, the desktop app crashes or white-screens on launch or when opening a chat, or a session rollout file under ~/.codex/sessions has grown huge (commonly from embedded base64 screenshots or large tool outputs). Slims the on-disk rollout in place - dropping superseded compaction checkpoints, replacing images with text, truncating oversized outputs, archiving the original first - so the session reloads and can be continued. Trigger on phrases like "Codex crashes on startup", "Invalid string length", "Codex won't open my conversation", "Codex session too big", "oversized rollout", or "recover my Codex session". Not for routine context-window pressure (use Codex's /compact) and not for Claude Code sessions, which store attachments by reference and do not hit this crash.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly