Repository navigation
Commit e1e5898
committed
Identify the agent app off the main thread and once per process (#13)
Manual testing with Claude Code (a 366 MB signed binary) showed no
approval request: validating the host signature takes about a second on
the main thread, past the 750 ms pairing deadline, so hello answered
unavailable. Compute the host identity on the socket thread before the
main-thread hop and cache it per running parent process (pid, start
time, executable path), so later checks, including the per-request
delivery verifier, are cheap. Drop the redundant second validity check;
process identity is re-checked instead. Log main-deadline timeouts.
Agent: Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7MWqYoCZivtQ96kBhP1 parent 6d48dfd commit e1e5898
2 files changed
Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
63 | 95 | | |
64 | 96 | | |
65 | 97 | | |
| |||
80 | 112 | | |
81 | 113 | | |
82 | 114 | | |
83 | | - | |
84 | | - | |
| 115 | + | |
85 | 116 | | |
86 | 117 | | |
87 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
| |||
0 commit comments