Skip to content

fix(cli): --window no longer brings Programa to the front (INC-488) - #542

Merged
arzafran merged 1 commit into
mainfrom
franco/inc-488-cli-window
Nov 4, 2026
Merged

arzafran merged 1 commit into
mainfrom
franco/inc-488-cli-window

Conversation

@arzafran

@arzafran arzafran commented Nov 4, 2026

Copy link
Copy Markdown
Member

The global --window flag used to send window.focus before every command. That raised and activated the app, which breaks the rule that CLI commands never steal focus.

Now the CLI checks that the window exists and routes the command to it with window_id, unless the command already names a workspace, surface or tab.

Also new: --password-stdin reads the socket password from stdin so it stays out of ps. --password still works, and its help text now warns about ps.

Intentional test contract change in tests/test_cli_registry_behavior.py: --window W ping now sends window.list then system.ping instead of window.focus.

Known gaps: current-window and tree ignore --window, because their handlers don't take window_id yet. Not checked against a running app.

Fixes INC-488

@arzafran
arzafran merged commit 44894eb into main Nov 4, 2026
12 checks passed
@arzafran
arzafran deleted the franco/inc-488-cli-window branch November 4, 2026 22:12
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.

1 participant