Repository navigation
Commit 1dfb9e2
committed
fix(server): thread deletion removes files attached to question answers
Deleting a thread leaves files attached to question answers on disk. Their metadata is stored on user input request items rather than message rows.
Collect these attachment IDs in the SQLite and memory projection stores. Keep the existing deduplication.
Tests: TurnStartReads.test.ts, loads startup state without obsolete transcript payloads in sqlite and memory. The regression includes two question-answer attachments and an ordinary message attachment.1 parent 7873f53 commit 1dfb9e2
2 files changed
Lines changed: 70 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5324 | 5324 | | |
5325 | 5325 | | |
5326 | 5326 | | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
| 5334 | + | |
5327 | 5335 | | |
5328 | 5336 | | |
5329 | 5337 | | |
| |||
5335 | 5343 | | |
5336 | 5344 | | |
5337 | 5345 | | |
5338 | | - | |
| 5346 | + | |
5339 | 5347 | | |
5340 | 5348 | | |
5341 | 5349 | | |
| 5350 | + | |
5342 | 5351 | | |
5343 | 5352 | | |
5344 | 5353 | | |
| |||
7197 | 7206 | | |
7198 | 7207 | | |
7199 | 7208 | | |
| 7209 | + | |
| 7210 | + | |
| 7211 | + | |
| 7212 | + | |
| 7213 | + | |
| 7214 | + | |
| 7215 | + | |
7200 | 7216 | | |
7201 | 7217 | | |
7202 | 7218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
363 | 416 | | |
364 | 417 | | |
365 | 418 | | |
| |||
0 commit comments