Skip to content

feat(chat): suggest replies you can accept with Tab - #44

Closed
gstark wants to merge 2 commits into
upstream-base/v0.1.3from
pr/reply-suggestions
Closed

gstark wants to merge 2 commits into
upstream-base/v0.1.3from
pr/reply-suggestions

Conversation

@gstark

@gstark gstark commented Oct 31, 2026

Copy link
Copy Markdown
Owner

After the agent finishes a turn, the user often types a short reply, such as "Yes, do that." The composer gives no help with this common step.

This change shows a suggested reply as the placeholder of the empty composer on web and desktop. Press Tab to put the suggestion into the composer. Press Escape or start to type to dismiss it.

  • Claude sessions turn on the SDK's promptSuggestions option. The adapter stores the native suggestion for the run in the provider thread metadata. The thread shell sends it to clients, so a late suggestion updates the composer.
  • Other providers use the configured text generation model through a new thread.suggestReply RPC and generateReplySuggestion operation. The prompt returns an empty reply when no clear next step exists, and it does not approve destructive actions.
  • ThreadReplySuggestionService only suggests for the last assistant message of a completed run. It shares one in-flight request between devices and keeps a bounded cache.
  • The RPC needs the orchestration operate scope. The client checks the permission on the destination environment.
  • Settings > Chat > Suggest replies turns the feature off. It is on by default.
  • The Claude adapter also uses the Bash tool's description as the intent of a command execution item.

Kept in sync from mine by fork-prs.

After a turn settles, the composer can show a short suggested reply as its
placeholder. Tab accepts it and Escape dismisses it.

Claude sends a native prompt suggestion after the result, and the adapter
keeps it on the provider thread. Other providers fall back to the text
generation model over the last messages. A client setting turns the feature
off.

Ported from probable-panda/p3code 5801eef.
@gstark

gstark commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Closing: mine dropped this in the v0.1.9 merge (c0cc253). Upstream v0.1.9 ships its own Labs option, Suggest next prompt (pingdotgg#28047), which mine now uses instead.

@gstark gstark closed this Nov 16, 2026
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