Skip to content

[Bug]: Suggested next prompt offers screenshot-dependent prompts that Tab cannot complete #46109

Done

Description

@V1TSO

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

  1. Enable Settings → Labs → Suggest next prompt.
  2. Start a Claude thread (reproduced with Claude Opus 5.5, medium effort).
  3. 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.
  4. After the turn completes, check the composer ghost text.
  5. 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
Ghost text after the turn Composer after Tab: text only, no attachment
  1. 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 pods screenshot I already explained. The new attachment probably did not upload.

The next suggestion was explain this again.

Agent reply after sending the accepted suggestion

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 the prompt_suggestion message contains only the text, so T3 Code cannot change the generator's instructions. ClaudeAdapterV2 forwards the text as prompt_suggestion.updated without 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, the message.type === "prompt_suggestion" branch).
  • Codex: CODEX_PROMPT_SUGGESTION_PROMPT in CodexAdapterV2.ts has no rule about attachments. samplePromptSuggestion drops only empty samples and samples that start with "Delegated task". With Codex CLI 0.172.0 and a mocked model endpoint, I confirmed that the thread/sample request 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

  1. added
    bug
    needs-triage
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions