Commit 2e6ea6f
authored
fix: improve connection reliability with better handshake detection (#133)
# Improve Claude connection reliability and queue processing
This PR enhances the connection handling and queue processing for Claude Code:
- Increases the connection wait delay from 200ms to 600ms to ensure Claude is fully ready before sending queued mentions
- Implements a more robust connection check that verifies WebSocket handshake completion
- Adds progressive polling after connection to ensure handshake is complete
- Increases the delay between sequential message sends to 25ms (from 10ms) to prevent overwhelming the WebSocket connection
- Adds more detailed logging for connection and queue processing states
- Implements a retry mechanism that polls until handshake completes when triggered by a new connection
These changes should significantly improve reliability when sending multiple mentions to Claude, especially immediately after connection.1 parent 8fdb815 commit 2e6ea6f
2 files changed
+32
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
| |||
149 | 163 | | |
150 | 164 | | |
151 | 165 | | |
152 | | - | |
153 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
154 | 176 | | |
155 | 177 | | |
156 | 178 | | |
| |||
173 | 195 | | |
174 | 196 | | |
175 | 197 | | |
176 | | - | |
| 198 | + | |
177 | 199 | | |
178 | 200 | | |
179 | 201 | | |
| |||
204 | 226 | | |
205 | 227 | | |
206 | 228 | | |
| 229 | + | |
207 | 230 | | |
208 | 231 | | |
209 | | - | |
| 232 | + | |
210 | 233 | | |
211 | 234 | | |
212 | 235 | | |
213 | 236 | | |
214 | 237 | | |
215 | 238 | | |
216 | 239 | | |
| 240 | + | |
| 241 | + | |
217 | 242 | | |
218 | 243 | | |
219 | | - | |
| 244 | + | |
220 | 245 | | |
221 | 246 | | |
222 | 247 | | |
| |||
0 commit comments