Repository navigation
fix(gpui): honor CLI --hold for the launched terminal pane - #1102
Open
Aschenbath wants to merge 1 commit into
Open
Aschenbath wants to merge 1 commit into
Aschenbath wants to merge 1 commit 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.
Result / 用户结果
pebrel --hold -e cmd.exe /c echo hellonow keeps the GPUI pane and its output after the child exits. Ordinary launches still close, and the retained pane can be closed explicitly. Fixes #1098.Design / 设计边界
--holdlaunches one configured terminal instead of restoring a saved workspace; it bypasses ordinary resident handover, whose public Runtime API has no hold field.holdin elevated wire requests defaults to false; false is omitted when serializing. Old receivers reject a true flag instead of silently accepting the wrong lifetime. Hold cannot be combined with update-restoration requests.architecture/notes/pebrel_app/gpui_shell/workspace/windowing/2026-11-25-cli-hold-lifetime.md.Evidence / 验证依据
On Windows x64, Rust 1.97.1, base
76f74be1:--features gpui-test-support), serial execution: windowing 56 passed, 1 ignored; terminal activity 16 passed; elevated handover 6 passed. These cover CLI propagation, retained painted output, success/nonzero exits, Runtime exit records, explicit close, ordinary-pane isolation, elevated reuse and wire compatibility.cmd.exe /d /cscript prints a marker and exits. Without hold the process exits successfully; with hold it remains open andpebrel ctl readreturns the marker. Runtime snapshot includes the exit event, andctl close-windowcloses the retained pane/window and exits the process successfully.python scripts/check_architecture.py --base 76f74be1and the three required governance unittest modules: passed (62 tests), without budget changes.cargo test --manifest-path tools/i18n-contract/Cargo.toml --locked: 24 passed, 1 ignored;cargo test -p pebrel-settings --locked: 110 passed;cargo test -p pebrel --test file_line_budget --locked: 2 passed.cargo fmt --all -- --check,cargo check -p pebrel --bin pebrel --features gpui-shell --tests --locked, andcargo build -p pebrel --bin pebrel --features gpui-shell --locked: passed. Existing compiler warnings remain.The full application suite and Linux/macOS native execution were not run locally. Elevated reuse has GPUI/wire coverage; real UAC cross-process forwarding was not exercised. No new controls or UI strings were added; the real probe checks retained terminal output and explicit closure, not a complete DPI/theme visual matrix. Hosted CI and maintainer review remain separate requirements.
Required Review / 必须确认
CONTRIBUTING.md, architecture and project constraints.