Перейти к основному содержимому

Persistent minimizable chatbot session

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: AI · Tier: light · Risk: low — client-side state only, no external calls

A client-side Svelte state machine keeps Vely's conversation alive across page navigation, minimizing the panel instead of closing it when the user follows a link.

When to use: Use when a floating chat widget must survive route changes and reloads without losing the live thread.

Docs

Code

  • src/lib/state/chatbot-session.svelte.ts (GitHub · GitLab)

Machine-readable record: ai-chatbot-session in mcp/patterns.registry.json.

← Back to Pattern Library

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв