Skip to content

Disable session residency settings for private instances - #1095

Open
Aschenbath wants to merge 2 commits into
Kuddev:mainfrom
Aschenbath:fix/oss50-20261123-7728-pebrel-private-residency
Open

Aschenbath wants to merge 2 commits into
Kuddev:mainfrom
Aschenbath:fix/oss50-20261123-7728-pebrel-private-residency

Conversation

@Aschenbath

@Aschenbath Aschenbath commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

@Aschenbath
Aschenbath requested a review from Kuddev as a code owner November 23, 2026 13:53
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.

[Bug] 管理员/关闭 UAC 环境下已开启「关窗后保留后台会话」仍直接结束进程且设置页无禁用或提示

1 participant