Repository navigation
feat: follow-up question chips + dashboard auto-refresh - #29
Merged
Merged
Conversation
…loses #20) Follow-up questions (#17): - Add follow_up_questions: list[str] to submit_investigation tool schema; generated by the agent in the same final call at zero extra LLM cost - Extract questions from tool_calls_log in chat.py and include in the done SSE event - Render up to 3 clickable chips above the input box after investigation completes; clicking a chip sends it immediately and clears the chips Dashboard auto-refresh (#20): - Extract fetch into a named function and call it on a 30s setInterval with cleanup on unmount; silent background refresh (no spinner on subsequent loads) Docs: - docs/ui.md: follow-up chips, dashboard auto-refresh, sidebar rename/delete menu, corrected font stack description - CLAUDE.md: sidebar now documents rename + portal dropdown; remove stray attribution from font descriptions; note follow-up questions in chat page features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes feat: follow-up question suggestions after each investigation #17 — After each investigation completes, up to 3 follow-up question chips appear above the input. Generated by the agent inside the existing
submit_investigationtool call — zero extra LLM cost. Clicking a chip sends it as the next message; chips clear on any new send.Closes feat: auto-refresh dashboard stats every 30s #20 — Dashboard stats auto-refresh every 30 seconds. Silent background poll (no spinner on refresh), cleans up on unmount.
Also includes doc and CLAUDE.md updates carried over from the previous PR (sidebar rename/delete, font description, auto-refresh note).
Changes
Backend
src/tools/final_answer.py— addfollow_up_questions: list[str]parameter tosubmit_investigationsrc/api/routers/chat.py— extract follow-up questions fromtool_calls_logafter stream ends; include indoneSSE event asfollow_up_questionsFrontend
frontend/src/pages/ChatPage.tsx—followUpQuestionsstate; populate fromdoneevent; render pill chips aboveInputArea; clear on new sendfrontend/src/pages/DashboardPage.tsx— wrap fetch inload(), call on mount and every 30s viasetInterval; return cleanupDocs
docs/ui.md— follow-up chips, auto-refresh, sidebar three-dot menu (rename + delete), corrected font descriptionCLAUDE.md— sidebar description updated; font attribution removedTest plan
Follow-up questions (#17)
submit_investigation)doneeventsubmit_investigation(e.g. a bareaskthat just replies), verify no chips appearDashboard auto-refresh (#20)
Docs