Skip to content

fix(codex): session id 충돌 방지 (AGT-4877) - #913

Open
unohee wants to merge 1 commit into
mainfrom
fix/agt-4877-codex-session-id
Open

unohee wants to merge 1 commit into
mainfrom
fix/agt-4877-codex-session-id

Conversation

@unohee

@unohee unohee commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

무엇

  • SessionBuilder 세션 ID를 session-${Date.now()} 에서 session-<ms>-<randomUUID> 로 바꿨다 (newSessionId).
  • session-<ms> 접두사는 유지해 시작 시각으로 읽고 정렬하는 형식이 그대로다. ID를 파싱하는 코드는 src/memory 안에 없다(파일명 접미사는 이미 해시 기반).

왜

같은 밀리초에 시작한 병렬 워커 두 세션이 같은 ID를 받아 기록이 섞였다.

검증

  • 새 테스트 src/memory/sessionId.test.ts 2건: fake timer로 시각을 고정해도 두 세션 ID·파일명 접미사가 다르다, 접두사 형식 유지. 수정 전 코드에서는 2건 모두 실패 확인.
  • vitest run src/memory 16 파일 114 테스트 통과, tsc --noEmit -p tsconfig.check.json 통과, oxlint 0건.

Linear: AGT-4877

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