v0.2.66
v0.2.66 — CLI 에이전트 감지 검증 (webtest) + standalone Copilot CLI 감지 추가
cwd 기반 프로젝트 매칭
- (codexSessionWatcher 패턴): 신규
cliSessionMatchesProject(filePath)— 1차 형제workspace.yaml의cwd:/git_root:, 2차 events.jsonl 첫 줄session.start.data.context.cwd. 매칭 캐시cliFileMatch. scanFile에isCliEvents분기 — CLI events 파일은 cwd 게이트 통과 시 기존handleTranscriptLine파서로 라우팅 (동일 schema). 세션 식별자는 부모<uuid>디렉토리명 사용 (basename 이 'events' 라 충돌 방지).session.start핸들러가 inlinedata.selectedModel도 읽음 (CLI 는 모델을 session.start 에 인라인; VSCode 확장은 chatSessions 보강) →agent=copilot:gpt-5.5정상.- 신규 helper
readFirstLineCopilot(첫 줄 64KB 읽기). - chokidar 가
~/.copilot/session-state추가 감시 → 신규 CLI 세션 라이브 감지.
수정 검증 (픽스처 테스트)
- org 정책으로 copilot CLI 라이브 실행 불가 (
Access denied by policy settings) → 실제 포맷과 동일한 픽스처 세션 (현재 타임스탬프 + webtest cwd) 생성 후 하네스로 검증. - 결과:
agent=copilot:gpt-5.5로 read(read_file→server.js, in-project 해석), bash(run_in_terminal), answer(assistant.message) 모두 감지. 모델 inline 추출 + cwd 매칭 정상. 픽스처는 검증 후 삭제.
변경 파일
electron/probe/copilotSessionWatcher.ts— standalone CLI 소스 추가 (start 재구성, scanFile CLI 분기, cliSessionMatchesProject, readFirstLineCopilot, session.start inline model).package.json0.2.65 → 0.2.66.
검증
npx tsc --noEmitexit=0.npm run build성공 — renderer 6.21s, 번들 3,521.80 kB.
핸드오프 메모 / 잔여 이슈
Antigravity CLI
- 미설치 + 감지 코드 전무. Antigravity 가 세션 로그를 어디에 기록하는지 (Google 의 신규 agentic IDE) 파악 후 dedicated watcher 추가 필요. 현재로선
cliHistoryWatcher.detectCliAgent에antigravity패턴 추가가 최소 대응 (shell history 기반, 제한적).
Claude -p 401
- ViewWork 버그 아님 — 환경의
ANTHROPIC_BASE_URL게이트웨이 + OAuth 만료. 실제 Claude Code 사용 시 watcher 는 정상 감지 (라이브 확인됨).
Copilot CLI org 정책
- 이 계정은 copilot CLI 가 org 정책으로 차단. 다른 계정/해제 시 새 구현이 라이브 감지.
cliHistoryWatcher.detectCliAgent에 barecopilot추가도 고려 가능하나, dedicated watcher (events.jsonl) 가 더 정확 (tool 단위 추적) 하므로 우선순위 낮음.- --
📦 GitHub 릴리스 노트: v0.2.66