You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add RequestAttention DBus method for tabs needing input
Long-running interactive programs in a tab (notably AI agents) can now
ask the terminal to flag the tab when they need user input. This reuses
the existing tab-state + freedesktop-notification plumbing used for
process completion: a new TabState.ATTENTION shows a
dialog-question-symbolic icon and sets Adw.TabPage.needs_attention,
and the indicator clears when the user focuses the tab.
Triggered from the tab via:
dbus-send --type=method_call --session \
--dest=io.elementary.terminal /io/elementary/terminal \
io.elementary.terminal.RequestAttention \
string:"$PANTHEON_TERMINAL_ID" string:"reason"
DISTRIBUTORS: depending on the policy of your distribution, either inform the user about this via the default mechanism for your distribution (for DIY distros like Arch), or add that line to `/etc/zshrc` automatically on installation (for preconfigured distros like Ubuntu).
41
+
42
+
## Attention Requests
43
+
44
+
Long-running interactive programs (for example AI agents) can ask the terminal to flag a tab when they need user input. The terminal marks the tab with an attention indicator and a `dialog-question-symbolic` icon, and posts a desktop notification if the window is not focused or the tab is not selected. The indicator clears automatically when the user focuses the tab.
45
+
46
+
Each tab exports its identifier as `PANTHEON_TERMINAL_ID`. A program can request attention with a single DBus call:
0 commit comments