Skip to content

Treat a reported session with no transcript file yet as missing - #103

Merged
yansfil merged 2 commits into
mainfrom
session-locator-no-fallback
Sep 19, 2026
Merged

yansfil merged 2 commits into
mainfrom
session-locator-no-fallback

Conversation

@yansfil

@yansfil yansfil commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

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

  • 사람이 판단할 것: 없음. 사용자가 "이름 붙이지 않는다"를 선택했고 README가 이미 그렇게 말하고 있었습니다.
  • 위험한 파일: hide-session/src/lib.rs locate의 identity 분기. Codex도 같은 경로를 타므로 rollout 파일이 아직 없는 Codex pane도 첫 턴까지 이름 없이 기다립니다.

Risk surface

  • Failure path: 파일이 생길 때까지 pane마다 tick당 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 통과.
  • 확인하지 못한 것과 그 이유: 실기기 재현은 머지 후 플러그인 재설치 뒤 새 Claude pane을 열어 첫 턴 전에 이름이 비어 있는지로 확인합니다.

AI tooling

  • 사람이 직접 작성 - [ ] 일부를 AI 도구로 작성 - [x] 대부분을 AI 도구로 작성

손으로 확인한 것: watcher events.jsonl의 요청 시각과 세션 파일 birth time을 대조해 fallback 경로를 특정했습니다.

…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.
@yansfil
yansfil merged commit 16ce4ab into main Sep 19, 2026
5 checks passed
@yansfil
yansfil deleted the session-locator-no-fallback branch September 19, 2026 00:53
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