mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 09:08:46 +02:00
Investigated whether CopilotKit offers an official thread flush instead of the BFF connect intercept. It does have one (POST /threads/clear -> runner.clearThreads()), but only on the fetch-router entrypoint — the single-route adapter we mount (copilotRuntimeNextJSAppRouterEndpoint) accepts exactly agent/run|connect|stop, info, transcribe at 1.62, so threads/* is unreachable from our deployment (verified: 400 Unsupported method). A custom DB-backed AgentRunner is the clean end-state, but the AgentRunner base class isn't exported at 1.62. Note left in clearThread; revisit both on the next CopilotKit upgrade. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>