Fix the dark/brownish custom theme by dropping the custom [theme] config entirely and relying on Streamlit's native light/dark switcher instead (a custom theme block hides that switcher outright - confirmed by reading the compiled frontend JS). Only the native "Deploy" toolbar button is hidden now, via scoped CSS on its own test id. Move the example questions above the chat input and auto-hide them once a real message is sent in that session (rendered through components.v1.html so its script can reach across to the chat input's textarea directly and react live to theme switches via a MutationObserver, instead of st.markdown which strips <script> tags). Add per-session chat management in the sidebar: a "New chat" row at the bottom of the session list with sessions listed above it, a delete icon per session, and move the Config/connection info out of the main page into a dialog. Removed emojis from the UI. Also add a lightweight answer follow-up feature: after each answer, the LLM suggests up to 3 clickable follow-up questions (app/llm.py::generate_followups), rendered with the same clickable-card component as the examples, plus a thumbs up/down st.feedback widget per answer (display-only for now, not wired to anything yet). generate_followups introduces wrap_user_input/PROMPT_INJECTION_GUARD in app/llm.py, which the next commit reuses for the rest of the prompts. Refs #14 |
||
|---|---|---|
| .. | ||
| data/policies | ||
| rag | ||
| tools | ||
| __init__.py | ||
| config.py | ||
| graph.py | ||
| llm.py | ||
| state.py | ||
| tracing.py | ||