Skip to content

Conversation

@lifefloating
Copy link

Summary

  • Add double-ESC keyboard shortcut to clear input field content
  • Add documentation for the new shortcut

Motivation

Many popular CLI tools have adopted this pattern:

  • Claude Code - supports double-ESC to clear input
  • Gemini CLI - supports double-ESC to clear input

This has become a common UX pattern that users expect in terminal-based AI assistants.

Changes

  • packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx: Implement double-ESC detection (300ms threshold) to clear input
  • packages/web/src/content/docs/keybinds.mdx: Add documentation under "Desktop prompt shortcuts"

Proofs

2026-01-08.19.13.38.mov

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants