Repository navigation
Commit 083209a
authored
Answer not found for requests that land mid-destroy on an MCP session (#2391)
destroy() wipes the session's storage and the SDK's tables before it aborts the isolate. A request landing in between passed the condemned-marker check, since the marker was wiped too, and then trusted the in-memory session meta. It restored the runtime against the dropped tables and failed with "no such table: cf_agents_mcp_servers" as an unhandled 500. Once destroy starts, the cached meta no longer vouches for the session.1 parent dc3eac8 commit 083209a
2 files changed
Lines changed: 18 additions & 0 deletions
File tree
- .changeset
- packages/hosts/cloudflare/src/mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
359 | 368 | | |
360 | 369 | | |
361 | 370 | | |
| |||
650 | 659 | | |
651 | 660 | | |
652 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
653 | 665 | | |
654 | 666 | | |
655 | 667 | | |
| |||
1784 | 1796 | | |
1785 | 1797 | | |
1786 | 1798 | | |
| 1799 | + | |
1787 | 1800 | | |
1788 | 1801 | | |
1789 | 1802 | | |
| |||
0 commit comments