mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0b5ed9cd97
Adds the user-facing improvements that make the chat tab usable in
real workspaces:
- Tailwind v4 compile pass on every bundle so per-app utility classes
in user renders actually have CSS rules to match (previously they
shipped unstyled).
- Hot-reload file watcher: edits to *.{ts,tsx,css} in the workspace
trigger a debounced rescan + rebundle so the chat reflects changes
without an extension reload.
- Fixture replay: ▶ on a saved fixture animates the recorded
conversation back into the chat surface message-by-message.
- vscode-lm-factory bug fix: pass assistant tool calls and tool
results through to the model. The previous toLmMessages dropped
both, so every tool result was invisible to the model and it would
loop calling the same tool with slightly tweaked args.
- followUp:false support in chat-source's tool-calling loop so
display-only tools don't trigger a follow-up turn.
- Markdown rendering for assistant text (bold/italic/lists/headings/
fenced code/links), built as React elements with sanitized hrefs.
- Tool-call UI cleanup: drop the dashed inner card, replace the
uppercase header with a clickable tool-name pill that opens the
registering hook in the editor.
- Sidebar redesign: three labeled sections (Model / Recording /
Saved replays) with explanatory copy, full-width save form,
inline play + two-click delete on each fixture row.
- Resizable, collapsible side panels (CSS-var driven, persisted to
localStorage). Floating chevron buttons ride the panel edge.
- Components panel: expandable rows showing each registered hook
("useFrontendTool · displayCurrentWeather") clickable to jump to
the exact line.
- Diagnostics panel surfaces Tailwind detection state alongside the
vscode.lm tools row.
Infrastructure additions:
src/extension/playground/tailwind-compile.ts (+ test)
src/extension/playground/file-watcher.ts (+ test)
src/extension/playground/fixture-replay.ts (+ test)
src/webview/playground/ResizeHandle.tsx