Skip to content

Fix command Enter stuck when LineEditorStatus desyncs from precmd - #16141

Open
atadatcu wants to merge 2 commits into
warpdotdev:masterfrom
atadatcu:master
Open

atadatcu wants to merge 2 commits into
warpdotdev:masterfrom
atadatcu:master

Conversation

@atadatcu

@atadatcu atadatcu commented Sep 24, 2026 •

Copy link
Copy Markdown

Warpified SSH (and some bash sessions) could require multiple Enter presses because Precmd was dropped before session registration and user commands were queued after the block was already marked started.

Closes #14234

Description

Also found out that Tab path completions could break under the same conditions. The cause was that shell hooks and the remote completer got out of sync with block/session state. Enter was dropped or queued while UI looked active.

Fix:

  1. Harden precmd / line-editor readiness so writes aren’t stuck after hooks.
  2. Don’t steal focus on submit.
  3. After in-band completer traffic, inherit only session_id/pwd (not full precmd).
  4. If Enter hits while in-band is in flight, queue it and retry on the real Precmd.

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • I have manually tested my changes locally with ./script/run

Also passed all tests.

Screenshots / Videos

0929.mp4

Agent Mode

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

@cla-bot

cla-bot Bot commented Sep 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 @atadatcu 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.

@warp-for-oss

warp-for-oss Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

@atadatcu

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #14234, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /warp-agent-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

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

@warp-for-oss warp-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.

@atadatcu

Every PR must be linked to a same-repo issue before Oz can review it.

Next step: open or find a same-repo issue describing this change, then link it to this PR by adding Closes #123 to the PR description (or using the "Development" sidebar on GitHub). A maintainer will mark the issue ready-to-implement when it is ready. Once it is marked, comment /warp-agent-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

@atadatcu

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Sep 24, 2026
@cla-bot

cla-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

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

@atadatcu

Copy link
Copy Markdown
Author

/warp-agent-review

@warp-for-oss warp-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.

@atadatcu

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #14234, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /warp-agent-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

@atadatcu
atadatcu force-pushed the master branch 2 times, most recently from 52d9451 to 5d4dcb9 Compare September 24, 2026 21:18
atadatcu and others added 2 commits September 25, 2026 01:27
Warpified SSH (and some bash sessions) could require multiple Enter
presses because Precmd was dropped before session registration and
user commands were queued after the block was already marked started.

Fixes warpdotdev#14234

Co-authored-by: Grok <grok@x.ai>
Inherit only session metadata after in-band commands, keep input focus on
submit, and queue Enter until real Precmd so Tab and Enter both work under
SSH completer load.

Co-authored-by: Grok <grok@x.ai>
@atadatcu

Copy link
Copy Markdown
Author

/warp-agent-review

@warp-for-oss warp-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.

@atadatcu

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #14234, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /warp-agent-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Hi @atadatcu — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.

@atadatcu

atadatcu commented Oct 3, 2026

Copy link
Copy Markdown
Author

/warp-agent-review

@warp-for-oss warp-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.

@atadatcu

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #14234, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /warp-agent-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

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.

Warpified SSH session requires three Enter presses to execute commands

1 participant