Repository navigation
Draw bot mascots from art the apps ship with - #1513
Merged
Merged
Conversation
The Mac and iOS apps drew every mascot from the machine: the Rive file, its color values and the loading stills were all fetched per server, so on a cold launch with no machine connected the Bots list showed no mascots, and while they loaded the list showed a server-rendered image laid out at the Rive canvas's size, zoomed in and cut off at the feet. CodevisorUI now bundles mascot.riv and the Rive color table, exported from packages/bot-mascot by `bun run mascots:export-art` (a script test fails while the copy is stale). The apps compute the Rive values themselves, and render stills with Rive into a disk cache keyed by the art's version, so a bot's mascot draws on the first frame from its cached look alone. The loading still is the same Rive pose in the same frame as the live figure, and it stays until the canvas has shown a frame, so the handoff doesn't jump or blink. A look from a newer server draws the parts this app knows; unknown items are left out until the app updates. The server's art routes stay for older apps. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 27, 2026
dylanplayer
added a commit
that referenced
this pull request
Nov 28, 2026
#1513 gave CodevisorUITests its own resources (Fixtures), so the test target now has its own Bundle.module. The mascot symbol test's `bundle: .module` stopped meaning CodevisorUI's bundle and looked the symbols up in the test bundle, which has none, failing checks-swift on every merge since. The apps were never affected: CodevisorSymbol loads from CodevisorUI's own bundle, which still has all four symbols. The test now draws each symbol through CodevisorSymbol.nsImage, the same lookup the app uses. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
The Mac and iOS apps drew every mascot from the machine: the Rive file,
its color values and the loading stills were all fetched per server, so on
a cold launch with no machine connected the Bots list showed no mascots,
and while they loaded the list showed a server-rendered image laid out at
the Rive canvas's size, zoomed in and cut off at the feet.
CodevisorUI now bundles mascot.riv and the Rive color table, exported from
packages/bot-mascot by
bun run mascots:export-art(a script test failswhile the copy is stale). The apps compute the Rive values themselves, and
render stills with Rive into a disk cache keyed by the art's version, so a
bot's mascot draws on the first frame from its cached look alone. The
loading still is the same Rive pose in the same frame as the live figure,
and it stays until the canvas has shown a frame, so the handoff doesn't
jump or blink. A look from a newer server draws the parts this app knows;
unknown items are left out until the app updates. The server's art routes
stay for older apps.
Co-Authored-By: Claude Opus 5.5 [email protected]