Skip to content

fix: support Codex session detail and analysis APIs#1

Open
jiangliangyou wants to merge 1 commit into
harrywang:mainfrom
jiangliangyou:fix/codex-session-detail-support
Open

fix: support Codex session detail and analysis APIs#1
jiangliangyou wants to merge 1 commit into
harrywang:mainfrom
jiangliangyou:fix/codex-session-detail-support

Conversation

@jiangliangyou
Copy link
Copy Markdown

@jiangliangyou jiangliangyou commented Apr 16, 2026

Summary

  • fix Codex session detail 404 by resolving both Claude and Codex session files
  • add a Codex-specific session detail parser for rollout JSONL (response_item/event_msg)
  • route /api/session, /api/analyze, and /api/analyze/estimate through source-aware parsing

Why

Codex sessions were visible in list/aggregates but opening session detail returned Session not found because the detail API only searched ~/.claude/projects and only parsed Claude JSONL format.

Validation

  • npx eslint app/api/session/route.ts app/api/analyze/route.ts app/api/analyze/estimate/route.ts lib/session-resolver.ts lib/session-detail-codex.ts
  • npm test
  • manual API check: GET /api/session?id=codex-... returns parsed detail

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