anomalyco / anomalyco/opencode

[FEATURE]: keep a history of TUI toast notifications

Open
#50,082 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature request: keep a history of TUI toast notifications

Problem

Toasts in the TUI are single-slot: a new toast replaces the previous one, and they disappear after about 5 seconds. There is no way to review a notification once it is gone. During long agent runs, provider errors, rate limits, MCP alerts and plugin failures are frequently missed.

Proposal

Keep a bounded notification history and make it reviewable (e.g. a dialog plus keybind) with timestamp, variant and full message. Persisting the same entries to a log file would be a nice bonus.

Notes

  • tui.toast.show and session.error are already published on the server event bus, so a server plugin can capture those as a workaround — I published a small one here: https://github.com/LouisLau-art/opencode-toast-history
  • However, toasts that the TUI renders locally (without a corresponding server event) are not observable from plugins, so full coverage needs a core change. That is why I am filing this.
  • Happy to help if you can point at where this should live (the toast store already keeps the current toast; a small ring buffer would probably be enough).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the TUI toast store and the tui.toast.show and session.error events on the server event bus, including locally rendered toasts. Define a bounded history that can be reviewed through a dialog and keybind, showing each notification's timestamp, variant, and full message; verify that older entries are evicted and notifications remain reviewable after dismissal.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.