anomalyco / anomalyco/opencode

[FEATURE]: Taskbar state indicators - running / awaiting confirmation / completed

Open
#44,076 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 22, 2026.

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

Description

Feature hasn't been suggested before.
  • I have verified this feature hasn't been suggested before. Related but different scope than #43937 (see below).
Describe the enhancement

When OpenCode runs long tasks, users often switch to other windows while the agent works in the background. There is currently no way to tell from the taskbar alone whether OpenCode is still working, waiting for user confirmation (permission prompt / question), or has finished.

Requesting three distinct visual states on the taskbar icon:

State Visual Trigger
Running 🔄 spinning / indeterminate progress indicator agent actively working
Awaiting confirmation ⚠️ attention badge (e.g. exclamation mark) permission request or question pending
Completed ✅ done indicator (e.g. checkmark) turn finished

This lets users keep working in other windows and glance at the taskbar to catch state changes immediately, without switching back and forth.

Suggested implementation paths
  • Windows Desktop (Electron)
    • app.setProgressBar(win, { mode: 'indeterminate' }) → running
    • win.setOverlayIcon() → awaiting-confirmation / completed overlay badges
    • optional: win.flashFrame(true) when input is needed
  • TUI
    • Emit OSC 9;4 progress sequences so terminals like Windows Terminal map them onto the native taskbar progress ring (indeterminate = running; error/paused = needs attention); no-op on terminals without support
  • Linux
    • Unity launcher progress (launcher.setProgress()) and dock badging where available (libunity/DockManager); graceful fallback on DEs without support
  • (optional) macOS: app.dock.setBadge() + dock.bounce()
Related issues
  • #43937 — numeric count of sessions needing attention on the Windows taskbar. This request is broader/complementary: distinct tri-state visuals including running and completed states, across Desktop and TUI.
  • #24807 — terminal-native progress indicator (closed, related TUI side)

中文说明

当 OpenCode 执行长任务时,用户通常会切到其他窗口工作。目前无法仅凭任务栏判断 OpenCode 是正在运行、等待用户确认(权限请求/提问)还是已完成

希望任务栏图标呈现三种状态

状态 视觉表现 触发时机
运行中 🔄 旋转/不定进度指示 agent 正在工作
待确认 ⚠️ 醒目警示徽标(如感叹号) 权限请求或提问等待回复
已完成 ✅ 完成指示(如对勾) 本轮任务结束

这样后台跑任务时,瞟一眼任务栏即可掌握状态变化,前台工作完全不受影响。

实现建议见上方英文部分(Electron 任务栏 API / OSC 9;4 终端进度序列 / Linux launcher progress,均带优雅降级)。

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.