Skip to content

[Bug]: Clicking the Tab hint no longer inserts a one- or two-line prompt suggestion #40836

Closed as not planned

Description

@floklein

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Enable Settings → Labs → Suggest next prompt.
  2. Open a thread with a suggested prompt that fits on one or two lines, and leave the composer empty.
  3. Click the ⇥ Tab badge after the suggestion.

Expected behavior

The suggestion fills the composer, as added in #39488.

Actual behavior

The click lands in the editor and the suggestion is not inserted.

This is a regression from #40654 (3f08098), which fixed #40650. The placeholder in ComposerPromptEditorTiptap went from absolute to a static grid item. .composer-tiptap is position: relative, so the editor now paints above the placeholder and the button inside it. A suggestion long enough to push the badge below the editor's two-line box can still be clicked.

Impact

Minor bug or occasional failure

Version or commit

main @ 91d2d90. v0.1.12-nightly.20261122.5085 contains both PRs, so should be affected too (not run). v0.1.11 predates the button.

Environment

Windows 11, headless Chromium, through the repo's browser test project.

Logs or stack traces

A browser test that renders the real editor with a one-line placeholder and a button suffix, then clicks the button:

element is visible, enabled and stable
<p>…</p> from <div class="col-start-1 row-start-1">…</div> subtree intercepts pointer events

I reproduced this at the editor component, not with a live provider suggestion.

Workaround

Press Tab.


Investigated and written by Claude Opus 5.5 in Claude Code.

Activity

  1. juliusmarminge commented on Nov 22, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    On origin/main c80f41f I added a browser test to apps/web/src/components/ComposerPromptEditorTiptap.input.browser.test.tsx. It renders the real ComposerPromptEditorTiptap with an empty value, the one-line placeholder 'Run the tests' and a placeholderSuffix button with pointer-events-auto (the same shape as ChatComposer's Tab hint), then calls userEvent.click on the button. Run with vp test run src/components/ComposerPromptEditorTiptap.input.browser.test.tsx -t "placeholder suffix" in headless Chromium, it fails: '

    …

    from
    …
    subtree intercepts pointer events', and the button's onClick never runs. With #40654 (3f08098) reverted in ComposerPromptEditorTiptap.tsx, the same test passes. I did not run the full app with Labs → Suggest next prompt and a live provider suggestion, so this is confirmed at the real editor component in a real browser, not in an end-to-end run of the app.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  2. floklein commented on Nov 22, 2026

    @floklein
    ContributorAuthor

    Your test reproduces it: the intercepted click is the bug. It also happens end to end on main @ 91d2d90 with a one-line suggestion. Fix and captures are in #40841.

    Hovering the badge on a one-line suggestion. On main the editor covers it, so the cursor stays a text I-beam instead of the pointer hand:

    main @ 5799b8a With #40841
    main: text I-beam over the Tab badge With the fix: pointer hand over the Tab badge
    Pointer is over the editor, and clicking does nothing Pointer is over the button, and clicking inserts the suggestion

    Real system cursor, not drawn in: headed Chromium 158 on a Linux X11 virtual display, running the real app with the Replay provider and injected suggestion text. Cropped and enlarged 3×.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions