- Add Switcher struct to botlib (id, label, prompt, color, icon)
- Separate Redis key switchers:{bot_id}:{session_id} from suggestions
- Server-side SWITCHER_PROMPT_MAP resolves prompts (not frontend)
- Frontend sends active_switchers array in USER WS message
- Remove SYSTEM message dispatch (type 7 deprecated)
- Remove hardcoded promptMap from chat.html
- Render switchers from BotResponse.switchers (backend-driven)
- Support custom switchers via ADD_SWITCHER keyword
- Filter switcher-type items from get_suggestions()
- Add switchers field to all BotResponse construction sites
|
||
|---|---|---|
| .. | ||
| channels | ||
| kb_context.rs | ||
| manager.rs | ||
| mod.rs | ||
| mod_backup.rs | ||
| multimedia.rs | ||
| tool_context.rs | ||
| tool_executor.rs | ||
| ui.rs | ||