Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Use <Esc> as AI Interrupt in Warp AI #5854

Open
2 tasks done
pythoncarpenter opened this issue Feb 18, 2025 · 3 comments
Open
2 tasks done

Feature Request: Use <Esc> as AI Interrupt in Warp AI #5854

pythoncarpenter opened this issue Feb 18, 2025 · 3 comments
Labels
Feature requests Feature Requests

Comments

@pythoncarpenter
Copy link

Pre-submit Checks

Describe the solution you'd like?

Date: 2024-10-27 (Replace with the current date)

Operating System: macOS Sequoia 15.1 (24B83)

Shell: Z Shell

Problem Description:

Currently, when Warp AI is generating output or performing a lengthy task, there is no readily available keyboard shortcut to interrupt or cancel the process. This can be frustrating when the AI is producing undesired results or taking too long.

Proposed Solution:

Implement the <Esc> (Escape) key as a universal interrupt for Warp AI processes. This would allow users to quickly and efficiently stop the AI when needed, similar to how <Ctrl+C> interrupts running shell commands.

Benefits:

  • Improved User Experience: Provides a consistent and intuitive way to interrupt AI operations.
  • Increased Efficiency: Allows users to quickly recover from undesired AI output or lengthy processing times.
  • Enhanced Control: Gives users more direct control over the AI's behavior.
  • Consistency with other applications: The escape key is already used in many applications as a universal way to cancel or close actions.

Use Cases:

  • When the AI is generating incorrect or irrelevant output.
  • When the AI is taking an unexpectedly long time to complete a task.
  • When the user changes their mind and wants to stop the AI's current operation.

Implementation Details (Optional):

  • The <Esc> key press should immediately halt the current AI process.
  • A brief confirmation message (e.g., "AI process interrupted.") could be displayed in the terminal.

Additional Notes:

  • Tab spacing of 2 spaces should be used within the warp terminal, as per my personal preference.
  • This feature would be greatly appreciated by users who frequently interact with Warp AI and require more fine-grained control over its operations.

Is your feature request related to a problem? Please describe.

Problem is when you have "Model based execution" turned on--there is no stop button to interrupt auto-execution

Additional context

No response

Operating system (Optional, if relevant)

MacOS

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

@pythoncarpenter pythoncarpenter added the Feature requests Feature Requests label Feb 18, 2025
@zachbai
Copy link

zachbai commented Feb 18, 2025

Hey @pythoncarpenter, so hitting ctrl-c in the middle of streaming output should cancel the response stream. If that's not working for you there's definitely some issue we should dig into here.

As for making that action bound to esc, that isn't possible right now but we can trivially add support for that

@dannyneira
Copy link
Member

Hi @pythoncarpenter Thanks for submitting. To add on to Zach's comment, the workaround of using CTRL-C to cancel Warp AI is also in our docs. https://docs.warp.dev/features/warp-ai/agent-mode#how-to-exit-agent-mode

To anyone else interested in this ESC feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

@pythoncarpenter
Copy link
Author

Hey @pythoncarpenter, so hitting ctrl-c in the middle of streaming output should cancel the response stream. If that's not working for you there's definitely some issue we should dig into here.

As for making that action bound to esc, that isn't possible right now but we can trivially add support for that

Yes, I'm sure that would be work for me--thanks for the information! I'm use to using that as a emergency stop in the shell--but since warp feels more like an application, it would be nice to have the option to actually have both--we could make it so that it's a toggled option in the AI GUI portion of the settings. 2 stops is better than one especially in the age of AI. Reminds me of working around industrial machinery, can't hurt to have more interrupts.

I'll remember to use C-c for now--thanks to you both !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests

3 participants