feat(chat): AI-powered thread quick actions (starter suggestions)#3363
Open
rafavalls wants to merge 2 commits into
Open
feat(chat): AI-powered thread quick actions (starter suggestions)#3363rafavalls wants to merge 2 commits into
rafavalls wants to merge 2 commits into
Conversation
Generates 3 contextual starter questions per agent using the configured LLM, shown both in the empty-state sidebar and after each assistant message. Suggestions are fetched once and cached indefinitely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsSuggested: Minor ( React with an emoji to override the release type:
Current version:
|
Each suggestion fades in + slides up subtly (200ms ease-out), staggered 60ms apart. Respects prefers-reduced-motion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
What is this contribution about?
Adds contextual starter suggestions to the chat UI — 3 short, agent-specific questions generated by the configured LLM based on the agent's description and instructions. Suggestions appear in the empty-state sidebar before the first message and as quick-action chips after each assistant response.
New pieces:
POST /api/:org/decopilot/agent-suggestions— endpoint that calls the LLM to generate suggestionssuggestions-generator.ts— LLM utility (same pattern as title generation)thread-suggestions.tsx—ThreadSuggestions(base UI) andAfterMessageSuggestions(post-message variant)use-agent-suggestions.ts— React Query hook, fetches once and caches indefinitely per agentScreenshots/Demonstration
How to Test
Migration Notes
No migrations needed.
Review Checklist
Summary by cubic
Adds agent‑specific starter suggestions to the chat to speed up first asks and follow‑ups. Three short prompts are generated from the agent description and shown in the empty state and after each assistant reply; clicking one sends it. Suggestions now animate in with a subtle, staggered fade‑in.
POST /api/:org/decopilot/agent-suggestionsgenerates 3 suggestions from the configured model and agent description; returns an empty list when models/provider are unavailable. Usessuggestions-generator.ts.ThreadSuggestionsandAfterMessageSuggestionsrender pill chips in the sidebar (below ice breakers) and below the last message; hidden while streaming or when approvals are pending. Adds 200ms fade-in + slide-up animation, staggered by 60ms, respecting reduced motion.use-agent-suggestionsReact Query hook fetches once and caches indefinitely per agent; added query key inquery-keys.ts.Written for commit 4fc96ef. Summary will update on new commits.