Repository navigation
Disable session residency settings for private instances - #1095
Open
Aschenbath wants to merge 2 commits into
Open
Aschenbath wants to merge 2 commits into
Aschenbath wants to merge 2 commits into
Conversation
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.
Administrator and explicit separate instances cannot keep sessions resident after their window closes, but the settings switch still presents that behavior as available. Share the process capability query between the close path and settings. Display an off, disabled switch with a localized explanation for private instances while preserving the saved preference used by ordinary instances. Ordinary instances retain their mouse/keyboard interaction. Move the lifecycle section into its own settings module to keep responsibilities and file budgets clear; include the new settings fixtures in the existing nextest serialization group.
An ignored native fixture renders the real settings controls under an isolated config directory. Local captures in Chinese/Nord and English/Catppuccin Latte verify the disabled state, explanation layout and preserved preference.
Fixes #1082.
Validation: Focused ordinary/private UI tests and residency tests passed. Settings UI: 125 passed, 7 ignored; one existing mobile-control width assertion also fails on untouched baseline 76f74be at mobile/tests.rs:310. Native desktop captures passed for both explicit and elevation-based isolation. Formatting, architecture and governance checks, i18n contract, 110 settings tests, file budgets and the production gpui-shell cargo check all passed. The added private-instance regression fails on the original implementation. The workflow CI contract suite also passed (96 tests, one platform-specific skip), together with platform and architecture checks.
This change was prepared with AI assistance.