GeezerVison is showing github.com — feat(desktop): show session status on Windows taskbar progress bar by Hona · Pull Request #65317 · anomalyco/opencode
Conversation
Hona
commented
Nov 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Screenshots
The app's own taskbar button, cropped at 3x. Captured on a taskbar docked at the left edge, where Windows draws progress as a pill on the button's edge; on the default bottom taskbar the same states appear as the usual bar under the icon. The app shows as "Electron" with Electron's icon because it is an unpackaged dev build.
| State |
Before |
After |
| Idle |
 |
 |
| Working (clip) |
 |
 |
| Waiting on a permission |
 |
 |
| Waiting on a question |
 |
 |
| A failed run, not viewed yet |
 |
 |
| The failed run viewed (window focused, so the button is highlighted) |
 |
 |
| One session working, another waiting |
 |
 |
| Permission answered, the other still working |
 |
 |
| Two windows: one waiting, one working |
 |
 |
What sets each state: a session in one of the window's tabs running (animated); a permission or question waiting (yellow); a run that failed and hasn't been viewed (red). Waiting wins over a failure, and a failure over running. Viewing the failed session or answering the request clears it.
Issue for this PR
No linked issue. Ported from the native Rune desktop build (anomalyco/rune-desktop, apps/desktop/src/workspace/windows/taskbar.rs).
Type of change
What does this PR do?
Shows each window's open-tab session status on its Windows taskbar button using Electron's BrowserWindow.setProgressBar, with no feature flag (Windows-only shell integration):
- Amber (
paused, progress 1) while any unmuted tab waits on a permission or question.
- Red (
error, progress 1) when an unmuted tab finished with an unseen failure.
- Indeterminate (
indeterminate, progress 2) while a session in the window is running.
- Cleared (
none, progress -1) once all sessions are idle and read.
Main remembers the last mode each window applied (a WeakMap), so an idle launch makes no setProgressBar call and a repeated mode makes no extra shell call.
macOS and Linux behaviour is unchanged: the main-process handler exits immediately unless process.platform === "win32", and the renderer effect is gated on platform.os === "windows".
How did you verify your code works?
bun test src/main/windows/taskbar-progress.test.ts (7 pass): the priority order (paused > error > indeterminate > none), no call on an idle launch, repeats skipped, and no call on darwin or linux.
bun typecheck and bun run typecheck:tsc in packages/desktop; bun typecheck in packages/app.
bun run lint:changed origin/dev: 0 problems across the changed files.
- Checked on a real Windows taskbar, before and after, for every state in the table above.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Added by the opencode bot (AI-generated).
Related: #62042
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sound. I couldn't verify it live because it needs the desktop app on Windows. The new tests pass (12/12) and tsc -b is clean in packages/desktop. In packages/app, npx tsc -b printed no errors, though it may not have used the repo's TypeScript. I read through the renderer hook and the main-process wiring and found nothing that blocks a merge. The macOS and Linux guards are on both sides.
Public API: unchanged. The only addition is an internal desktop call between the window and the main process (WindowSetTaskbarProgress).
One suggestion: the per-window state machine and its test could be much smaller (see inline comment).
Related: #62042
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…stead of a state machine
Uh oh!
There was an error while loading. Please reload this page.
T3rm1
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Any plan to add indicators for the TUI? Windows Terminal displays the title of the application, which is "OC | <session title>". It would be helpful to have each state represented by a symbol or charactger, e.g. "[...]" for busy, [!] for user input required, and [✓] for done. I currently have this via a plugin that I wrote but it would be nice to have this baked in.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|