GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(desktop): show session status on Windows taskbar progress bar by Hona · Pull Request #65317 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Nov 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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 Before: idle After: idle
Working (clip) Before: working After: working, animated
Waiting on a permission Before: waiting on a permission After: waiting on a permission
Waiting on a question Before: waiting on a question After: waiting on a question
A failed run, not viewed yet Before: failed, not viewed After: failed, not viewed
The failed run viewed (window focused, so the button is highlighted) Before: failed run viewed After: failed run viewed
One session working, another waiting Before: working and waiting After: working and waiting
Permission answered, the other still working Before: answered, still working After: answered, still working
Two windows: one waiting, one working Before: two windows After: two windows

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

  • New feature

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.

All reactions
@Hona
feat(desktop): show session status on Windows taskbar progress bar
28c6bcd
opencodejr[bot]
opencodejr Bot reviewed Nov 21, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread packages/desktop/src/main/windows/taskbar-progress.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Hona
refactor(desktop): track the last taskbar progress mode per window in…
fc670c1
…stead of a state machine
@Hona
Hona merged commit 7f513b1 into dev Nov 21, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona deleted the win-taskbar-progress branch November 21, 2026 05:02
@opencodejr opencodejr Bot mentioned this pull request Nov 21, 2026
feat(desktop): show a count badge for sessions that need you on the Windows taskbar #65318
Merged
3 tasks done
@Hona Hona mentioned this pull request Nov 21, 2026
feat(desktop): flash the Windows taskbar button for requests that wait on you #65319
Merged
3 tasks done
@Edo771977 Edo771977 mentioned this pull request Nov 21, 2026
chore: merge upstream/dev into the fork Edo771977/opencode#98
Merged
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@T3rm1

T3rm1 commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@y-yaoyyy y-yaoyyy mentioned this pull request Nov 24, 2026
[FEATURE]: Desktop (Windows): option to disable the taskbar progress bar #66028
Open
1 task done
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@Hona @T3rm1
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.