Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Enable Settings → Labs → Suggest next prompt.
- Start a Claude thread (reproduced with Claude Opus 5.5, medium effort).
- Attach a screenshot and send a short prompt that refers to it, such as "explain this". Repeat a few times, each time with a different screenshot.
- After the turn completes, check the composer ghost text.
- Press Tab, then send.
The suggestion is model output, so the result can vary between runs.
Expected behavior
A suggestion accepted with Tab should make sense when it is sent as text only. When the only likely next step depends on a new screenshot, no suggestion should be shown.
This report does not ask for Tab to attach images.
Actual behavior
The ghost text repeats the screenshot prompt ("explain this"). Tab inserts only that text, with no attachment. When sent, the agent receives no new screenshot and replies that the attachment seems to be missing.
Reproduced on main @ af4208e (vp run dev, fresh T3 home, no seed). Each turn had a new synthetic English screenshot (build log, chart, settings panel, query plan, kubectl get pods) and a short prompt: "explain this", "explain this more", or "explain this please". Suggestions were active from turn 5. Both suggestions that appeared were explain this.
| 1. Ghost text after the turn | 2. Composer after Tab: text only, no attachment |
|---|---|
![]() |
![]() |
- After sending the accepted suggestion, the agent replied:
No image or text came with this message. I also checked the attachments folder, and the newest file there is the
kubectl get podsscreenshot I already explained. The new attachment probably did not upload.
The next suggestion was explain this again.
Real usage (desktop nightly): in one of my own threads, 8 user messages had one screenshot and a short "explain this" prompt in Spanish. After the first of them, 10 of the 17 prompt_suggestion values were a bare "explain this" prompt with no subject:
| Suggestion (original Spanish) | English meaning | Count |
|---|---|---|
explicame esto |
explain this | 1 |
explicame esto porfa |
explain this, please | 5 |
explicame mas esto |
explain this more | 2 |
explicame esto porfa mas |
explain this more, please | 1 |
explícame esto también |
explain this too | 1 |
The model predicts the user's habit accurately. However, that habit always includes a new screenshot, which a text suggestion cannot carry.
Diagnosis
- Claude: The suggestion comes from the Claude Agent SDK. The SDK exposes only
promptSuggestions: boolean, and theprompt_suggestionmessage contains only the text, so T3 Code cannot change the generator's instructions.ClaudeAdapterV2forwards the text asprompt_suggestion.updatedwithout a content filter. It only checks that the turn is settled and still the latest, and that the text is not empty (apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts, themessage.type === "prompt_suggestion"branch). - Codex:
CODEX_PROMPT_SUGGESTION_PROMPTinCodexAdapterV2.tshas no rule about attachments.samplePromptSuggestiondrops only empty samples and samples that start with "Delegated task". With Codex CLI 0.172.0 and a mocked model endpoint, I confirmed that thethread/samplerequest includes the earlier image, so the predictor can see the screenshot pattern. I have not reproduced the suggestion on Codex with a real model. - Web: Accepting a suggestion inserts text only.
promptSuggestionToAccept(apps/web/src/components/chat/usePromptSuggestion.ts) returns the text, and both the Tab key (composerCommandKey.ts) and the Tab hint (ChatComposer.tsx) insert only that text. This behavior is correct, but it explains why the accepted suggestion has no screenshot.
Related: #37283 (fixed by #37292) drops Codex suggestions that imitated delegated-task notices. #37292 left the Claude suggestion path unchanged on purpose. Discussion #37945 also notes that the Claude Code generator copies the user's writing style.
Impact
Minor bug or occasional failure
Version or commit
main @ af4208e (dev build), and desktop 0.1.14-nightly.20261129.5452
Environment
macOS 27.2.1, Chromium (dev web) and T3 Code desktop, Claude provider (Claude Agent SDK, Claude Code 2.1.332), claude-opus-5-5
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Ignore the ghost text, paste the screenshot, and type the prompt manually.


Activity