Skip to content

Allow extensionless SSH private keys in picker#5

Merged
veithly merged 1 commit into
masterfrom
codex/issue-3-key-file-dialog
May 26, 2026
Merged

Allow extensionless SSH private keys in picker#5
veithly merged 1 commit into
masterfrom
codex/issue-3-key-file-dialog

Conversation

@veithly
Copy link
Copy Markdown
Owner

@veithly veithly commented May 26, 2026

Summary

  • Remove extension filters from the SSH private key picker so extensionless OpenSSH keys such as id_ed25519 are visible by default.
  • Keep the existing selected-file import path and add a focused test for reading an extensionless key file.

Test Plan

  • npm run build
  • cargo check -p vibeshell
  • cargo test -p vibeshell dialog::tests -- --nocapture
  • rustfmt --edition 2021 --check src-tauri/src/commands/dialog.rs

Refs #3

OpenSSH private keys commonly use names like id_ed25519 without an extension. The native picker was restricted to extension filters, which hid those files and made the public .pub file the visible default path.

The picker is now unfiltered and scoped by title so private keys with no suffix or uncommon suffixes can be selected, while the existing import path still reads the selected file content. A focused test covers reading an extensionless private-key file.

Constraint: Keep the change limited to the SSH key picker/import path.

Rejected: Adding more extensions or relying on a wildcard filter, because rfd filters are extension-based and backend behavior can still hide extensionless names.

Confidence: High.

Scope-risk: Low; the picker is less restrictive but credential handling is unchanged.

Reversibility: Revert src-tauri/src/commands/dialog.rs.

Directive: Address the extensionless private key Browse/import bug noted in GitHub issue #3.

Tested: npm run build; cargo check -p vibeshell; cargo test -p vibeshell dialog::tests -- --nocapture; rustfmt --edition 2021 --check src-tauri/src/commands/dialog.rs.

Not-tested: Manual native dialog click-through on macOS.

Related: #3
@veithly veithly merged commit 88dd3f8 into master May 26, 2026
5 checks passed
@veithly veithly deleted the codex/issue-3-key-file-dialog branch May 26, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant