Skip to content

Add a quit without confirm option#175

Merged
dnouri merged 3 commits intodnouri:masterfrom
sg-qwt:master
Mar 27, 2026
Merged

Add a quit without confirm option#175
dnouri merged 3 commits intodnouri:masterfrom
sg-qwt:master

Conversation

@sg-qwt
Copy link
Copy Markdown
Contributor

@sg-qwt sg-qwt commented Mar 27, 2026

It's a bit tricky to set-process-query-on-exit-flag (add advice like below?).

(defun my-pi-no-query-on-exit (orig-fn &rest args)
  (let ((proc (apply orig-fn args)))
    (when (processp proc)
      (set-process-query-on-exit-flag proc nil))
    proc))

(advice-add 'pi-coding-agent--start-process :around #'my-pi-no-query-on-exit)

Introduce a pi-coding-agent-quit-without-confirmation opt to allow closing pi sessions without the live-process confirmation prompt is much straightforward and simpler I think.

Or maybe we should respect the builtin confirm-kill-processes?

@dnouri dnouri merged commit 417c9e6 into dnouri:master Mar 27, 2026
11 checks passed
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.

2 participants