Skip to content

fix(polkit) Attribute polkit prompts to coding agents - #9550

Open
tcballard wants to merge 1 commit into
omacom:quattrofrom
tcballard:quattro
Open

fix(polkit) Attribute polkit prompts to coding agents#9550
tcballard wants to merge 1 commit into
omacom:quattrofrom
tcballard:quattro

Conversation

@tcballard

Copy link
Copy Markdown

What this is

When Quattro's themed polkit dialog opens for a pkexec that came from the default coding-agent window (org.omarchy.agent), the chip changes from Authorize running 'cmd' to Codex wants: 'cmd'.

Same PAM flow. One-shot grant. No NOPASSWD. Not a sudo askpass (see #5617).

Quickshell's Polkit AuthFlow does not expose subject PID, and UWSM names the agent scope after xdg-terminal-exec, so this attributes via a live pkexec parent walk to Hyprland class org.omarchy.agent. Slug from OMARCHY_AGENT if set, else ~/.config/omarchy/defaults/agent.

Test: ./test/shell.d/polkit-test.sh. Manual: omarchy agent then pkexec true vs a normal terminal, and Settings polkit while an agent window is open (should stay stock).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant