Repository navigation
fix(mobile): frame app icons full-bleed for ios and android - #427
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/mobile-icon-framing
branch
from
November 9, 2026 17:47
01f8ede to
22d260a
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 9, 2026
Bot composer text was held by the mounted component, so leaving Bots could discard the message. Bot drafts now live in the owner's gateway database and restore on web, desktop and mobile. Bot chats also accept images and deliver them to the official worker harness. - Persist text, structured mentions, quotes/comments and uploaded image metadata with revision checks. Keep pending uploads through navigation, preserve failed sends and their request IDs, and clear only the acknowledged draft revision. - Reuse attachment uploads, configured file/count/message limits, thumbnails and viewers. Web/desktop support paste, drop and Attach images; mobile uses the existing paste/photos/files intake. This scope supports PNG, JPEG, GIF and WebP only; other file types can follow. - Deliver verified, normalized images as native Claude SDK, Codex app-server and Grok ACP image parts. Bots gain no filesystem tools. Resumed sessions receive current images; rebuilt sessions also receive bounded historical images, with a note for omissions. Preserve #429's Canopy MCP approval override on Codex start/resume, Grok MCP allow rule, actionable failures and shared approval labels; gateway authorization remains authoritative. - Add `bot_images_v1` and `remote_bot_composer_v1` capability gates. Linked draft/upload/send operations remain owner-scoped. Moving a bot preserves its draft, images and thumbnails; an older destination is refused before cut-over. - Add migration `0102_bot_composer` (latest dev migration was 0101 when opening this PR), additive RPC/fields and generated contracts. Polish docs cover persistence, native delivery, schema and mobile behavior. Validation: `bun install --frozen-lockfile`, `bun run typecheck`, `bun run lint`, `bun run format:check`, `bun run gen:check` and `bun run --filter @canopy/web build` passed. Focused tests rerun on dev ecb20e4 (#429): 52 passed across bot-composer, bots-harness-context, bots-harness-approvals, worker isolation/Grok transcript and DB schema (282 assertions). The official Codex MCP approval regression also passed (4 assertions). The bot computer-move case was previously verified during implementation (20 assertions). Coverage includes restart durability, structured draft CAS and lost acknowledgements, send idempotency, owner scoping, MIME/size/count limits, active-turn blob authorization, all three native image adapters, resume/rebuild and historical image limits. The move case also exercises draft/upload/send through a linked computer. Manual browser check used an isolated gateway with the fake Codex harness: Threads/Bots navigation, full reload, picker, clipboard/drop events, dropping on an existing chip, uploaded draft restoration, send/clear, message thumbnails and viewer. The harness recorded five native image parts across two sends. Checked light/dark at desktop and phone widths, including long filenames; no console errors. No UI tests were added. Native device UI and live provider accounts were not exercised. Mobile changes are JS/TS only. Both `bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive` results match current dev (ecb20e4, including #427/#428/#429): - iOS: `6ddec9ef559ee0095ac33e94ff9418a942053b17` - Android: `5f6eae3ab278f1cd543e9ed763f923a319b65ec9` Full `check:tmp` was intentionally left to CI as requested for the shared machine. An upload still in progress when the application closes must be added again; completed uploads are durable. Copy audit (§8): “Attachments are coming soon” → “Attach images” for the implemented action; new “Drop images to attach” describes the supported intake; “Load saved draft” names the recovery result. Conflict copy tells the user to copy edits before loading the saved version; upload/send errors explain recovery. Labels use English sentence case and action verbs, existing attachment terms and limits are reused, and controls have text/accessibility labels independent of icons or colour. No new empty states or decorative sentences. Short, typical and long filenames were checked at desktop and phone widths. Related: #398, #421
This was referenced Nov 13, 2026
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 nightly iOS icon placed the complete rounded desktop artwork inside a second scene, producing two frames, two moons and an undersized tree. Generate mobile artwork directly from the bare, channel-graded tree: opaque 1024×1024 RGB iOS scenes with a 70%-width tree, Android foregrounds reduced 14% from the 66 dp safe-circle fit on the 108 dp canvas, leaving at least 8% of the visible mask diameter between the tree and every edge, and decoration placement that clears both the tree and launcher masks.
Add the Android 13+ monochrome layer through Expo's existing config support. Splash screens now use the bare tree on the channel background in light and dark mode. Desktop icons, favicons and other web artwork remain byte-for-byte unchanged.
Native release: these assets and config change the runtime fingerprint. The icons and splash arrive with the next native build triggered by the release pipeline; OTA cannot update existing launcher icons. No EAS builds were run.
Fixes: #424
Validation:
bun install --frozen-lockfileandbun run gen:checkpassed.bun test scripts/channel-identity.test.ts: 3 passed, including RGB/no-alpha iOS output, tree scale/placement, Android visible-mask margins and moon clearance, monochrome alpha and all EAS channel profiles.bun run typecheck,bun run lintandbun run format:checkpassed.bun run --filter @canopy/web buildpassed; regeneration was byte-for-byte identical by SHA-256.CANOPY_CHANNEL={nightly,beta,stable} bunx expo config --type publicresolved each channel's icon, adaptive layers and bare-tree splash. Full localcheck:tmpwas intentionally omitted on the shared machine; CI remains the full-suite gate. No UI tests.Reproduce assets and simulated mask previews with
bun scripts/icons/channel-icons.ts --previews <directory>. Local preview artifacts (outside the repository):/var/tmp/canopy-mobile-icons/mobile-previews.html— overview./var/tmp/canopy-mobile-icons/{nightly,beta,stable}-ios-{1024,180,120,87,60}.png./var/tmp/canopy-mobile-icons/{nightly,beta,stable}-android-{circle,squircle,rounded-square}.png./var/tmp/canopy-mobile-icons/iphone-home-row.pngand/var/tmp/canopy-mobile-icons/testflight-large.png./var/tmp/canopy-mobile-icons/expo-config-{nightly,beta,stable}.txt— resolved Expo configs.Copy audit: no user-facing app text changed. The mask images are simulated previews, not device screenshots.