Skip to content

[FEATURE]: Add ESC key navigation to return to provider list when connecting providers #14931

@savonovv

Description

@savonovv

Problem

When using the command to add a provider, if a user misclicks or wants to select a different provider, they currently have to:

  1. Press ESC (which closes the entire modal)
  2. Type again
  3. Start the selection process from scratch

This is especially frustrating on:

  • Slow SSH connections with high ping
  • Low-RAM devices (e.g., Raspberry Pi Gen 1)
  • Any situation where the UI might be laggy

Proposed Solution

Allow users to press ESC while in the API key input or authorization code dialog to return to the provider list, instead of closing the entire modal.

Expected Behavior

  1. User types
  2. User selects a provider
  3. User sees API key/auth dialog
  4. User presses ESC
  5. User returns to provider list (not modal closed)

Implementation

The fix involves:

  • Adding prop to , , and components
  • Handling ESC key in to call
  • Using as the back action

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions