mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
d598a197dd
- Rename sortThreadsByUpdatedAt → sortThreadsByRecency to match the lastRunAt-preferring sort introduced in the previous commit. - useThreads: correct the context-dispatch comment to describe what the code actually does (null only when runtimeUrl is absent; transient status states leave the previous context in place). - CopilotChatInput: rewrite the `bottomAnchored` prop doc so the layout/positioning distinction is self-evident. - Add changeset calling out the behavior change to suggestions (now hidden while `isRunning`) and summarizing the ENT-314 fixes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
@copilotkit/react-core, @copilotkit/core
| @copilotkit/react-core | @copilotkit/core |
|---|---|
| minor | patch |
fix(threads): stabilize thread-switch UX, skip /connect for absent threads
- Skip
connectAgentwhenCopilotChatis rendered without a caller-suppliedthreadId. A locally-minted UUID has no backend record, so/connectwould always 404 on the intelligence platform. - Expose
lastRunAtonThreadand use it (with fallback toupdatedAt, thencreatedAt) as theuseThreadssort key so metadata-only actions like archive/rename no longer reshuffle the list. useThreadswaits forruntimeConnectionStatus === Connectedbefore dispatching the store context, eliminating a speculative/threadsfetch that fired before/inforeturnedwsUrl.- Reserve room for the fixed "Powered by CopilotKit" license badge via a new
--copilotkit-license-banner-offsetCSS var published by the banner; chat input consumes it when bottom-anchored so the two no longer overlap. - Add a new
bottomAnchoredprop onCopilotChatInputfor callers rendering it as a flex-last-child.
Behavior change (chat suggestions): CopilotChatView no longer renders suggestions while isRunning is true. Previously, suggestions could appear against a streaming-in message tree and visibly reflow as text chunks landed. If you relied on suggestions staying visible during a run, you'll now see them only once the run finalizes (or the thread's initial connect completes).