Skip to content

alexandroheredia/opencode-last-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode-last-activity

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.

Demo

opencode-last-activity-demo.mp4

Features

  • shows active now while work is happening
  • shows last activity 8s ago when the session is idle
  • shows waiting on permission and waiting on question when input is blocked
  • shows possibly stalled 2m ago when the session stays busy without recent activity
  • optional compact mode for tighter prompt layouts

Install

Install the package with OpenCode:

opencode plugin @alexandroheredia/opencode-last-activity

Then quit and restart OpenCode.

Manual Config

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
      }
    ]
  ]
}

Options

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.

Label Examples

Full mode:

  • active now
  • last activity just now
  • waiting on permission
  • waiting on question
  • retrying 12s ago
  • possibly stalled 3m ago

Compact mode:

  • active
  • just now
  • permission
  • question
  • retry 12s ago
  • stalled 3m ago

Contributing

Development setup and local testing notes live in CONTRIBUTING.md.

About

OpenCode TUI plugin that shows a relative last-activity indicator in the session chat box so you can tell whether the current session is active, waiting, retrying, or possibly hung.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors