Skip to content

fix: is_early_exit 항상 true로 찍히는 버그 수정#121

Merged
TaewoongR merged 1 commit intodevelopfrom
fix/is-early-exit
Mar 16, 2026
Merged

fix: is_early_exit 항상 true로 찍히는 버그 수정#121
TaewoongR merged 1 commit intodevelopfrom
fix/is-early-exit

Conversation

@shwnahn
Copy link
Collaborator

@shwnahn shwnahn commented Mar 16, 2026

Summary

  • end_brake_session 이벤트의 is_early_exit가 항상 true로 기록되던 버그 수정
  • 원인: stopBlocking()에서 startTime(Blocking 시작 시간)으로 elapsed를 계산 → 항상 ≈0 → 항상 early exit 판정
  • 수정: sessionStartTime(실제 세션 시작 시간)을 사용하도록 변경

Test plan

  • 세션 정상 완료 시 is_early_exit = false 확인
  • 세션 조기 종료 시 is_early_exit = true 확인
  • Amplitude에서 end_brake_session 이벤트 값 검증

🤖 Generated with Claude Code

startTime이 Blocking 전환 시 덮어씌워져 elapsed가 항상 0에 가까워
is_early_exit가 항상 true로 찍히던 버그 수정

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TaewoongR TaewoongR merged commit 6f81f53 into develop Mar 16, 2026
2 checks passed
@TaewoongR TaewoongR deleted the fix/is-early-exit branch March 17, 2026 02:50
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.

2 participants