Repository navigation
Conversation
세션 기록의 cwd 는 UserPromptSubmit 때만 갱신돼, 다른 세션이 레인에서 나간 뒤에도 낡은 기록으로 accept · check · cancel · batch 가 거부된다. 이유에 기록상 cwd · 기록 시각 · (다르면) 플랫폼 목록의 cwd 를 실어 낡은 기록인지 알아보고 --force 를 판단할 수 있게 한다. 판정 규칙은 바꾸지 않는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011H9PaYBQf3SfvZeExm8NHz
This was referenced Nov 6, 2026
Owner
Author
|
v7.1.0(#104)에 v7.1 원본에 맞춰 옮겨 반영했습니다 — 이 PR 은 옛 기점(v7.0.x 이전)이라 닫습니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #88
원인
liveLaneSessions(harness/lib/integrate.js)와liveSessionIn(harness/lib/batch.js)은 세션 기록 파일의cwd/root로 그 세션이 레인 worktree 안에 있는지 고른다. 이 기록은 UserPromptSubmit 때만 갱신되므로, 다른 대화형 세션이 레인에cd했다가 메인으로 돌아와도 다음 프롬프트 전까지 기록은 레인을 가리킨다. 플랫폼 목록(claude agents --json)에 그 세션이 있으면 산 세션으로 판정돼 accept · check · cancel · batch 가 거부되는데, 거부 이유에는 세션 이름 · 상태만 있어 낡은 기록 때문인지 알 수 없었다.수정
recorded cwd <경로> at <last_seen>과, 플랫폼 목록의 cwd 가 기록과 다르면platform cwd <경로>를 덧붙인다(sessionWhere, Windows 는 대소문자 무시 비교). batch 의 건너뜀 이유도 같다.claude agents --json의cwd가 현재 cwd 인지 시작 cwd 인지 여기서 확인할 수 없고, 틀리면 레인에서 일하는 세션의 반쯤 된 편집을 커밋하는 [auto] bug: 검사(dotnet test) 뒤 MSBuild 노드 프로세스가 남아 수백~천 개씩 쌓임 [5649c3ad9227] #25 류 위험이 돌아온다 — 사람이 정할 일로 남긴다.refuseKo) 정규식이 새 문구에도 맞는지 시험으로 확인했다.재현 테스트
tests/unit/test_v5_accept2.js[AC2-14c]: 세션 기록 cwd = 레인, 플랫폼 cwd = 메인 체크아웃 →check거부 이유에 기록상 cwd · 기록 시각 · 플랫폼 cwd 가 있고 한글 변환도 된다.tests/unit/test_v5_batch.js[BA-20c]: batch 건너뜀 이유에 기록상 cwd · 기록 시각이 있다.적대적 검토
liveLaneSessions반환 객체에 필드만 늘었다(사용처는 integrate.js 안뿐).node tests/run.js: 1104 PASS / 0 FAIL(종료 코드 0). 참고: 이 클라우드 컨테이너는GH_TOKEN이 설정돼 있어 그대로 돌리면test_v5_bugreport.jsBR-15 · BR-16 이 main 에서도 실패한다(환경 탓, 이 변경과 무관) — 토큰을 뺀 환경에서 돌렸다.Generated by Claude Code