Repository navigation
Conversation
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.
Owner
|
replaced by #198 |
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.
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-acpsends this prediction since 0.92.0 assession_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 thejump small on purpose: 0.94 moves to ACP SDK 2.0.0.
translate.tsreads the prediction fromsession_info_updateinto the thread model. A user message clears it.ThreadStorepublishes it aspromptSuggestionand clears it when this browser sends a prompt.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
ThreadFollowupSuggestionschip row stays unused, because chips send at once and the CLI only fills theprompt.
Tests
Dashboard: all tests pass (new tests for the translation and the store),
npm run checkand Biome are clean.Not yet tried with a built box image.