Repository navigation
Show bot cards and applets on the phone - #53
Merged
Merged
Conversation
TheAnimatrix
force-pushed
the
feat/bot-cards-applets
branch
2 times, most recently
from
December 1, 2026 06:07
0fcc4bd to
b1b349f
Compare
TheAnimatrix
force-pushed
the
feat/bot-cards-applets
branch
from
December 1, 2026 07:44
8dee8ab to
8a79b7b
Compare
TheAnimatrix
marked this pull request as ready for review
December 1, 2026 07:44
TheAnimatrix
force-pushed
the
feat/bot-cards-applets
branch
from
December 1, 2026 07:53
8a79b7b to
b2f853d
Compare
Collaborator
Author
|
Screens from the demo walk (Android emulator, Ledger bot chat).
Dark: the progress applet, and how a page's own error is shown (this run had a bug in the demo chart, since fixed in 10f871a): |
TheAnimatrix
force-pushed
the
feat/bot-cards-applets
branch
from
December 1, 2026 08:15
10f871a to
eb32932
Compare
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.





Bot cards and applets now show on the phone instead of placeholders.
Cards
A bot's
show_cardcards, and the ones Mousse adds, are drawn natively from their data with new UI-library parts (ShowCards.kt,ShowCards.swift) on the design tokens, matching desktop'sBotCards.tsx:code, bold and link words styled, as desktop'sCardValue)A revised card comes back as the same message, so it replaces the old one. A card of a kind the phone doesn't know still shows the "open it on your computer" placeholder.
Applets
Shown the way desktop hosts them (
shared/appletDocument.ts), with the page built in the shared core:--bg-primary,--accent, …) from the phone's own light or dark colours, text size and Reduce Motion; a theme change reaches a running page without reloading itwindow.mousseApplet: data, state, saveState, resize, reportError, requestConversationInput, icon, iconNames, appearance. Reports go through the web view's bridge, and the core checks each one (size limits, clamped heights).about:blankload allowed, no new windows, and reports taken only from the main frame.bots.applets.get/bots.applets.state.get/bots.applets.state.savefor bot chats, androuted.applets.get/routed.applets.state.get/routed.applets.state.savefor threads. Bot sources are read in pages and checked against their SHA-256. A source is kept in the bounded media cache by revision, so an applet still opens while its computer is away (shown as the phone's copy, with saves held). A save goes out once, 0.8 s after the page settles. A thread save carries a request ID.presentationParts, and theirmousse-appletfences are cut from its words.Tests