Skip to content

fix: close stale classic completion menus#13944

Open
KRRT7 wants to merge 2 commits into
warpdotdev:masterfrom
KRRT7:fix-classic-completions-stale
Open

fix: close stale classic completion menus#13944
KRRT7 wants to merge 2 commits into
warpdotdev:masterfrom
KRRT7:fix-classic-completions-stale

Conversation

@KRRT7

@KRRT7 KRRT7 commented Jul 18, 2026

Copy link
Copy Markdown

Description

Classic Completions could leave a stale suggestion menu open after the user backspaced past the query that originally produced the results. The short prefix could then re-filter to the entire original result set.

The completion menu now remains valid while the original replacement prefix is intact, but closes when editing removes part of that prefix.

Linked Issue

  • The linked issue is labeled ready-to-implement.

Fixes #13605

Testing

  • cargo fmt --all
  • cargo nextest run -p warp -E 'test(classic_completions)'
  • cargo clippy -p warp --lib --tests -- -D warnings
  • git diff --check
  • Added regression coverage for Classic Completions after backspacing past the original query.
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Not included: this is a terminal input behavior change covered by automated tests; no GUI visual layout changed.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-BUG-FIX: Close stale Classic Completions menus after editing past the original query.

@cla-bot cla-bot Bot added the cla-signed label Jul 18, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Jul 18, 2026
@oz-for-oss

oz-for-oss Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@KRRT7

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR tightens Classic Completions invalidation so the menu closes after edits remove part of the original replacement prefix, and adds regression coverage for backspacing past the query.

Concerns

  • The new prefix check can close Classic Completions while cycling through case-insensitive matches that change casing, because it runs before the existing selected-item guard.
  • For this user-facing terminal input behavior change, please include screenshots or a short screen recording demonstrating the completion menu closing end to end.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/terminal/input.rs Outdated
@KRRT7
KRRT7 force-pushed the fix-classic-completions-stale branch from 852626e to b7753c1 Compare July 18, 2026 12:51
@KRRT7

KRRT7 commented Jul 18, 2026

Copy link
Copy Markdown
Author
Screen.Recording.2026-07-18.at.8.52.46.AM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed 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.

Classic completions remain stale after Tab then Backspace

1 participant