Skip to content

Fix: claude 세션 변수 분리 + 응답 없음 15분 감지 (CLI 0.1.8) - #40

Merged
oyeonghun merged 3 commits into
devfrom
fix/executor-claude-env
Oct 10, 2026
Merged

oyeonghun merged 3 commits into
devfrom
fix/executor-claude-env

Conversation

@oyeonghun

Copy link
Copy Markdown
Collaborator

요약

  • claudeEnv(): Executor가 claude를 띄울 때 띄운 쪽 Claude Code 세션 변수(CLAUDECODE·CLAUDE_CODE_SESSION_ID·CLAUDE_CODE_MESSAGING_* 등)를 뺀다 — 작업 실행·상담·PM 워커·실험 스크립트. Claude Code 안에서 CLI를 띄우면 태스크 실행이 그 대화의 하위 세션이 되어 부모 알림이 모델 맥락에 끼어들었다(실측). 인증·설정 변수는 유지.
  • 모델 출력(stream-json)이 15분 없으면 stalled로 끊는다 — 도구 결과 뒤 응답 없이 20분 넘게 멈춘 실행(실험 ⑤ B2). 서버에는 timeout + 사유 [응답 없음]으로 보고(옛 서버 호환).
  • 실험 파일 tests/e2e-ask-decision.test.ts(물을지 말지 ⑤-B, RUN_CLAUDE_E2E=1일 때만).
  • 서버 코드 변경 없음, 마이그레이션 없음. CLI 0.1.8.

테스트

  • 전체 vitest·typecheck·check:cli-package 통과. 새 tests/executor-runner.test.ts가 실제 프로세스로 무출력 감지·세션 변수 차단을 확인.

🤖 Generated with Claude Code

oyeonghun and others added 3 commits October 10, 2026 18:17
…or 실물 실행(RUN_CLAUDE_E2E)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- claudeEnv(): CLAUDECODE·CLAUDE_CODE_SESSION_ID·MESSAGING_* 등 세션 변수를 빼고 띄운다(작업 실행·상담·PM 워커·실험 스크립트).
  Claude Code 안에서 CLI를 띄우면 태스크 실행이 그 대화의 하위 세션이 되어 부모 알림이 모델 맥락에 끼어들었다(실측).
- runClaude: stream-json 출력이 DEFAULT_IDLE_MS(15분) 없으면 stalled로 끊는다 — 도구 결과 뒤 응답 없이 20분 넘게 멈춘 실행(실험 ⑤ B2).
  서버에는 timeout + 사유 '[응답 없음]'으로 보고(옛 서버 호환).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oyeonghun
oyeonghun merged commit 8382101 into dev Oct 10, 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.

1 participant