Repository navigation
Treat a reported session with no transcript file yet as missing - #103
Merged
Merged
Conversation
…as the neighbour's Between Claude's launch and its first written turn the pane already reports its session id but the JSONL does not exist. The locator fell from that miss to the newest file in the cwd, so a fresh pane beside a busy one was analysed and named from the busy pane's transcript until its own first turn landed. A reported session now resolves to its own file or fails with session_file_missing; the cwd search serves only a pane Herdr has no session for. The plugin README states the rule and the log line the wait produces.
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.
Summary
PR #100 이후에도 새 pane이 잠깐 옆 pane의 이름을 받는 경우가 남아 있었습니다.
Claude가 뜨고 첫 턴을 쓰기 전까지는 Herdr가 세션 id를 이미 보고하는데 JSONL 파일은 아직 없고, 그
SessionFileMissing에서 같은 cwd의 최신 파일로 떨어지는 fallback이 살아 있었습니다.실측:
w7J:p37분석 요청 09:18:11(input_chars=2008) → 그 pane의 세션 파일 생성 09:18:30 → 첫 턴 전까지 이웃 세션의 이름을 달고 있었음.바꾼 것: 보고된 세션은 자기 파일로만 해석되고, 없으면
session_file_missing으로 끝납니다.cwd 최신 파일 탐색은 Herdr가 세션을 전혀 기록하지 않은 pane에만 남습니다.
플러그인 README의 이름 규칙에 이 경우와 대기 중 남는 로그 줄(
raw_session_unavailable/session_file_missing)을 적었습니다.Related
Review focus
hide-session/src/lib.rslocate의 identity 분기. Codex도 같은 경로를 타므로 rollout 파일이 아직 없는 Codex pane도 첫 턴까지 이름 없이 기다립니다.Risk surface
raw_session_unavailable로그 한 줄이 남고 토큰은 발행되지 않습니다. 기존session_kind_unsupported와 같은 경로입니다.이외 항목은 해당 없음: watcher 프로세스 안의 순수 경로 해석입니다.
Evidence
hide-session새 테스트(파일이 없으면SessionFileMissing, 생기면 같은 pane이 자기 파일로 해석) + 플러그인 테스트 1개 추가(session_file_missing), 기존 cwd-fallback 테스트 2개는 "세션 미보고 pane" 케이스로 범위를 좁힘.scripts/verify-cargo.sh test/lint통과.AI tooling
손으로 확인한 것: watcher
events.jsonl의 요청 시각과 세션 파일 birth time을 대조해 fallback 경로를 특정했습니다.