Skip to content

feat(resume): import Codex CLI sessions into /resume - #60

Merged
savass33 merged 2 commits into
mainfrom
feat/codex-session-import
Sep 23, 2026
Merged

savass33 merged 2 commits into
mainfrom
feat/codex-session-import

Conversation

@savass33

Copy link
Copy Markdown

Summary

  • Sessions created in the Codex CLI (~/.codex/sessions rollouts) now appear in /resume (same repo and all-projects views) and in --continue, with a [codex] title taken from ~/.codex/session_index.jsonl (thread_name, fallback: first user prompt)
  • Selecting one converts it on-the-fly to a native transcript in ~/.claude/projects/<project>/<sessionId>.jsonl — user/assistant messages, tool_use/tool_result pairing, compacted → replacement_history semantics
  • Conversion is idempotent and never overwrites a session that was already continued in Verboo; the original rollout is left untouched (codex resume keeps working)
  • Users without ~/.codex see no change (silent no-op); [CC] sessions were already interop by design

Test plan

  • Unit tests: bun test src/utils/codexSessionImport.test.ts (6/6 — conversion, tool pairing, parentUuid chain, compacted, idempotency, log options with names)
  • Regression: bun test src/utils/sessionStorage.test.ts src/utils/conversationRecovery.test.ts src/utils/sessionStorage.agentUsage.test.ts (16/16)
  • Typecheck: tsc --noEmit == 1717 errors (identical to baseline on main)
  • End-to-end with real rollout: 205 messages, 94/94 tool_use/tool_result, 0 orphans, parsed by the native loadTranscriptFile
  • No ~/.codex: getCodexLogOptions() returns [] without throwing

🤖 Generated with Verboo Code

savass33 and others added 2 commits September 22, 2026 21:44
Sessions from the Codex CLI (~/.codex/sessions rollouts) now appear in
/resume and --continue, and load as native Verboo sessions. Conversion
maps user/assistant messages, tool_use/tool_result pairs, and compacted
replacement_history; it is idempotent and never overwrites a session
that was already continued here. Session titles come from
~/.codex/session_index.jsonl (thread_name), falling back to the first
user prompt. Users without ~/.codex are unaffected (silent no-op).

Co-Authored-By: Verboo Code <noreply@code.verboo.ai>
@savass33
savass33 merged commit 0033ee8 into main Sep 23, 2026
22 checks passed
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