feat(tab): add session lock and SecureCRT-style connection status badges - #89
Merged
feigeCode merged 2 commits intoAug 21, 2026
Merged
Conversation
- Session lock: password prompt (kept in memory, SHA-256 hashed), lock/unlock via tab context menu, 'Lock All Sessions' / 'Hide Output' options, and input gating so locked terminals reject keystrokes until unlocked. - Connection status badges (SecureCRT-inspired): connected = plain green check, disconnected = red circle with white bar, connected+locked = combined green check with yellow lock overlay at bottom-right. Rendered after the tab type icon with tooltips for both regular and pinned tabs. - Locked tabs cannot be closed via the X button; close_tab central guard blocks it and surfaces a notification prompting the user to unlock first. - Terminal reports connection state (mapped from PTY/connection status, read-only surfaces show no badge) and emits StateChanged on transitions; SFTP uses a connection-state helper with the same transition semantics.
Owner
|
感谢贡献 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #[issue number]
Description
Describe in English for the changes made in this pull request and the problem it solves.
Please keep 1 PR to solve 1 problem, and keep Small improvements should be small modifications to make PR easier to review and to merge.
Screenshot
Break Changes
Describe any breaking changes introduced by this pull request. If none, remove this section.
How to Test
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist
cargo runfor story tests related to the changes.