The docs hero is sometimes drawn before the system pill's first reading
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
調査の方向性
Start with Sources/StableBar/DocsImages.swift, especially DocsImages.snapshot and its readiness check, then trace how the system widget’s first output reaches the bar presentation. Reproduce with taskpolicy -b StableBar --render-docs-images DIR and compare repeated docs/hero-dark renders. Done when every widget shows its sample output before capture and repeated renders produce the same pixels.
索引モデルが issue の本文から書いたものです。
説明
What happens
docs/hero-dark is sometimes drawn before the system pill's first reading reaches the bar. The pill then shows … and …% instead of the sample's 18% and 54%. The pill is narrower, so the bar's right end and the calendar popup under it sit further right than in a good drawing.
When it happens in Draw main's screens, every pull request based on that commit gets a false changed screen in its before/after comparison. A maintainer has to tell it apart from a real change before adding visual-ok. The Docs images job draws the same image, so a stable release could also commit a README hero showing … …%.
Steps to reproduce
Seen on CI only, twice so far (2026-11-01 and 2026-11-18):
- A push to
mainruns Draw main's screens (StableBar --render-docs-images). - A pull request based on that commit draws its own docs images and compares them with
main's. - One side's
hero-darkhas… …%in the system pill; the other side has18%and54%.
taskpolicy -b StableBar --render-docs-images DIR, run a few times, may reproduce it locally by slowing the drawing down.
Expected
The docs images wait until every widget on the bar shows its sample output, so two runs of one commit draw the same pixels, as CONTRIBUTING's Docs images section says they do.
Environment
CI, macos-26 runner (Apple silicon, 3 cores), Xcode 26.6. main at 937c40e.
Evidence
- #793, which changes only CI files, reported one changed screen,
docs/hero-dark(151,469 pixels, region 954,12 · 807×525), comparingmainat 937c40e with the pull request at af3e727: https://github.com/Seb-GRAF/StableBar/pull/793#issuecomment-6962907256. The "before" image comes frommain's ownscreens-main-937c40e…artifact and shows… …%. The "after" image, drawn from the same app code, shows18%and54%. - #432 (2026-11-01) saw the same thing the other way round: "in
docs/hero-darkthe system monitor had its first reading on this run (18% and 54%) but not onmain's (…)".
Diagnosis
DocsImages.renderdraws the hero fromsampleStore(…)(Sources/StableBar/DocsImages.swift). Itssystem-monitorwidget is the"type": "system"widget setup adds (SetupPreferences.WidgetSet.system). The sample configuration defines asystemcommand provider that runs/bin/cat "$CONFIG_DIR/system.json", withinterval: 3600.DocsImages.snapshotpassesOffscreenSnapshot.writea readiness check and a fixed 3-second settle. The check waits until the sample workspaces exist and nostore.scriptsentry hasoutputNumber == 0.- The bad drawing shows the pill's placeholders, so that check, or the settle after it, didn't cover the pill's first reading. Either the system widget's output isn't among the
store.scriptsentries the check reads, or the reading arrived but the bar hadn't shown it within the settle on a busy runner. Which one is unverified. - A fix would wait on what the bar shows for each widget, for example its presentation having received an output, rather than on the time a settle allows.
Related
- #395 made the docs images draw the same on every run (fixed date, offline Store, sample app). This is a remaining source of difference between runs.
- #432 noticed the same difference in its description, but no issue was filed.
- #794 (draft) found the same kind of race in scenes, where a fixed settle ends before a view's data loads. This one is in the docs images and happens without parallel drawing.
Triaged by Claude Code (Claude Opus 5.5).
- 主要言語
- Swift
- スター
- 184
- フォーク
- 12
- 平均マージ
- 3時間 50分
- マージ済み PR(30日)
- 387
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Seb-GRAF/StableBar のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
Menu bar items drawn as in the menu bar show the wrong part of the menu bar after a display change対応中かも @Jonathanm10 が今日担当しました。 オープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
Allow the App Menu to display the frontmost app icon対応中かも @khatami10 が今日担当しました。 オープンenhancement needs-triage
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
Seb-GRAF/StableBar の issue をすべて見る
似ている issue
-
good first issue help wanted testing
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
area:cli documentation good first issue priority:low
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
isaaclins/freesnitch#430 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MasterJ93/ATProtoKit#354 ·
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
heysidhant/appvanish#4 ·
-
bug priority:low status:queued
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信