Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,15 @@ export default function Chat(props: {
const messages = session.messages;
const chatStream = useChatStream();
const isLoading = starting || session.busy;
// A turn can add, change or delete a skill ("save this as a skill"); when it
// ends, have the "/" picker and the skills panel read the list again.
const wasBusyRef = useRef(false);
useEffect(() => {
if (wasBusyRef.current && !session.busy) {
window.dispatchEvent(new CustomEvent('skillsSaved'));
}
wasBusyRef.current = session.busy;
}, [session.busy]);
// Image attachments require a vision-capable model — the SLP backend
// OCRs/describes images through it at attachment-upload time.
const visionEnabled = enabledCapabilities.has('vision');
Expand Down
Loading