Repository navigation
A DEV or TEST tag on a Debug build's Dock icon - #8
Merged
Merged
Conversation
A Debug build in the Dock looked like the installed Kaern beside it, and so did a flow check's test instances, a few at a time. Now a Debug build draws a tag on the top right of its Dock icon: an orange DEV on a build you run yourself (build_and_run.sh, Xcode), a purple TEST on an instance of a test session (-KaernSessionFile: the flow checks, checks/launch.sh). DockTag sets the Dock tile's content view (NSDockTile.contentView, a public AppKit API since macOS 10.5) to the app's icon with the tag drawn in the icon's 1024-unit grid, the tag and its shadow inside the canvas. A shadow's blur and offset are in device pixels, so they are scaled with the drawing: unscaled, a small tile's shadow spread past the canvas and was cut off at its edge. Only the Dock tile changes: the app's icon, which the alerts drawn in the window show, stays as it is. All of it is in #if DEBUG; a Release build has none of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dump's driver section has dockTag (the tag DockTag installed), and `dockTile <path> [dev|test]` writes the Dock tile's drawing as a PNG at twice the tile's size: this instance's, or the named tag's. t_isolation checks that a test instance shows TEST and keeps a picture of each tag in shots/; the checks' README says what the tags are. t_isolation passed, and the tiles it pictured read clearly at 58 pt and 105 pt (the Dock's size and its magnified size on this Mac), in a light and a dark Dock. The Release build (script/release.sh --unsigned) compiles without any of it. The full suite: 52 of 52. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A Debug build's Dock icon now has a tag on its top right corner: an orange DEV on a build you run yourself, a purple TEST on a test instance of the flow checks. Release builds are unchanged.
Why
Change
DockTagsets the Dock tile's content view (NSDockTile.contentView, public AppKit API since macOS 10.5) to the app's icon with the tag drawn on it, in the icon's 1024-unit grid. DEV without a session file (build_and_run.sh, Xcode), TEST with-KaernSessionFile(the flow checks,checks/launch.sh).#if DEBUG.dockTag, anddockTile <path> [dev|test]writes the tile's drawing as a PNG.t_isolationchecks that a test instance shows TEST and keeps a picture of each tag inshots/. The checks' README says what the tags are.Checked
script/release.sh --unsigned) compiles without any of it.🤖 Generated with Claude Code