Skip to content

fix(agent): prefer managed Codex session ID - #18

Merged
saltbo merged 1 commit into
mainfrom
codex/fix-codex-session-priority
Sep 4, 2026
Merged

saltbo merged 1 commit into
mainfrom
codex/fix-codex-session-priority

Conversation

@realmroot

@realmroot realmroot Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • prefer AGENT_SESSION_ID for managed Codex executions
  • retain CODEX_THREAD_ID as the standalone fallback
  • add focused regression tests for both-variable priority and fallback-only behavior

Verification

  • go test ./internal/agent -run 'TestDetectAgentSession(Prefer|Falls)' -count=1
  • go test ./... (187 tests passed)
  • go vet ./...
  • git diff --check

Closes #17


🤖 Created by Jarvis via Realmroot

Use AGENT_SESSION_ID before CODEX_THREAD_ID for Codex runtimes while retaining the standalone thread ID fallback.\n\nRefs #17
@saltbo
saltbo merged commit 07e3407 into main Sep 4, 2026
1 check 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.

Prefer AGENT_SESSION_ID for managed Codex sessions

1 participant