Repository navigation
Commit c09c42b
fix(plugins): land a slice despite a dropped oversize message, normalise keys, skip landed adds on retry
Three findings from the second review pass. A slice holding one message over
the 250 KB ceiling answered False after the other messages had landed, and
both retrying callers (StorePipeline, the importer) re-sent the whole slice on
every attempt: the drop is deterministic, so the rest was stored again and an
import source never completed. The slice now reports landed; the warning that
names the session and the message index stays. resolve_api_key strips
whitespace and refuses a key with a control character, because the HTTP layer
quotes the whole Authorization value in its error and that text reached the
health hint, the settings card and the gateway log. A retry of the same slice
skips the adds the service already accepted (their digests are kept until the
slice lands), so a transient failure mid-slice stores nothing twice; the digest
ignores the fill-in timestamp. A lone surrogate in a message is replaced so the
size check and the send never raise. A parity test holds convert_messages to
the local plugin's.
Co-authored-by: Claude (claude-fable-5-1) <noreply@anthropic.com>1 parent a68ffaf commit c09c42b
2 files changed
Lines changed: 111 additions & 12 deletions
File tree
- plugins-dist/everos-cloud-memory/raven_everos_cloud
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
246 | 268 | | |
247 | 269 | | |
248 | 270 | | |
| |||
370 | 392 | | |
371 | 393 | | |
372 | 394 | | |
| 395 | + | |
373 | 396 | | |
374 | 397 | | |
375 | 398 | | |
| |||
527 | 550 | | |
528 | 551 | | |
529 | 552 | | |
530 | | - | |
| 553 | + | |
531 | 554 | | |
532 | 555 | | |
533 | 556 | | |
534 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
535 | 565 | | |
536 | 566 | | |
| 567 | + | |
537 | 568 | | |
538 | 569 | | |
539 | 570 | | |
540 | 571 | | |
541 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
542 | 577 | | |
543 | 578 | | |
544 | 579 | | |
545 | 580 | | |
546 | 581 | | |
547 | 582 | | |
548 | | - | |
| 583 | + | |
549 | 584 | | |
550 | 585 | | |
551 | 586 | | |
552 | 587 | | |
553 | 588 | | |
554 | 589 | | |
555 | | - | |
| 590 | + | |
556 | 591 | | |
557 | 592 | | |
558 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
196 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
| |||
216 | 226 | | |
217 | 227 | | |
218 | 228 | | |
219 | | - | |
| 229 | + | |
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
| |||
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
256 | 320 | | |
257 | 321 | | |
258 | 322 | | |
| |||
0 commit comments