mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
324d0dfabb
The button hit DELETE /threads, which the runtime router resolves to "threads/list" (a GET-only route) and returns 405. The intended endpoint is POST /threads/clear (defined at fetch-router.ts:175). Add try/catch and surface non-ok HTTP status via console.error so the click no longer silently appears to succeed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>