Skip to content

Tint input window background while agent is active#220

Open
conornash wants to merge 2 commits into
dnouri:masterfrom
conornash:tint-input-background
Open

Tint input window background while agent is active#220
conornash wants to merge 2 commits into
dnouri:masterfrom
conornash:tint-input-background

Conversation

@conornash
Copy link
Copy Markdown
Contributor

This is a weird one but I found it really helpful. When I have a lot of Emacs frames open, each with a different pi process, I want to be able to see at a glance which ones are still waiting for an agent to finish (usually using macOS Exposé). This patch has been the simplest way to do so. Happy to make modifications.

Conor Nash added 2 commits June 5, 2026 23:15
Uses face-remap-set-base on the default face so the entire window
including empty regions gets a visible lighter tint when the
activity phase is anything other than idle.  The tint is removed
immediately when the phase returns to idle.

The blend shifts 18% (dark) / 12% (light) toward neutral grey,
producing a clearly visible but non-distracting background change.
The defvar-local for pi-coding-agent--input-buffer was placed at line
942, after its first reference in pi-coding-agent--update-input-activity-indicator
(line 427), causing a byte-compile error:
  Error: reference to free variable 'pi-coding-agent--input-buffer'

Move the declaration up alongside the related --input-activity-tinted
var so it precedes all uses.
@conornash conornash force-pushed the tint-input-background branch from 8851aa1 to 85e2e57 Compare June 5, 2026 23:14
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