Skip to content

Fix chat input cursor reset on empty AI selections - #16642

Open
shortontech wants to merge 1 commit into
warpdotdev:masterfrom
shortontech:shortontech/fix-chat-input-cursor
Open

shortontech wants to merge 1 commit into
warpdotdev:masterfrom
shortontech:shortontech/fix-chat-input-cursor

Conversation

@shortontech

@shortontech shortontech commented Oct 24, 2026 •

Copy link
Copy Markdown

Description

Preserve the chat input I-beam when an AI block receives an empty or cleared selection update. Move the unconditional cursor reset in AIBlockAction::SelectText inside the existing non-empty selection guard, retaining reset behavior for actual text selections.

Extend the AI selection regression with cursor assertions for empty, non-empty, and cleared selections. Expose the existing cursor getter through test-util. No temporary tracing is included.

Linked Issue

Closes #16641

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Screenshots or a short video are included.

Draft pending issue triage/readiness.

Testing

  • Extended copy_selected_text_from_ai_block: failed before the fix (Arrow instead of IBeam), passed afterward.
  • cargo +1.96.0 test --locked -p warp --features gui --lib copy_selected_text_from_ai_block — passed.
  • cargo +1.96.0 test --locked -p warpui_core --lib elements::gui::hoverable::tests — 6 passed.
  • Changed Rust files formatted; git diff --check passed.
  • Manually tested the patched local GUI build via cargo run --bin warp-oss --features gui; the reporter confirmed the agent/chat input cursor issue is fixed.

Screenshots / Videos

Not attached.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp AI Agent Mode.

CHANGELOG-BUG-FIX: Preserve the text-selection mouse cursor when clicking the agent chat input.

Co-Authored-By: Warp agent@warp.dev

Help with the CLA would be appreciated.

Only reset the mouse cursor for non-empty AI block selections so clicking the chat input preserves its I-beam. Cover empty, non-empty, and cleared selections with cursor assertions.

Refs: warpdotdev#16641

Co-Authored-By: Warp <agent@warp.dev>
@cla-bot

cla-bot Bot commented Oct 24, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @shortontech on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Oct 24, 2026
@shortontech

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot

cla-bot Bot commented Oct 24, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @shortontech on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@cla-bot

cla-bot Bot commented Oct 24, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@shortontech

Copy link
Copy Markdown
Author

Getting the following error attempting to sign the cla.

Sign request failed (500): Failed to record signature. Please try again.

I don't suppose there's some verbal agreement I can leave here?

@shortontech

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot

cla-bot Bot commented Oct 25, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @shortontech on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@cla-bot

cla-bot Bot commented Oct 25, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@shortontech
shortontech marked this pull request as ready for review October 25, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent chat input mouse cursor changes from I-beam to arrow after clicking

1 participant