Skip to content

Fix Codex session metadata and status parsing - #75

Merged
calvintvu merged 1 commit into
mainfrom
cvu/codex
Aug 13, 2026
Merged

Fix Codex session metadata and status parsing#75
calvintvu merged 1 commit into
mainfrom
cvu/codex

Conversation

@calvintvu

Copy link
Copy Markdown
Contributor

Context

Codex rollouts can append metadata when resumed, keep completed transcript files open, and emit session details through newer completed-item events. These cases caused stale branches, false running subagents, and missing prompts, summaries, and file edits.

Changes

  • Select the latest metadata owned by each rollout while retaining legacy compatibility.
  • Derive Codex subagent status from transcript state instead of open-file state alone.
  • Parse modern completed messages and file changes while preserving legacy event support.

Test

  • cd collector/internal/vendors/codex && go test parse.go fork.go types.go metadata.go discovery.go parse_test.go -count=1 — passed
  • cd collector/internal/collector && go test helpers.go collector.go subagent_status_test.go -count=1 — passed
  • cd collector && go build ./... — passed

@calvintvu calvintvu added the bug Something isn't working label Aug 13, 2026
@calvintvu
calvintvu merged commit d42e4a1 into main Aug 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants