Commit f235319
committed
perf: run post-completion memory/knowledge extraction in background
Move _extract_memories and _store_knowledge into a fire-and-forget
asyncio task so the "completed" WebSocket message reaches the frontend
immediately after the agent loop ends.
Made-with: Cursor1 parent b21ef93 commit f235319
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| |||
618 | 621 | | |
619 | 622 | | |
620 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
621 | 629 | | |
622 | 630 | | |
623 | 631 | | |
| |||
0 commit comments