You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3ddb9a
Browse filesBrowse the repository at this point in the historyBrowse files
Adopt approvals changed by others; fail closed when the file disappears (#31)
Third review (Codex objected, Antigravity agreed):
- The socket holder notices when the approvals file changed since its own last
read or write (for example an older app version running beside it) and adopts
it before proving, approving or any change. A missing or unreadable file after
approvals were known means no trust and receipt off; revocations are kept, and
an unsaved denial is merged on top of what is on disk.
- A change attempted without the socket first tries to take it over, so a window
left after the previous holder quit works; the refusal message clears once it
holds the socket.
- Screen lock and an inactive console session are tracked separately; receipt
resumes only when neither holds.
- Retry restarts the "no session" check. Docs and comments say the old-version
notice stays until the user turns receipt on or off.
- Fixture reconnect waits: 3 s (one signal interval plus jitter and margin).
Agent: Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
Copy file name to clipboardExpand all lines: docs/mcp-explanation-drafts.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,9 @@ Helpers/tts_mcp_client.py --helper "<앱>/Contents/Helpers/CodebasicAgentMCP" se
80
80
81
81
앱은 탭 열림 외에 앱 시작(받기 켜짐일 때), 화면 잠금 해제, 전체·앱별 받기 켜기, 도우미 프로세스 종료 때도 신호를 보냅니다. 도우미는 신호에 따른 시도를 앞 시도가 끝난 뒤 최소 1초 간격으로, 0~250ms 지터를 두고 합니다. 앱에 닿지 못한 도우미(`app_unavailable`, `unavailable`)는 2초부터 두 배씩 최대 5분 간격(±20%)으로 다시 시도하고, `locked`·`disabled`·`other_agent`·`approval_required`는 다음 신호를 기다리며, `revoked`·`signing_required`·`upgrade_required`에서는 도우미를 다시 시작할 때까지 멈춥니다.
82
82
83
-
승인·받기 설정은 페어링 소켓을 가진 앱 인스턴스만 바꿉니다. 같은 앱을 하나 더 띄우면 그 창에서는 바꿀 수 없다고 안내하고 `policy change refused reason=not_socket_owner`를 남기며, 나중에 소켓을 넘겨받을 때 저장된 파일을 한 번 다시 읽습니다(읽을 수 없으면 승인 없음·받기 꺼짐).
83
+
승인·받기 설정은 페어링 소켓을 가진 앱 인스턴스만 바꿉니다. 같은 앱을 하나 더 띄우면 그 창에서는 바꿀 수 없다고 안내하고 `policy change refused reason=not_socket_owner`를 남기며, 소켓을 넘겨받을 때와, 파일이 자신이 마지막으로 읽거나 쓴 뒤 바뀌었을 때(예: 함께 실행 중인 이전 버전이 쓴 경우) 저장된 파일을 다시 읽습니다(`policy adopt reason=external_change`). 승인을 알고 있던 상태에서 파일이 사라졌거나 읽을 수 없으면 승인 없음·받기 꺼짐으로 보고, 이미 철회한 키는 계속 철회 상태로 둡니다. 화면 잠금과 콘솔 사용자 전환은 따로 추적해 둘 다 풀렸을 때만 받기를 다시 엽니다.
84
84
85
-
사용자가 `전체 받기 끄기`를 누르면 그 선택(`receiptChoice=off`)이 저장되어, 탭을 열어도 다시 켜지지 않습니다. 이 기능 이전 버전에서 받기가 꺼진 채 저장된 파일도 같은 이유로 꺼진 채 두고 탭에 한 번 안내합니다.
85
+
사용자가 `전체 받기 끄기`를 누르면 그 선택(`receiptChoice=off`)이 저장되어, 탭을 열어도 다시 켜지지 않습니다. 이 기능 이전 버전에서 받기가 꺼진 채 저장된 파일도 같은 이유로 꺼진 채 두고, 사용자가 받기를 켜거나 끌 때까지 탭에 안내합니다.
86
86
87
87
앱과 도우미는 같은 subsystem에 다음 줄을 남깁니다(도우미 줄도 같은 명령으로 모입니다).
0 commit comments