Skip to content

feat: add suggested starter prompts - #308

Open
Maws7140 wants to merge 4 commits into
RAIT-09:devfrom
Maws7140:suggested-starter-prompts
Open

feat: add suggested starter prompts#308
Maws7140 wants to merge 4 commits into
RAIT-09:devfrom
Maws7140:suggested-starter-prompts

Conversation

@Maws7140

@Maws7140 Maws7140 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds optional agent-generated starter prompt chips for fresh empty chats.

This is split from quick prompts because it sends a hidden ACP prompt request and has separate product/behavior implications which is kind of sus so I thought to separate it.

How it works

  • On an empty session, a hidden instruction is sent asking for up to 4 concise
    prompts (under 12 words each), one per line.
  • The reply is parsed into chips and suppressed from the visible message
    list
    the user never sees the request or the raw response.
  • Clicking a chip sends that prompt.
  • Gated behind a "Suggest starter prompts" setting.

Key changes

  • src/hooks/useAgentMessages.ts generateStarterPrompts(), the hidden
    instruction, response parsing, and once-per-session guard
  • src/ui/InputArea.tsx / src/ui/ChatPanel.tsx render the chips on empty chats
  • src/ui/SettingsTab.ts the toggle
image

@Maws7140 Maws7140 closed this Jun 2, 2026
@Maws7140 Maws7140 reopened this Jun 2, 2026
@Maws7140
Maws7140 marked this pull request as ready for review June 8, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant