Bug Report
Resolved 💬 5 comments Opened Oct 19, 2025 by Seokwoooo Closed Jan 10, 2026
Bug Description
문제 상황
증상
- Claude Code CLI 사용 후
/resume명령어가 최근 세션을 안 보여줌 - 원인:
history.jsonl파일에sessionId필드가 누락됨
비교
정상 (예상):
{"sessionId": "xxx", "display": "...", "timestamp": 123, "project": "..."}
실제 (버그):
{"display": "...", "timestamp": 123, "project": "..."}
→ sessionId 필드가 통째로 빠짐
환경
- OS: Windows 10/11
- 버전: Claude Code v2.0.22 (2025-10-17 배포)
- 설치: 완전 새로 설치해도 발생
재현
claude실행 → 메시지 입력 →exit- 다시
claude실행 →/resume입력 - 결과: 방금 세션이 목록에 없음 ❌
이미 확인한 것
- ✅ 완전 재설치: 소용없음
- ✅ 캐시 삭제: 소용없음
- ✅ 세션 파일 자체는 정상 생성됨
- ✅ 문제는
history.jsonl에만 있음
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.0.22
- Feedback ID: 1addbc94-a58d-428f-bee9-824d852b4580
Errors
[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at Jy.validateHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at Jy.buildHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Jy.buildRequest (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:7470)\n at async Jy.makeRequest (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:3309)\n at async BTQ.Ao1.model (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:18707)\n at async Ao1 (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2650:39781)\n at async BTQ (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:18875)\n at async file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:13054\n at async ba0 (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:4494)","timestamp":"2025-10-19T14:46:03.964Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at Jy.validateHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at Jy.buildHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Jy.buildRequest (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:7470)\n at async Jy.makeRequest (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:3309)\n at async BTQ.Ao1.model (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:18707)\n at async Ao1 (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2650:39781)\n at async BTQ (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:18875)\n at async file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:12822\n at async ba0 (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3310:4494)","timestamp":"2025-10-19T14:46:03.965Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at Jy.validateHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357:930)\n at Jy.buildHeaders (file:///C:/Users/paral/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:357
Note: Error logs were truncated.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗