OpenCode TUI plugin that shows a relative last-activity indicator in session_prompt_right so you can tell whether the current session is active, waiting, retrying, or possibly stalled.
opencode-last-activity-demo.mp4
- shows
active nowwhile work is happening - shows
last activity 8s agowhen the session is idle - shows
waiting on permissionandwaiting on questionwhen input is blocked - shows
possibly stalled 2m agowhen the session stays busy without recent activity - optional compact mode for tighter prompt layouts
Install the package with OpenCode:
opencode plugin @alexandroheredia/opencode-last-activityThen quit and restart OpenCode.
If you prefer to edit tui.json directly:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
[
"@alexandroheredia/opencode-last-activity",
{
"compact": false,
"activeWindowMs": 5000,
"stalledWindowMs": 60000
}
]
]
}| Option | Type | Default | Description |
|---|---|---|---|
compact |
boolean |
false |
Uses shorter labels such as active, 2m ago, and stalled 2m ago. |
activeWindowMs |
number |
5000 |
Age threshold that still counts as active. |
stalledWindowMs |
number |
60000 |
Age threshold for switching a busy session to stalled. |
If stalledWindowMs is set lower than activeWindowMs, the plugin automatically pushes it above the active window so labels stay sane.
Full mode:
active nowlast activity just nowwaiting on permissionwaiting on questionretrying 12s agopossibly stalled 3m ago
Compact mode:
activejust nowpermissionquestionretry 12s agostalled 3m ago
Development setup and local testing notes live in CONTRIBUTING.md.