Repository navigation
feat(terminal): add secure keyboard entry - #357
Merged
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Summary
Add optional Secure Keyboard Entry to protect keyboard input while a terminal has focus. Protection follows Ghostty, Alacritty, and Quick Terminal, pauses when terminal focus ends, and releases on quit. The native menu reflects active, paused, and failure states; the choice resets on the next launch.
Document the behavior in all 17 supported languages and cover Carbon ownership, focus changes, menu actions, and application termination with targeted fixtures.
@coderabbitai summary
GitHub Project
PR Type
Validation
Status: passed
Command: xcodebuild -project mac/zshell.xcodeproj -scheme zshell -configuration Debug -destination 'platform=macOS,arch=arm64' -derivedDataPath mac/build/debug ENABLE_USER_SCRIPT_SANDBOXING=NO build; codesign --verify --deep --strict --verbose=2 'mac/build/debug/Build/Products/Debug/zshell Debug.app'
Result: Debug build succeeded and the resulting app signature passed strict verification.
Status: passed
Command: python3 -B mac/tests/test_secure_keyboard_entry.py
Result: 25 lifecycle, failure, ownership, and Carbon checks passed in an independent parent-agent run.
Status: passed
Command: python3 -B mac/tests/test_secure_keyboard_entry.py --built-app 'mac/build/debug/Build/Products/Debug/zshell Debug.app' --backend libghostty
Result: 49 real AppKit/Carbon checks passed for Ghostty, including Quick Terminal, focus release, and termination.
Status: passed
Command: python3 -B mac/tests/test_secure_keyboard_entry.py --built-app 'mac/build/debug/Build/Products/Debug/zshell Debug.app' --backend alacritty
Result: 50 real AppKit/Carbon checks passed for Alacritty, including Copy Mode, the source editor, nonactivating Quick Terminal, failure recovery, and application termination.
Status: passed
Command: cd web && bun run typecheck && bun run build && bun test
Result: Typecheck and production build passed; 51 tests passed. All 17 generated terminal documentation pages contain the Secure Keyboard Entry section.
Status: passed
Command: python3 -B mac/tests/test_app_localization.py; git diff HEAD --check
Result: Both localization checks passed; added catalog strings include all 17 supported languages; no whitespace errors.
Status: not run
Reason: CI was not awaited, as requested by the maintainer. Local build and behavior checks are recorded above.
Risk and Rollback
Related Issue
None
AI Attribution