Skip to content

Offer the predicted next prompt in the composer - #177

Closed
kossmac wants to merge 1 commit into
splitbrain:mainfrom
kossmac:prompt-suggestions
Closed

kossmac wants to merge 1 commit into
splitbrain:mainfrom
kossmac:prompt-suggestions

Conversation

@kossmac

@kossmac kossmac commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

After a turn, the Claude Code CLI shows the predicted next prompt as gray text in the empty prompt, and Tab accepts it.
The Boxes composer showed nothing.

claude-agent-acp sends this prediction since 0.92.0 as session_info_update._meta.promptSuggestions
({ suggestions: [{ text }] }, an empty list clears it). The gateway already forwards the update to the browsers.

Changes

  • box-image/Dockerfile: claude-agent-acp ^0.81.0 → ^0.92.0, the first version with the prediction. I kept the
    jump small on purpose: 0.94 moves to ACP SDK 2.0.0.
  • Dashboard:
    • translate.ts reads the prediction from session_info_update into the thread model. A user message clears it.
    • ThreadStore publishes it as promptSuggestion and clears it when this browser sends a prompt.
    • The composer shows it as the placeholder of an empty draft (not while a turn runs). Tab writes it into the draft
      without sending, like the CLI. Shift+Tab and a non-empty draft keep the normal Tab behaviour.
  • doc/threads.md: one paragraph under "Sending prompts".

The existing ThreadFollowupSuggestions chip row stays unused, because chips send at once and the CLI only fills the
prompt.

Tests

Dashboard: all tests pass (new tests for the translation and the store), npm run check and Biome are clean.
Not yet tried with a built box image.

Claude Code predicts the next prompt after a turn, and its CLI shows it as
gray text that Tab accepts. claude-agent-acp sends this prediction since
0.92.0 as session_info_update._meta.promptSuggestions.

The box image now installs claude-agent-acp ^0.92.0. The dashboard keeps the
latest prediction of a thread, clears it when the user sends a prompt, and
shows it as the placeholder of an empty composer. Tab writes it into the
draft without sending it.
@splitbrain

Copy link
Copy Markdown
Owner

replaced by #198

@splitbrain splitbrain closed this Nov 26, 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.

2 participants