Skip to content

fix: allow editing saved hosts with string IDs - #60

Merged
LukeGus merged 1 commit into
Termix-SSH:dev-1.4.0from
ZacharyZcR:fix/edit-host-string-id-36
Nov 7, 2026
Merged

LukeGus merged 1 commit into
Termix-SSH:dev-1.4.0from
ZacharyZcR:fix/edit-host-string-id-36

Conversation

@ZacharyZcR

@ZacharyZcR ZacharyZcR commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

The terminal's failure-screen Edit host action only accepts numeric host IDs, but the shell supplies saved host IDs as strings. This hides the action for valid saved hosts even when the shell supports editing.

Accept positive decimal safe-integer IDs in either representation and pass a numeric ID to the existing editor. Quick-connect and malformed IDs remain excluded, and older shells without the editing capability still hide the action.

Related: #36. The global shell bridge also needs the companion core fix (Termix-SSH/Termix#1778) to expose its existing editHost callback; this plugin change fixes the separate ID gate.

Validation: regression tests failed on the original implementation for saved string IDs and invalid numeric IDs. Fresh npm ci, all 651 tests, typecheck, build, manifest validation, pack and formatting passed. The SDK lockfile is synchronized with its existing declaration. Native macOS desktop acceptance has not been performed.

@termix-triage-bot

Copy link
Copy Markdown

AI review | Looks safe to merge

The change parses string host IDs from the shell into numbers to enable the edit host action for saved hosts, while safely rejecting invalid or quick-connect identifiers. No security or stability risks are present.

Reviewed c2e8433. AI can be wrong, a maintainer still decides. Comment /termix review to run it again.

@LukeGus
LukeGus merged commit a357149 into Termix-SSH:dev-1.4.0 Nov 7, 2026
2 checks passed
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.

2 participants