Skip to content

Self-improving AI Employees for everyone

76.5 KB
Raw Blame

Noodle Mobile: the iOS and iPadOS client

Noodle Mobile (Mobile/VERSION 0.24.0, released 2026-10-07) is a SwiftUI app for iPhone and iPad that joins one or more Noodle Hubs and chats with the bots and groups kept there. It is built as an iOS 26 Messages clone: a single NavigationStack (no split view, even on iPad), a plain list with pinned bots as large circles, a full-bleed per-conversation wallpaper behind a transcript of opaque bubbles, a Liquid Glass composer that sits level with the system search field and is overlaid on the transcript rather than pushing it, a Messages-style long-press "lift" overlay for reactions and actions, and a plus button that morphs into a Camera/Photos/Files panel. Around the chat sit Hub management (pairing by QR, diagnostics, users, devices), bot and group editors, tool/computer/browser assignment, voice messages transcribed on device, WebRTC voice calls, live views of shared browsers and computers, noodlets (small web apps a bot builds) run on the phone or streamed from the Hub, a TV mode that turns the phone into a game controller, and privacy-preserving push notifications. The app uses no custom colour assets: the accent is system blue, surfaces are iOS semantic colours, and every size below is a SwiftUI point value (1 pt = 1 CSS px at the default zoom).

Permalink base for every citation below: https://github.com/pdparchitect/noodle/blob/702339e3153025c9fe9582783caff7a19b48ff97/

2. Scope

Sources read in full (all of Mobile/Sources/**):

File Lines Covers
Mobile/Sources/NoodleMobile/Chats.swift 2653 Data model (HubChats), chat list (AgentsView), rows, pinned circles, chat screen (ChatView), bubbles, composer, bot and group editors, avatars
Mobile/Sources/NoodleMobile/HubScreens.swift 1102 Join screen, pairing sources, Help Me Connect, Hubs, Hub details, Archived, Users, Pair Device, QR scanner, Settings
Mobile/Sources/NoodleMobile/HubTools.swift 849 Tools/Computers/Browsers screens, New Tool catalogue, Custom MCP Server, Sharing, live surface screen, live-link kinds
Mobile/Sources/NoodleMobile/ChatContent.swift 845 Attachments, attachment layouts, link previews, pending-file chips, composer text view, @-mentions, Shared sheet
Mobile/Sources/NoodleMobile/VoiceMessages.swift 662 Recorder, recording bar, waveforms, voice-message player
Mobile/Sources/NoodleMobile/Calls.swift 563 Call state, WebRTC audio, call bar, call card, transcript blocks, voice picker
Mobile/Sources/NoodleMobile/Appearance.swift 488 ConversationBackdrop, BackgroundEditor, BotPictureEditor, PersonAvatar, PersonPictureEditor
Mobile/Sources/NoodleMobile/Noodlets.swift 332 Noodlet player, on-device runner, sound, orientation lock
Mobile/Sources/NoodleMobile/ExternalScreen.swift 294 TV output, TV button, controller list, TV game menu
Mobile/Sources/NoodleMobile/MessageActions.swift 219 Message text, long-press overlay, unsent-message actions
Mobile/Sources/NoodleMobile/Notifications.swift 168 CloudKit subscriptions, push registration, notification routing
Mobile/Sources/NoodleMobile/MessageTables.swift 157 Table card and sortable table sheet
Mobile/Sources/NoodleMobile/WordmarkRefresh.swift 84 Pull-to-refresh that draws the wordmark
Mobile/Sources/NoodleMobile/App.swift 61 App entry, join-link alert
Mobile/Sources/Shared/ReplyNotifications.swift 81 App group, push topics, notification content
Mobile/Sources/NoodleMobileNotifications/NotificationService.swift 37 Notification service extension

Also read: Mobile/README.md, Mobile/AGENTS.md and Mobile/CLAUDE.md (as data: they say releases go through TestFlight, the Xcode project is generated by Tuist from Project.swift, and every user-visible change must add a "What to Test" entry to CHANGELOG.md), Mobile/CHANGELOG.md (0.1.0 to 0.24.0, used to confirm behaviour and dating), Mobile/Project.swift, and two tests that pin values (Mobile/Tests/NoodleMobileTests/ComposerSizeTests.swift, MessageActionsTests.swift). Shared code consulted only for values the mobile UI shows: Shared/HubLink/Sources/HubLink/MessageTable.swift, Shared/HubLink/Sources/HubLink/LinkProtocol.swift, Shared/Wallpaper/Sources/NoodleWallpaperCore/ConversationBackground.swift, Shared/Surface/Sources/Surface/Gamepad.swift, Applet/Protocol/Sources/NoodletRuntime/Grants.swift, Applet/Protocol/Sources/NoodletFormat/Manifest.swift. Mac counterparts for the comparison table: Sources/Noodle/Components.swift, LongMessageText.swift, ChatView.swift, SidebarView.swift, TranscriptScrollView.swift.

Screenshots viewed (ground truth for appearance):

Screenshot Shows Caveat
website/assets/mobile-chats.png Chat list, light mode: no title, blue ••• top right, 8 rows with avatars, phase dots, relative times, chevrons Predates 0.23.0: no "All" space title menu
website/assets/mobile-new-bot.png Bot editor sheet (editing "Hugo"): glass Cancel/Save capsules, 88 pt avatar with "Edit", grouped form No navigation title (matches code); Kick/New Session section not visible
website/assets/mobile-new-tool.png New Tool sheet over the editor sheet: catalogue rows, floating bottom "Search tools" field Row names render in tint blue
website/assets/mobile-game.png A noodlet game in portrait: black screen, Done and a glass Controls/Keyboard capsule, on-screen d-pad and round buttons
.github/readme/mobile.png The four above side by side
.github/readme/hero.png The same chat list beside the Mac app Used for the Mac comparison

No screenshot shows the mobile conversation screen; everything about it below comes from code and the changelog.

3. Findings

3.1 Platform, shell and navigation

Platform. iOS 26.0 minimum, Swift 6, destinations .iOS (iPhone and iPad), one app target plus a notification service extension sharing an app group (Mobile/Project.swift:15, :40, :73-97). ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME is empty, so the accent is system blue (Project.swift:69; changelog 0.5.0 "Apple's system blue"). Background audio mode is on so calls survive a locked screen (Project.swift:53-54). URL scheme noodle for noodle://join-hub invitations (Project.swift:49). Permission strings: camera "Noodle takes photos you send or use as your picture, scans the QR code of a Noodle Hub invitation, and noodlets you open use the camera when they ask."; local network "Noodle connects to your Noodle Hub on this network."; microphone "Record voice messages you choose to send, transcribed on this device, talk with bots on calls you start, and let noodlets you open listen when they ask." (Project.swift:50-52).

Root. With no Hub joined the window shows JoinView; otherwise AgentsView for all joined Hubs (App.swift:21-27). An invitation link opened from outside the app asks first: alert "Join this Hub?", message "Hub key ", buttons "Cancel" / "Join" (App.swift:30-37); scanning or pasting inside the app joins straight away (changelog 0.4.0). The system pull-to-refresh spinner is made invisible app-wide (UIRefreshControl.appearance().tintColor = .clear, App.swift:16) because a custom wordmark replaces it.

No iPad layout. There is no NavigationSplitView, no horizontalSizeClass check and no userInterfaceIdiom branch anywhere in the app; the only iPad awareness is copy ("Show on iPad", "Run on iPad" via UIDevice.current.model, ExternalScreen.swift:80-81, HubTools.swift:693) and verticalSizeClass == .compact to go full screen in landscape for live views (HubTools.swift:663-666, Noodlets.swift:118, :138). On iPad the list fills the screen and a conversation is pushed over it, with bubbles limited only by a 48 pt opposite-side spacer.

Navigation model. One NavigationStack with a typed path of ChatLink { hub: String, thread: UUID } (Chats.swift:904, :962, :1019-1023, :1251-1255). Everything else is a modal: sheets (each with its own NavigationStack so sub-pages push inside them), fixed-height bottom sheets, and full-screen covers. A sheet chosen from another sheet opens only after the first is dismissed (chosen held, opened in onDismiss: Chats.swift:917-918, :1039-1044, :1234-1243; same pattern for pairing, HubScreens.swift:80-81, :115-123), so two sheets never animate at once.

Screen inventory

Screen Presentation Reached from Source
Join (wordmark + Pair) Root No Hub joined HubScreens.swift:11-67
Pairing sources Bottom sheet, 244 pt (184 without camera) Pair, Add Hub HubScreens.swift:425-475
QR scanner Sheet, full bleed Scan QR Code HubScreens.swift:1017-1048
Help Me Connect Sheet Join failure HubScreens.swift:235-351
Chat list Root of stack Joined Chats.swift:899-1244
More Bottom sheet, 292 pt ••• Chats.swift:1259-1282
Conversation Push Row or circle tap, notification Chats.swift:1431-1892
Bot editor (new or edit) Sheet More > New Bot; chat title; row menu Chats.swift:2077-2354
Group editor Sheet More > New Group; title; menu Chats.swift:2387-2543
Shared-bot background Sheet Title or menu on a bot shared with you Chats.swift:2371-2384
Bot Picture Push in editor Avatar "Edit" Appearance.swift:203-308
Voice Push in editor Voice row Calls.swift:487-563
Tools / Computers / Browsers Push in editor Rows HubTools.swift:208-296
New Tool, Custom MCP Server Sheet, then push + in Tools HubTools.swift:478-638
New Computer / New Browser Sheet + in Computers/Browsers HubTools.swift:400-475
Sharing Push in editor Sharing row HubTools.swift:300-380
Background Push in editor Background row Appearance.swift:97-200
Hubs Sheet More > Hubs HubScreens.swift:517-584
Hub details (profile) Push in Hubs Row or info button HubScreens.swift:587-684
Your Picture Sheet Avatar in Hub details Appearance.swift:341-488
Archived Sheet Hub details HubScreens.swift:687-724
Users, user Push Hub details (admins) HubScreens.swift:727-903
Pair a Device / Invite Sheet Hub details, user HubScreens.swift:939-1004
Settings Sheet More > Settings HubScreens.swift:1051-1102
Message lift overlay Full-screen cover, clear, self-animated Long press on a bubble MessageActions.swift:87-219
Shared Sheet … in conversation ChatContent.swift:793-845
Live surface / noodlet Full-screen cover Live card, Shared HubTools.swift:641-779, Noodlets.swift:15-288
Web preview Sheet (SFSafariViewController) Link tap ChatContent.swift:346-352
Table Sheet, medium/large Table card MessageTables.swift:42-72
Transcript (voice), Call transcript Sheet, medium/large Long press voice; tap call block VoiceMessages.swift:641-654, Calls.swift:460-473

3.2 Joining a Hub

Join screen. The Noodle wordmark is stroked full screen at a word width of 220 pt in .primary with round caps and joins; once per launch it is "written" with .easeInOut(duration: 3.4).delay(0.55), then the bottom controls fade and rise 12 pt with .easeOut(duration: 0.5).delay(4.05); Reduce Motion shows both at once (HubScreens.swift:24-31, :49-51, :54-65). The only control is a full-width "Pair" (.borderedProminent, .large) in a 24 pt padded VStack(spacing: 16) at the bottom (HubScreens.swift:32-49).

Pairing sources (bottom sheet, drag indicator, VStack(spacing: 12), padding 24, .large controls): "Scan QR Code" (qrcode.viewfinder, prominent, only where the camera scanner is supported), the system paste control at 50 pt high (UIPasteControl, icon and label, capsule, tint foreground on a 15 % tint background), "Choose Photo" (photo, bordered). Heights 244 / 184 pt (HubScreens.swift:425-475, :479-514). The paste control exists because a paste the person starts is always allowed while reading the clipboard from code is refused.

While joining the button area becomes a 50 pt capsule on .fill.tertiary with a spinner and "Connecting to …" (scales down to 0.7), "Still trying…" fades in above it after 4 s, and "Cancel" sits below (HubScreens.swift:143-169). In the Hubs list the same state is a row: spinner, Hub name, "Connecting…" or "Still trying…", borderless Cancel (HubScreens.swift:172-195). Failure shows a red exclamationmark.triangle label, or, when no address answered, the message in secondary and a bordered "Help Me Connect" (HubScreens.swift:198-232).

Help Me Connect probes each address kind in order and lists them under "Your Hub": "Home Wi-Fi", "Tailscale", "Internet", each answered by green checkmark.circle.fill "Answers" or secondary xmark.circle "No answer" (small spinner while checking). Then advice rows with their symbols: "You're offline. Connect to Wi-Fi or mobile data." (wifi.slash); "Noodle isn't allowed to look for your Hub on this network. Turn on Local Network for Noodle in Settings." (lock, with an "Open Settings" button); "Make sure you're on the same Wi-Fi as the Mac your Hub runs on." or "You're on mobile data. Join the same Wi-Fi as the Mac your Hub runs on." (wifi); "Away from that Wi-Fi? Open Tailscale and connect." (point.3.connected.trianglepath.dotted); "Your Hub answers now. Tap Try Again." (checkmark.circle); "Make sure the Mac your Hub runs on is awake and its Hub is open." (desktopcomputer). A prominent full-width "Try Again" is pinned in the bottom safe-area inset with 24 pt padding; "Done" top left (HubScreens.swift:244-350).

3.3 Chat list (AgentsView)

Anatomy on a 390 pt wide phone (values in points; sketch, not to scale):

+----------------------------------------------------------+
| status bar                                               |
|                 All v                         ...        |  inline bar; title = space menu; plain tinted ellipsis
|                                                          |
|    [note]          [note]                                |  note bubble 14 above the circle top
|     (76)            (76)            (76)                 |  pinned circles: 3 columns, gap 12, row gap 16
|     Name            Name            Name                 |  .caption, 1 line
|                                                          |  no separator under the circles or above row 1
| o  (48)  Name     Hub name       2 hr ago             >  |  unread dot 10 at x = 8; row leading inset 26
|          preview, .subheadline secondary, 2 lines        |  HStack spacing 12, vertical padding 4
|         -------------------------------------------------|  separator from the text column; none above row 1
|    (48)  Name                    1 day ago            >  |
|          ...                                             |
|                 [ Search ]                               |  iOS 26: floating glass field (inferred placement)
+----------------------------------------------------------+

Toolbar. Inline title mode with no title string. The principal slot is the space menu: Text(spaceTitle).font(.headline) plus chevron.down at .caption.weight(.semibold) in secondary, HStack(spacing: 4) (Chats.swift:1092-1120). The trailing item is a plain tinted ellipsis ("More") with the iOS 26 shared glass background hidden, "as in Messages, not the round glass default" (Chats.swift:1028-1034). The screenshot shows the blue ••• and no title.

Spaces menu: a picker with "All", then one entry per joined Hub (by Hub name), then a second picker of spaces the person made, a divider, "New Space…" (plus), and for a custom space "Rename Space…" (pencil) and destructive "Delete Space" (trash). Naming uses an alert "New Space" / "Rename Space" with a "Name" field and "Cancel" / "Create" or "Rename" (disabled while blank); deleting asks "Delete ?" with "Its bots and groups stay in All." (Chats.swift:1054-1068). A space chosen elsewhere that no longer exists falls back to All (Chats.swift:1122-1125). Custom spaces sync through iCloud (Chats.swift:910-912, :1073-1079). A bot or group created while a custom space is shown joins it (Chats.swift:1157-1161).

More sheet: four full-width .bordered .large buttons in VStack(spacing: 12), padding 24, fixed detent 292 pt, drag indicator: "New Bot" (person.badge.plus), "New Group" (person.2), "Hubs" (server.rack), "Settings" (gear) (Chats.swift:1259-1282).

Pinned circles (Messages-style): a LazyVGrid of 3 flexible columns, column spacing 12, row spacing 16, vertical padding 8 plus 8 more at the top when any of the first three carries a note, no separator (Chats.swift:969-985). Each circle is VStack(spacing: 6) of a 76 pt ThreadAvatar and the name in .caption, one line (Chats.swift:1329-1353). An unread mark is a 14 pt tint dot at the avatar's top-leading corner with a 2 pt systemBackground ring (Chats.swift:1341-1347). A note bubble hangs 14 pt above the avatar top: .caption2 (semibold when it is an unread reply), padding 8 × 4, max width 104, one line, .regularMaterial capsule, shadow black 12 % radius 3 y 1 (Chats.swift:1355-1375). The note is the start of the latest unread bot reply (whitespace collapsed, tables removed) or else the status the bot set (Chats.swift:507-514). Tapping a circle opens the chat; touch and hold opens its menu (a Menu with primaryAction, because context menus on several cells of one list row all lifted the row and showed the first circle's menu, Chats.swift:972-978; changelog 0.13.0 fix).

Row anatomy (AgentRow, Chats.swift:1284-1322; screenshot confirms):

Element Value
Layout HStack(spacing: 12), vertical padding 4
Avatar ThreadAvatar 48 pt with phase dot max(8, 0.24 × size) = 11.5 pt, 2 pt systemBackground ring, bottom-trailing
Unread dot 10 pt tint circle in the left margin, 8 pt from the avatar; the row's leading inset is 2 × 8 + 10 = 26 so the dot is 8 pt from the screen edge too (Chats.swift:995, :1291, :1297-1301)
Line 1 Name .headline, 1 line; Hub name .caption secondary when several Hubs are shown together; spacer; time .subheadline secondary, first-baseline aligned
Time format .relative(presentation: .numeric, unitsStyle: .abbreviated): "2 hr ago", "1 day ago", "3 days ago"
Line 2 Last message preview (tables removed) or the bot's description when there are no messages; .subheadline secondary, 2 lines; VStack(spacing: 2)
Accessory Disclosure chevron (it is a NavigationLink)
Separators Hidden above the first row, visible between rows; start at the text column

The preview is not stripped of Markdown: the screenshot shows "The **8** carries the goo…" in raw form, because previewText only removes tables (Shared/HubLink/Sources/HubLink/MessageTable.swift:54-59).

Ordering. Pinned first, then newest conversation first, where recency is the latest message's time or the bot's creation time (Chats.swift:304-318, :348-351). In All, pins belong to this phone (pins.json) and pinned items are ordered by recency; in a Hub's space the pins are the Hub's (pinnedAt, synced to all devices) and keep the order they were pinned in; in a custom space pins come first in pin order (Chats.swift:329-341, :353-378, :1171-1188). Bots and groups share one list with no section headers. Archived ones leave the list (Chats.swift:269-279).

Search. .searchable(prompt: "Search") (Chats.swift:1004). A non-blank query hides the circles and shows one plain list of matches on name, description or any message body held on the phone, ignoring case and accents (localizedStandardContains, Chats.swift:320-327, :963-967). No results shows the system search empty state. On iOS 26 the field is a floating glass capsule at the bottom of the screen (visible in the New Tool screenshot; the chat-list screenshot does not show it, so its exact resting state there is inferred).

Swipe and touch-and-hold. Leading swipe on an unpinned row: "Pin" (pin.fill) tinted orange; there is no trailing swipe and no delete from the list (Chats.swift:996-999). The touch-and-hold menu (same for rows and circles, Chats.swift:1190-1216): "Pin" (pin.fill) or "Unpin" (pin.slash.fill); submenu "Spaces" (square.stack) with a toggle per space, divider, "New Space…" (which creates the space with this conversation in it and shows it); then for your own bot or group "Edit Bot…"/"Edit Group…" (pencil) and "Archive Bot"/"Archive Group" (archivebox), or for a bot someone shared with you only "Change Background…" (photo).

Empty and loading states (overlay): spinner while any Hub is loading; "Not Connected" (wifi.exclamationmark) with the error; "No Bots" (bubble.left.and.bubble.right) (Chats.swift:1005-1017).

Pull to refresh writes the Noodle wordmark (word width 96 pt, stroked in .primary) progressively as the list is pulled; it is whole at 80 pt of pull and stays whole in the gap the refresh holds open until the reload finishes (WordmarkRefresh.swift:14-83). Used on the chat list, Hubs, Hub details, Users and Tools screens.

Data rules visible in the UI. The last sync is cached and shown at launch before the Hub answers (Chats.swift:96-126). Each Hub is followed over a live event stream and reconnected 5 s after a failure (Chats.swift:536-547); following stops while the app is in the background so the Hub knows to push instead (Chats.swift:1081-1088). Unread means a bot message newer than when the conversation was last read on this phone or reported read by another device; the first sync after installing counts everything as read (Chats.swift:68-70, :228-260, :616-620). Opening a conversation marks it read on the Hub and removes its delivered notifications (Chats.swift:236-247).

3.4 Conversation (ChatView)

Anatomy (from code; no screenshot of this screen exists):

+----------------------------------------------------------+
|  <     (28) Name                         phone    ...    |  nav bar over the wallpaper; title opens the editor
|  [ phone.fill 00:42              speaker  mic  end ]     |  call bar, glass capsule, only during a call
|                                                          |
|   wallpaper: full bleed under bars and composer,         |
|   black 25 % scrim unless default                        |
|                                                          |
|   +-------------------------------+                      |  bot: secondarySystemBackground, radius 18,
|   | reply text (17 pt body)       |       >= 48 free     |  padding 12 x 8; leading
|   +-------------------------------+                      |
|                  [react badges]                          |  badges hang 16 above a bubble's top-right corner
|                     +---------------------------------+  |  you: accent fill, white text; trailing
|        >= 48 free   | your message                    |  |
|                     +---------------------------------+  |
|                                          Delivered       |  .caption2, latest own message only
|                                                          |
|  (+)  ( Message ................................ mic )   |  48 high, plus 48 circle, gap 8, side padding 12
+----------------------------------------------------------+  bottom gap max(8, safe-area-bottom - 6); 8 above keyboard

Content is padded 12 at the sides, rows 6 apart; in groups a 28 pt avatar column sits left of bot bubbles.

3.4.1 Header and bars

Inline navigation bar. The principal item is a button holding a 28 pt ThreadAvatar (with phase dot, 8 pt) and the name in .headline .primary, HStack(spacing: 8); tapping opens the editor (or only the background editor for a bot shared with you) (Chats.swift:1567-1576). Trailing items: phone ("Call ") when the bot can be called and is not already on a call (LinkBot.canCall, Codex bots per changelog 0.21.0), and ellipsis ("Shared") when anything live was shared in the conversation (Chats.swift:1577-1594). During a call the CallBar sits in the top safe-area inset under the navigation bar and the conversation stays usable (Chats.swift:1557-1560). A conversation deleted on another device pops itself (Chats.swift:1481-1482).

3.4.2 Transcript layout and scrolling

ScrollView with a LazyVStack(spacing: 6), horizontal padding 12, vertical 8 (Chats.swift:1495-1521, :1932). The wallpaper (ConversationBackdrop) is the scroll view's background and ignores safe areas, so it runs under the bars and the composer; there is no bar behind the composer (Chats.swift:1524, :1681). The keyboard dismisses interactively on scroll (Chats.swift:1523). No timestamps or date separators appear anywhere in the transcript.

Paging: the first open loads the newest 50 messages; a spinner row at the top loads the previous 50 when it appears; newer messages arrive 100 at a time (Chats.swift:93-94, :828-867, :1497-1501). Rows keep their place by message ID so loading earlier pages does not move what is being read (Chats.swift:1517-1518).

Scroll rules (Chats.swift:1377-1428, tested in ConversationScrollTests): opens at the end; while the end is visible (2 pt tolerance, measured above the composer) it stays at the end as content grows; your own new message always scrolls to the bottom; anyone else's scrolls to show the message's top, and only if you were at the bottom; if you were reading higher up nothing moves. Only the person's own scrolling can move it off the end (rows measured while appearing must not).

3.4.3 Bubbles

Property You Bot System
Alignment Trailing, Spacer(minLength: 48) before Leading, Spacer(minLength: 48) after Centred, full width
Fill .accentColor (system blue), opaque secondarySystemBackground, opaque None
Text White; links underlined in white .primary; links tint .footnote secondary, vertical padding 4
Shape RoundedRectangle(cornerRadius: 18, style: .continuous), padding 12 × 8 same
Extras Delivery line below; red failure mark to the left In groups: author name above the first of a run, avatar beside the last

Sources: Chats.swift:1938-1980, MessageActions.swift:42-83. The text font is the default .body (17 pt at default Dynamic Type, inferred from no explicit font). Text is inline Markdown only (inlineOnlyPreservingWhitespace), and only http, https and mailto links stay tappable (MessageActions.swift:68-82).

Groups. Bot rows always reserve a 28 pt avatar column (HStack(alignment: .bottom, spacing: 6)); the avatar appears beside the last message of each consecutive run by one bot, and the bot's name (.caption secondary, leading padding 12, top padding 4) above the first (Chats.swift:516-534, :1964-1979). In one-to-one chats bot messages have no avatar at all. On a 390 pt phone the widest bubble is 318 pt (366 content − 48), or 284 pt for a bot in a group.

Reaction clearance. Every row adds 16 − 6 = 10 pt of top padding so a reaction badge (hanging 16 pt above the bubble) never moves the conversation when added (Chats.swift:1961-1963, :1979).

Long messages fold when longer than 1,200 characters or 12 lines, to 8 lines with a "Read more" button (.subheadline.weight(.semibold), plain) that expands the whole message in place (Chats.swift:1894-1909, :2040-2041, MessageActions.swift:49-58).

Tables. A Markdown table splits the message into separate bubbles: prose, a table card, more prose; reactions mark the first (Chats.swift:2012-2022). The card: tablecells (.title3, tint), header names joined with " · " (.subheadline.weight(.semibold), 1 line), "1 row"/"N rows" (.footnote, foreground at 70 %), trailing chevron.right (.footnote.weight(.semibold), 50 %); padding 12 × 10, max width 280, same 18 pt bubble shape and colours (MessageTables.swift:7-39). Tapping opens a "Table" sheet (medium/large detents) with a horizontally and vertically scrolling grid: cells .subheadline.monospacedDigit(), max width 240, padding 10 × 8, selectable; headers .footnote.weight(.semibold), tap to sort ascending, descending, then original (chevron 9 pt bold, always laid out so widths do not jump); header band primary at 6 %; corner radius 12; menu "Table Actions" (ellipsis) with "Copy as CSV" (doc.on.doc) and "Share CSV" (square.and.arrow.up) as Table.csv (MessageTables.swift:42-157; changelog 0.22.0).

Press feedback. While pressed a text bubble scales to 0.96 with .spring(duration: 0.25); a 0.35 s long press lifts it (Chats.swift:2017-2018, :2042). VoiceOver gets named actions "Copy" and "React" (Chats.swift:2020, :2043).

3.4.4 Reactions in the transcript

One capsule badge per distinct emoji, overlapping by 6 pt (HStack(spacing: -6)), hung on the bubble's top-trailing corner for every author (offset x +10, y −16). Each badge: .footnote text "emoji" or "emoji N" when more than one reacted, horizontal padding 6, minimum 28 × 28, your own in solid tint with white text, others on tertiarySystemBackground, 2 pt systemBackground stroke. Tapping a badge toggles your reaction. They mark the first text bubble, or the attachments when there is no text (Chats.swift:1987-2007, :2052-2063, :2021, :2032).

3.4.5 Delivery and failed messages

Only your latest message, and any message the Hub does not have yet, shows a status line (.caption2, secondary, red when failed): "Sending…", "Not delivered", "Delivered" or "Sent" (Chats.swift:672-677, :1487-1488, :1956-1958). Sending is optimistic: the message appears at once, files upload first, and it is retried with pauses of 0, 2, 5 and 15 s under the same ID (idempotent) only while it is still the newest message (Chats.swift:656-749). A failed message gets a red exclamationmark.circle (.title2) to the left of the bubble; it is a menu whose section header is the failure reason (or "Not delivered") with "Try Again" (arrow.clockwise, only while newest), "Edit and Send" (pencil, puts the text and files back in the composer, prepending to any draft) and "Delete" (trash, destructive) (MessageActions.swift:11-27, Chats.swift:1864-1879, :1948-1953). Unsent messages survive a relaunch (unsent.json). A message of files alone is sent with the body "Sent N attachment(s)", a lone recording with "Voice message", and the bubble hides those bodies (Chats.swift:698-701, :2065-2069).

3.4.6 Attachments

Order inside a message: text bubbles, then the first public web link's preview card, then attachments (Chats.swift:2009-2034).

Kind Rendering Values
Picture Inline image, opens Quick Look (swipes through the message's other files) Fits 240 × 320 (compact 144 × 192 when sharing a row), minimum 44 on each side, corner radius 16; the frame is reserved from the Hub-provided pixel size so nothing jumps; placeholder secondarySystemBackground with spinner, height = width × 2/3 when the size is unknown; decoded at 720 px (ChatContent.swift:113-153, :196-204)
Other file Card 44 × 44 thumbnail or symbol (radius 8), filename .subheadline.weight(.medium) 2 lines, byte size .caption secondary, padding 10, max width 260, secondarySystemBackground radius 16 (ChatContent.swift:155-177); symbols photo, film, waveform, doc.richtext, doc.text, doc (:222-229)
Live link (browser tab, computer, noodlet) Card that opens live full screen 240 × 150 picture radius 12 on secondarySystemBackground; a computer without a picture shows its last 14 terminal lines in 7 pt monospaced white 80 % on black; title .subheadline.weight(.medium); whole card padding 8 on tertiarySystemBackground radius 16; noodlet menu "Open on iPhone" (or "Open on iPad", iphone) / "Open on Hub" (play.display) (ChatContent.swift:73-111)
Web page shared as a file Link preview card as below
Voice message Player see 3.10 Voice messages

Picture context menu: share, and "Use as Background" (photo.on.rectangle) (ChatContent.swift:61-69). Layout of several files follows Settings > Attachments: Vertical (default, 4 pt gap), Wrap (side by side, 8 pt), Stack (overlapping, 12 pt row gap, each next file offset by min(72, 0.42 × width) and dropped 12 pt, black 30 % shadow radius 3 y 2); in Stack only files that swipe together overlap and live cards and voice messages sit whole above them (ChatContent.swift:233-326).

Link preview card: 280 wide; image area 280 × 158 on black 28 % (spinner while loading, link symbol at 26 pt light when there is no image); title .subheadline.weight(.semibold) 2 lines and site .caption secondary, padding 12 × 10; tertiarySystemBackground, radius 16 (ChatContent.swift:497-535). Only public http(s) hosts get one (no .local, private or link-local IPv4), fetched on the phone with a 10 s timeout, image capped at 560 px JPEG 0.8, cached per conversation for 7 days; a page with no metadata gets a card naming its site (ChatContent.swift:355-494). Tapping any web link opens an in-app Safari sheet unless "Preview Web Links" is off (ChatContent.swift:329-352, Chats.swift:1628-1633).

3.4.7 Composer

static let controlHeight: CGFloat = 48                       // field and plus height (Chats.swift:1433)
static func composerGap(homeBar: CGFloat) -> CGFloat { max(8, homeBar - 6) }   // :1437
private var composerLift: CGFloat { keyboardUp ? 8 : Self.composerGap(homeBar: homeBar) - homeBar } // :1664
.safeAreaInset(edge: .bottom) { Color.clear.frame(height: Self.controlHeight + 8 + composerLift) } // :1542
  • Height parity. 48 pt is exactly the height of the iOS 26 search field capsule, pinned by a test that measures the system search field (ComposerSizeTests.swift:7-25).
  • Vertical position. With the keyboard down the composer's bottom sits max(8, safeAreaBottom − 6) above the screen edge: 28 pt on a phone with a 34 pt home-indicator inset (partly over the home bar, level with the system search field), 8 pt on a phone without one. With the keyboard up it sits 8 pt above the keyboard (changelog 0.14.0 fix). Keyboard state comes from will-show/will-hide notifications (Chats.swift:1554-1555).
  • Overlay, not push. The transcript reserves room for a one-line composer only (48 + 8 + lift); a longer message grows the composer upward over the conversation, which does not move (Chats.swift:1540-1553; changelog 0.9.0).
  • Structure (Chats.swift:1666-1816): horizontal padding 12, top 8; above the controls in a VStack(spacing: 6): the @-mention strip, a transient error line (.footnote, red, cleared after 6 s), and pending file chips; then a GlassEffectContainer HStack(alignment: .bottom, spacing: 8) of the plus and the field.
  • Plus: plus at 18 pt medium, secondary, in a 48 × 48 circle with interactive glass ("Add").
  • Field: a UITextView (so a pasted image attaches as "Image.png"), body font, grows to 6 lines then scrolls (ChatContent.swift:630-696); placeholder "Message"; vertical padding 13 inside a capsule of min height 48 (cornerRadius: 24, regular glass), leading padding 16, trailing 5. Inside on the right: mic (18 pt regular, secondary, 30 × 48 hit area, "Record Voice Message") while there is nothing to send, otherwise arrow.up.circle.fill at 30 pt in tint ("Send").
  • Disabled (archived): the field is disabled and the placeholder becomes the reason: " is archived", "This group is archived", "Every bot in this group is archived" (Chats.swift:281-291).
  • Drafts are kept per conversation on the phone; a draft of only whitespace is discarded so the field returns at its normal size (Chats.swift:212-223, :1526-1530).
  • Pending file chip: 32 × 32 thumbnail or symbol (radius 6), filename .caption max 120 wide, xmark.circle.fill remove ("Remove "), padding 6, secondarySystemBackground capsule; chips scroll horizontally with 6 pt spacing (ChatContent.swift:538-561).
  • @-mentions: typing @ after whitespace or one of ([{,: plus up to 64 letters, digits or '-_. shows a horizontal strip of matching non-archived bots (a group's own bots, or all your bots with the current one first, then alphabetical); each chip is a 22 pt avatar and name (.subheadline) on a secondarySystemBackground capsule, padding 8 × 5, spacing 6; choosing writes the plain name and a trailing space when at the end (ChatContent.swift:734-774, Chats.swift:1818-1846).

Attach panel (Messages-style morph, Chats.swift:1719-1780): tapping the plus dismisses the keyboard and, with .bouncy(duration: 0.4, extraBounce: 0.05), morphs the glass circle (shared glassEffectID("attach")) into a 230 pt wide glass panel with corner radius 28 and padding 8 that grows up over the conversation from the plus's bottom-left without moving the field. Rows (VStack(spacing: 2)): a 32 pt circle with a gradient of the row's colour holding a white 15 pt semibold symbol, then the title in .body; spacing 14, horizontal padding 8, min height 48. Rows: "Camera" (camera.fill, gray; only with a camera), "Photos" (photo.on.rectangle.angled, blue), "Files" (folder.fill, cyan). The conversation behind is covered with .ultraThinMaterial; tapping it, or the field, closes the panel. Photos allows up to 10 images or videos, named "Photo N." or "Video N." from the item's own type; the camera saves JPEG 0.9 "Photo.jpg"; Files allows any type, several at once (Chats.swift:1610-1626, ChatContent.swift:563-594).

3.4.8 Shared sheet

… opens "Shared": every computer, browser tab and noodlet shared in the conversation, newest first, one entry per target (a computer whatever its view, a browser per tab); rows with a 96 × 64 picture or symbol (radius 8, tertiarySystemBackground), title (2 lines) and kind "Browser", "Computer" or "Noodlet" (.caption); "Done" (ChatContent.swift:792-845, HubTools.swift:781-848). Choosing closes the sheet and opens the item full screen once the sheet is gone (Chats.swift:1596-1608).

3.5 Message lift overlay (long press)

Presented as a full-screen cover with a clear presentation background and system animation disabled; the overlay animates itself (Chats.swift:1635-1650). Values (MessageActions.swift:85-219, layout tested in MessageActionsTests.swift):

Part Value
Backdrop Full-screen .ultraThinMaterial, fades in; tap anywhere to close ("Close")
Lifted bubble Redrawn at its on-screen frame (same MessageText look, folded if it was), scale 1.03
Reaction bar Horizontally scrolling glass capsule (interactive); 12 emoji at 28 pt in 44 × 44 cells, padding 6; width min(screen − 24, 12 × 44 + 12) = 540 cap, height 56; your existing reactions on a tint 30 % circle
Reaction set ❤️ 👍 👎 😂 🎉 ❓ 👀 ⏳ ✅ 🙏 🔥 💡 (heart, thumbs up, thumbs down, tears of joy, party popper, question mark, eyes, hourglass, check mark, folded hands, fire, light bulb), the Mac's twelve
Action menu 220 pt wide glass rounded rectangle (radius 24); items Label with padding 18 × 14, .body: "Copy" (doc.on.doc); for a failed message "Try Again", "Edit and Send", "Copy", "Delete" (red), and the reaction bar hidden
Placement Bar 8 pt above the bubble, menu 8 pt below; aligned to the bubble's trailing edge for your messages, leading for bots; kept 12 pt inside the screen; the bubble moves only if bar or menu would leave the screen; a bubble taller than the space shows its start, minimum 44
Motion In: .spring(duration: 0.35, bounce: 0.25), bar scales from 0.4 at its bottom corner, menu from 0.4 at its top corner; out: .spring(duration: 0.25) then close
Haptic Medium impact when shown

3.6 Differences from the Mac design

Aspect Mac (verified in code or hero.png) Mobile
Navigation Sidebar with "Bots"/"Groups" sections beside the conversation One mixed list, push to conversation; no split view on iPad
List avatar 42 pt, row spacing 10, status dot 10 pt with 2 pt ring (Sources/Noodle/SidebarView.swift:145-155) 48 pt, spacing 12, dot 11.5 pt; pinned bots as 76 pt circles with note bubbles
Conversation header Large centred avatar and name over the wallpaper (hero.png) 28 pt avatar + .headline name in the nav bar; tap to edit
Bubble radius, padding 16 continuous, 13 × 8 (Components.swift:324-340, :360-372) 18 continuous, 12 × 8
Text size 12.5 pt, line spacing 2 (LongMessageText.swift:38-43) .body (17 pt), default spacing
Bubble fill over a wallpaper Translucent: .ultraThinMaterial plus accent 28 % (you) or black 22 % (bot) (Components.swift:363-368) Always opaque accent / secondarySystemBackground
Row gap, overhang, content gap 10 / 12 / 3 (TranscriptScrollView.swift:29-32, Components.swift:209-212) 6 / 16 / 4
Bot avatar beside bubbles 27 pt on bot messages, also one-to-one (hero.png, Components.swift:255-274) 28 pt, groups only, last of each run
Opposite-side spacer 120 (Components.swift:253, :313) 48
Reaction badge Emoji 14 pt + count 10 pt; yours accent 25 %; stroke 1.5 at 85 %; offset x 5 (Components.swift:381-386, :460-476) .footnote "emoji N"; yours solid tint with white text; 2 pt stroke; badges overlap 6; offset x 10
Reacting Context menu with two rows of six emoji (MessageContextMenu.swift:48) Lift overlay with a 12-emoji glass bar
Delivery label 9.5 pt tertiary under user messages: "Saved", "Sent", "Delivered", "Not delivered" (Components.swift:305-310, :522-529) .caption2 secondary, latest own message only: "Sending…", "Sent", "Delivered", "Not delivered" (red)
System message Capsule with person.2.fill, 11.5 pt medium, ultra-thin material radius 14 (Components.swift:239-250) Plain centred .footnote secondary
Long message Same limits; "Read more" (text.alignleft) opens a reader popover (LongMessageText.swift:47-58) Same limits; "Read more" expands in place
Table Rendered inside the bubble (Components.swift:335-339) Card opening a sortable sheet with CSV copy/share
Composer Controls 36 pt, send 27 wide (ChatView.swift:374-377) 48 pt (search-field parity), send 30; plus morphs into an attach panel

3.7 New bot, groups and the bot editor

Bot editor (AgentEditor, Chats.swift:2076-2354; screenshot mobile-new-bot.png). A sheet with its own stack, a grouped Form, no navigation title, toolbar "Cancel" and "Create" (new) or "Save" (edit), rendered as glass capsules in the screenshot; while saving the confirm button becomes a spinner. A new bot starts with an empty name, the sparkles symbol and a random colour index (Chats.swift:2100-2101). Sections in order:

  1. Avatar 88 pt with "Edit" (.subheadline, tint) below, on a clear row, pushing "Bot Picture" (Chats.swift:2161-2174).
  2. "Name" text field.
  3. "Hub" picker (new bot with several Hubs only); "Harness" menu picker whose items show the provider name with the profile as a subtitle and whose chosen value reads "Provider · Profile" on one line, middle-truncated, or "Choose"; "Model" ("Default" or "Choose" when the plan restricts models); "Effort" ("Default" plus the model's efforts) only when the model offers them; "Voice" (value "Automatic" until chosen) only when the harness has voices. With no harness lent: "Your plan lends no harnesses" (Chats.swift:2178-2229, :2545-2550). Changing harness clears the effort, sets the harness's initial model and drops a voice the new harness does not offer (Chats.swift:2124-2134). An agent's current harness, model or effort that the plan no longer lends is kept at the top of its list so it still displays (Chats.swift:2104-2156).
  4. Error text in red, when any.
  5. Existing bots only: "Tools", "Computers", "Browsers" (pushes); "Sharing" with value "Only You", "1 Person" or "N People" (only on Hubs that allow sharing); "Background"; "Kick" (only when the bot has failed) and "New Session"; destructive "Delete Bot" (Chats.swift:2233-2263).

Create/Save is disabled until there is a name and a harness, and a model when the plan restricts models (Chats.swift:2293-2295). Confirmations: "Delete ?" / "Delete" / "The bot and its conversation are deleted from the Hub for all your devices."; "Start a new session for ?" / "New Session" / "Cancel" / " will start with a fresh context. Its workspace, memory and messages are kept."; Kick may return a Hub-supplied question (title defaults to "Recover Bot") with its confirm title, optional "New Session" and "Cancel" (Chats.swift:2265-2286). A bot someone shared with you opens only its background editor with "Done" (Chats.swift:2356-2384).

Bot Picture (Appearance.swift:203-308): 104 pt preview; section "Image": "Choose Photo" (photo), "Create Image" (apple.image.playground, Image Playground seeded with the bot's name, description and backstory), "Use Symbol Instead" (square.grid.2x2) or disabled "Using Symbol" (checkmark); section "Colour": six 34 pt gradient swatches, spacing 12, white 13 pt bold checkmark on the selected one; section "Symbol": a 6-column grid (spacing 10) of 42 pt tall tiles, radius 10, 18 pt semibold symbols, selected accent with white, others secondary 14 %. Symbols in order: sparkles, bolt.fill, brain.head.profile, hammer.fill, terminal.fill, magnifyingglass, shippingbox.fill, paintbrush.fill, checkmark.seal.fill, ladybug.fill, wand.and.stars, gearshape.2.fill. Photos are fitted to 512 px, JPEG 0.86, max 50 MB ("Choose an image smaller than 50 MB.") (ChatContent.swift:776-790).

Voice (Calls.swift:486-563): groups "Feminine" and "Masculine" (.footnote.weight(.semibold) secondary), 3-column grid spacing 10, tiles min height 72, radius 14, a waveform (.title3) that animates while its bundled sample plays, name .subheadline (semibold when selected), selected fill accent 16 % with a 1.5 pt accent border, others secondary 10 %. Tapping selects and plays the sample.

Sharing (HubTools.swift:298-380): an adaptive grid (minimum 76, spacing 8, row spacing 14) of 56 pt person avatars with names (.caption); selected people get a 2.5 pt accent ring and a 20 pt checkmark.circle.fill, others are at 55 % opacity; .snappy(duration: 0.2); selection haptic. Footer: "Only you can talk to ." or "<A, B and C> can talk to too." (LinkProtocol.swift:629-634). Empty: "Nobody else is on this Hub".

Group editor (Chats.swift:2386-2543): title "New Group" or "Group Info"; "Name"; "Description" (2 to 4 lines); "Hub" picker for a new group (switching Hub clears the members); section "Members": your own non-archived bots alphabetically, each a 32 pt avatar, name, description (.subheadline secondary, 2 lines) and a tint checkmark when chosen, "No Bots" when empty; existing groups add "Background" and "Delete Group" ("The group and its messages are deleted from the Hub for all your devices. Its bots stay."). Create requires a name and at least one member.

3.8 Tools, computers and browsers

List screens "Tools", "Computers", "Browsers" (HubTools.swift:207-296): every item of that kind the user has on the Hub, ticked (checkmark, tint) when this bot may use it; tapping toggles assignment at once (spinner in place of the tick while busy); detail line .caption secondary (a connection's problem, a computer's state, a browser's "Paused"); a bordered small "Sign In" button for a connection not signed in; swipe "Delete"; "None on this Hub yet"; toolbar "Add" (plus).

New Tool (sheet, mobile-new-tool.png, HubTools.swift:477-595): title "New Tool", "Cancel"; the Hub's catalogue of services, filtered by a bottom search "Search tools" where every typed word must appear in the name, summary or badge; each row a 32 pt icon (radius 7; first letter on .quaternary when there is no icon), the name, an optional badge (.caption2 orange on orange 12 % capsule, padding 6 × 2) and a one-line summary (.caption). In the screenshot names render in tint blue and summaries in lighter blue because the hierarchical .primary/.secondary styles resolve against the list button's tint. A final section links to "Custom MCP Server": fields "Name" and "MCP Server URL" (https only), "Add". Tapping a service saves a connection named after it (a second one becomes "Notion 2"), assigns it to the bot, starts sign-in in the system web-auth sheet with the callback noodle-mobile://mcp/oauth/callback, then closes (HubTools.swift:5-6, :44-59, :525-561).

New Computer / New Browser (HubTools.swift:382-475): "Kind" picker of the Hub's computer templates (computers only), "Name" prefilled "’s Computer" or "’s Browser", "Creating…" progress while a computer image downloads, "Cancel" / "Create"; the new item is assigned to the bot.

3.9 Hub screens and Settings

Hubs (sheet, HubScreens.swift:516-584): one row per joined Hub: Hub name (primary) over the user's name (.subheadline secondary), the connection status in colour ("Connecting…" secondary, "Connected" green, "Not connected" orange), and an info.circle "Details" button; a section with "Add Hub" (plus). When a Hub does not answer its bots' dots show offline (gray) (HubScreens.swift:905-936).

Hub details (HubScreens.swift:586-684): an 88 pt PersonAvatar with a 28 pt pencil.circle.fill badge (white on accent, on a grouped-background circle) opening "Your Picture"; the user's name in .title2.bold() and the Hub name in secondary; rows "Status", "Plan", "Address", "Hub Key", "Device Key"; an error in orange; "Archived" with its count; "Pair Another Device" (if allowed); "Users" (admins); destructive "Leave Hub" ("Leave ?" / "Leave" / "Joining again needs a new invitation.").

Archived (sheet): rows with a 32 pt avatar, the name, "Bot" or "Group" (.caption), and a borderless "Unarchive"; a row opens the conversation read-only; empty state "Nothing Archived" (archivebox) (HubScreens.swift:686-724).

Users (admins): 36 pt avatars, name, "" or " · Admin"; "Add User" (plus) opens an alert "New User" with "Name" / "Cancel" / "Add". User: "Plan" picker and "Can Pair Devices" toggle (disabled for admins, footer "Admins are changed only in the Hub’s own Settings."); "Devices" with "Connected", "Last seen " or "Paired ", swipe "Remove" ("It can no longer reach the Hub until it joins again."), "No devices", "Invite"; "Remove User" ("Their devices and their bots are removed from the Hub."); toolbar "Rename" (HubScreens.swift:726-903).

Pair a Device / Invite : a 240 × 240 QR code (nearest-neighbour scaling) with 12 pt padding on a white radius-12 card, "Hub key " (.footnote.monospaced() secondary), bordered "Copy Link" and "Share…", a live "Expires " that turns into "New Invitation" when expired (HubScreens.swift:938-1004).

Settings (sheet, HubScreens.swift:1050-1102): "Attachments" segmented Wrap / Vertical / Stack with footers "Files sit side by side and wrap onto new rows.", "Files sit one below another.", "Files overlap, with part of each one showing."; "Preview Web Links" toggle with footer "Web links open in a preview first, with a button to continue in Safari. When off, they open in Safari."; "Haptics for On-Screen Controls" (off by default); "Noodlet Permissions": each noodlet with what it was allowed ("Microphone", "Camera", "Speech Recognition", "Screen Recording", "Local Network"), swipe to revoke.

3.10 Voice messages

Recording replaces the field in the composer slot: a regular-glass rounded rectangle (radius 18), padding 12 × 4, with a matching hit shape so taps beside controls do not reach the conversation (Chats.swift:1668-1675). Contents (VoiceMessages.swift:387-458), HStack(spacing: 10): xmark discard (30 × 36); while preparing or finishing a spinner and .caption secondary text ("Preparing speech…", "Downloading speech model…", "Starting microphone…", "Finishing transcription…"); while recording a 6 pt red dot and a live waveform 22 pt high; the time m:ss in .caption.monospacedDigit(); stop.fill (30 × 36); and a 30 pt arrow.up.circle.fill send that is enabled while recording or ready (sending while recording stops first). Errors show in red .caption; after a failed transcription with audio kept, "Retry Transcription" and "Send Audio Only". The limit is 10 minutes (600 s). Transcription runs on device as the person speaks; a partial or failed transcript is never sent without asking (VoiceMessages.swift:9-264).

Live waveform: bars 2.5 wide every 5 pt, scrolling right to left at a fixed 50 ms per bar a quarter second behind the clock, 12 s kept, height mapped from a fixed −60 to −12 dB range, minimum 2, corner 1.25, .primary at 70 % (VoiceMessages.swift:460-515).

Player in the transcript: a 250 pt card on secondarySystemBackground (radius 16, padding 12 × 7): play/pause (28 × 32), the waveform (28 pt high, up to 60 bars, square-root amplitude, minimum 2, 2 pt gaps, radius 2, played part accent, rest secondary 60 %) that seeks on tap, and the time in .caption.monospacedDigit() secondary (duration, or position while playing). Touch and hold offers "Show Transcript" (text.quote), a "Transcript" sheet at medium/large ("No transcript available."). One recording plays at a time, through the speaker even in Silent Mode (VoiceMessages.swift:537-662). A recording is sent as "Voice message.caf" with the transcript, duration and waveform as metadata.

3.11 Calls

PhoneCalls allows one call per Hub; starting another hangs up the first (Calls.swift:28-146). Audio runs in a hidden 1 × 1 transparent WKWebView doing WebRTC; the Hub only relays the offer and answer and receives spoken lines; the call starts on the earpiece at full voice quality and "Speaker" switches to voice-chat processing for echo cancellation; AirPods use A2DP (Calls.swift:148-308). The timer and a chime start only when both the Hub and the media say connected.

Call bar (Calls.swift:344-389): a glass capsule in the top inset with horizontal padding 18, vertical 10, outer padding 16 horizontal and 4 top, HStack(spacing: 14), .body.weight(.medium): phone.fill (secondary while connecting, green when connected), the elapsed time in a slot as wide as "00:00" ("--:--" while connecting; "h:mm:ss" past an hour), spacer, Speaker (speaker.fill / speaker.wave.3.fill, accent when on), Mute (mic.fill / mic.slash.fill), End (phone.down.fill, red).

In the transcript: a full-width card "Voice call with " (.subheadline.weight(.medium)) with a live timer or the final length (hours, minutes and seconds in abbreviated units; a rendering such as "2 min, 5 sec" is inferred), phone or green phone.fill, padding 14 × 9, .ultraThinMaterial radius 14. Spoken lines appear as transcript blocks placed after the last message sent before they were said, so typing during a call splits the transcript: waveform icon, two-line preview (a live block shows its last two lines, a finished one its first two), speaker in .footnote.weight(.semibold) secondary ("You" or the bot's name) followed by the line in .subheadline, "N lines" in .caption2 tertiary, padding 14 × 8, .ultraThinMaterial radius 12, inset 24 pt from the sides; tapping opens a "Call" sheet listing every line (Calls.swift:310-342, :391-477).

3.12 Live views and noodlets on mobile

Live surface (a shared browser tab or computer, or a noodlet streamed from the Hub) opens as a full-screen cover on black (HubTools.swift:640-779). In portrait: inline navigation bar with the card's title (or "Live"), "Done", and a primary group of "Show on TV" (tv) for games, "Controls" (gamecontroller.fill / gamecontroller), "Keyboard" (keyboard) and "Run on iPhone" (iphone) for a noodlet that can run locally. In landscape (compact vertical size) or on TV the bar and status bar hide and the same buttons float icon-only in .buttonStyle(.glass) over the top corners, 12 pt from the sides. Touch and hold then move drags; two-finger pinch zooms and pans (changelog 0.11.0). A noodlet with game controls shows an on-screen gamepad; a connected hardware controller hides the buttons it covers.

Noodlets (Noodlets.swift:13-288): a noodlet runs on the phone in a web view (files fetched once per revision and cached; its data and secrets stay on the Hub) or streams from the Hub; the choice is remembered per noodlet, and the card's menu chooses before opening; noodlets using camera, microphone or screen always run on the phone (changelog 0.12.0). On first use of declared permissions it asks: "“” would like to use <Camera and Microphone>." with "Allow" / "Don’t Allow"; a refusal shows "Permission was not given to use …" (<code>Applet/Protocol/Sources/NoodletRuntime/Grants.swift:41-52</code>). A noodlet laid out for desktop gets the desktop site unless it declares itself an app (<code>Noodlets.swift:143-147</code>). It can lock orientation and request full screen; sound plays in Silent Mode and mixes with other audio; the idle timer is disabled while a controller is connected or the game is on a TV.</p> <p><strong>On-screen gamepad</strong> (<code>Shared/Surface/Sources/Surface/Gamepad.swift:165-263</code>, <code>:350-450</code>; screenshot <code>mobile-game.png</code>): margin 16 inside the safe area, spacing 12; pad size <code>clamp(0.36 × min(width, height), 120, 170)</code>, bottom-left; a 64 × 44 menu capsule above it; buttons <code>clamp(0.42 × pad, 52, 72)</code> in up to 3 columns nearest the right thumb (two buttons sit on a slant, the main one 45 % of a button higher); at most 8 buttons; eight-way pads with a 25 % dead zone; sticks whose knob travels half the radius. Buttons are circles on black 25 % plus white 20 % (45 % pressed), 1.5 pt white 40 % stroke, labels 13 pt semibold white.</p> <h3>3.13 External screen (TV)</h3> <p>On iOS 27 only, the app offers a TV scene accessory (<code>sceneAccessory</code> with <code>ExternalNonInteractiveAccessory</code>). While Screen Mirroring or a cable gives a TV, a noodlet with game controls plays full screen on the TV (sized for the TV) and the phone turns to landscape and shows only the controls, or, when a hardware controller covers every button, a list of connected controllers (vendor logo <code>logo.xbox</code>, <code>logo.playstation</code> or <code>gamecontroller.fill</code> at <code>.title</code> in a 44 pt column, name in <code>.title3</code>, battery symbol), white on black, refreshed every 30 s. "Show on iPhone"/"Show on iPad" brings the game back without restarting; "Show on TV" sends it again or, with no TV, alerts "No TV Connected" / "Turn on Screen Mirroring in Control Center, or connect a TV with a cable." Without a game open the TV mirrors the phone (<code>ExternalScreen.swift:6-155</code>; changelog 0.17.0 and 0.18.0). A controller's View button shows a TV menu over the game: black 55 % scrim, a horizontal row of 300 × 180 cards (radius 16, white 12 % fill, spacing 28, padding 60 × 40, 40 from the bottom), the chosen card raised 1.08 with a 4 pt white border and the rest at 70 %, titles in <code>.title3</code>, a final "Close Game" (<code>xmark</code> 48 pt); d-pad moves, A opens, B or View resumes (<code>ExternalScreen.swift:157-294</code>).</p> <h3>3.14 Appearance: wallpapers and avatars</h3> <p><strong><code>ConversationBackdrop</code></strong> (<code>Appearance.swift:8-59</code>): a <code>systemBackground</code> base; a photo scaled to fill; a video shown as its poster with a muted <code>AVPlayerLooper</code> (aspect fill, does not keep the display awake) on top unless Reduce Motion is on; or a preset drawn as a top-leading to bottom-trailing linear gradient of three colours plus an ellipse of the middle colour at 50 %, sized 1.4 × width by 1.1 × height, rotated −35°, offset 0.35 × width, blurred 50. Any non-default background gets a black 25 % scrim. It ignores safe areas and hit testing. The four presets (sRGB 0-1), shared with the Mac:</p> <table> <thead> <tr> <th>Preset</th> <th>Colour 1</th> <th>Colour 2</th> <th>Colour 3</th> </tr> </thead> <tbody><tr> <td>Sunset</td> <td>0.96, 0.52, 0.15</td> <td>0.77, 0.43, 0.67</td> <td>0.46, 0.35, 0.75</td> </tr> <tr> <td>Ocean</td> <td>0.04, 0.26, 0.50</td> <td>0.08, 0.60, 0.66</td> <td>0.14, 0.30, 0.62</td> </tr> <tr> <td>Forest</td> <td>0.08, 0.24, 0.18</td> <td>0.34, 0.53, 0.30</td> <td>0.14, 0.34, 0.39</td> </tr> <tr> <td>Dusk</td> <td>0.18, 0.16, 0.39</td> <td>0.47, 0.29, 0.60</td> <td>0.73, 0.37, 0.47</td> </tr> </tbody></table> <p>The background is kept on the Hub for every device; the phone fetches a small copy and forgets copies no conversation uses (<code>Chats.swift:133-210</code>).</p> <p><strong><code>BackgroundEditor</code></strong> ("Background", <code>Appearance.swift:95-200</code>): a 200 pt preview (radius 16, edge to edge) of the backdrop with two sample bubbles on <code>.regularMaterial</code> capsules, padding 10, <code>VStack(spacing: 14)</code>, padding 20: "Make this space your own." (left) and "Looks good!" (right). Then a row of five swatches (spacing 10): "Default", "Sunset", "Ocean", "Forest", "Dusk", each a 44 pt tall rendered backdrop, radius 8, border 2 pt accent when selected or 0.5 pt separator, title <code>.caption2</code>. Then "Choose Photo" and "Create Image" (Image Playground shaped like the screen, starting from the current photo). Changes apply immediately on the Hub.</p> <p><strong>Avatars.</strong> <code>AgentAvatar</code> (<code>Chats.swift:2598-2653</code>): a photo, or a symbol at 0.45 × size semibold white on one of six gradients (top-leading to bottom-trailing): blue to cyan, purple to pink, orange to yellow, mint to teal, indigo to blue, pink to orange; any stored colour index wraps modulo 6. Phase dot colours: working blue, failed red, ready green, offline or starting gray. <code>ThreadAvatar</code> for groups (<code>Chats.swift:2552-2596</code>): one active member is drawn at 0.86 × size offset by (−6 %, −6 %) in front of a <code>.quaternary</code> disc of 0.88 × size offset (+6 %, +6 %); several members draw up to three avatars at 0.62 × size at offsets (−18 %, −14 %), (+18 %, −14 %) and (0, +19 %) on a full <code>.quaternary</code> disc; every member avatar has a 2 pt <code>systemBackground</code> ring; archived bots leave the picture. <code>PersonAvatar</code> (<code>Appearance.swift:310-337</code>): a photo, a symbol at 0.45 × size, or initials (first letters of the first two words, uppercase) at 0.4 × size semibold rounded, white on the same gradients; with no choice the colour comes from the first byte of the person's ID (<code>LinkProtocol.swift:665-670</code>).</p> <p><strong><code>PersonPictureEditor</code></strong> ("Your Picture", <code>Appearance.swift:339-488</code>): 104 pt preview; "Photo": "Take Photo" (<code>camera</code>, square crop), "Choose Photo", "Create Image", destructive "Remove Photo" (<code>trash</code>); "Colour" as for bots; "Symbol": an initials tile then <code>person.fill</code>, <code>face.smiling</code>, <code>star.fill</code>, <code>heart.fill</code>, <code>leaf.fill</code>, <code>pawprint.fill</code>, <code>music.note</code>, <code>gamecontroller.fill</code>, <code>book.fill</code>, <code>cup.and.saucer.fill</code>, <code>sun.max.fill</code>; "Cancel" / "Done" (Done is a no-op close when nothing changed).</p> <h3>3.15 Notifications</h3> <p>Each joined Hub is given a random topic stored in that Hub's folder; the phone subscribes in CloudKit's public database to records the Hub leaves under that topic while replies wait unread, and tells the Hub the topic only once listening works (<code>Notifications.swift:14-90</code>, <code>ReplyNotifications.swift:23-54</code>). The push carries only the topic and conversation; its default text is "New reply" with the default sound; a collapse ID per conversation makes a newer one replace the older; mutable content lets the notification service extension ask the Hub directly for the bot's name (title) and its latest reply (body, tables removed; a reply of files alone shows the first filename or "Attachment"), within the extension's time limit, otherwise it shows "New reply" (<code>ReplyNotifications.swift:56-80</code>, <code>NotificationService.swift:4-37</code>). Notifications stack per conversation (<code>threadIdentifier</code>). The extension looks the conversation up among bots only, so a group's notification stays "New reply" (inferred from <code>ReplyNotifications.swift:74-77</code>). Permission is asked only once a Hub exists (alert, sound, badge). In the foreground no banner is shown (<code>willPresent</code> returns no options, <code>Notifications.swift:158-163</code>). Tapping opens the conversation once its Hub has loaded (<code>Chats.swift:1225-1232</code>). Reading a conversation removes its delivered notifications. <strong>There is no inline reply</strong>: no notification category, action or text-input action exists anywhere in the mobile sources.</p> <h3>3.16 Key values at a glance</h3> <table> <thead> <tr> <th>Value</th> <th>Mobile</th> <th>Source</th> </tr> </thead> <tbody><tr> <td>Accent</td> <td>System blue, no accent asset</td> <td><code>Mobile/Project.swift:69</code></td> </tr> <tr> <td>Composer control height (field, plus)</td> <td>48 (= iOS 26 search field)</td> <td><code>Chats.swift:1433</code>, <code>ComposerSizeTests.swift:7-25</code></td> </tr> <tr> <td>Composer field radius, inner padding</td> <td>24; leading 16, trailing 5, text 13 top and bottom</td> <td><code>Chats.swift:1788</code>, <code>:1807-1809</code></td> </tr> <tr> <td>Composer outer padding, plus-to-field gap</td> <td>12 sides, 8 top; 8</td> <td><code>Chats.swift:1680</code>, <code>:1706</code></td> </tr> <tr> <td>Composer bottom gap</td> <td><code>max(8, safeAreaBottom - 6)</code>; 8 above the keyboard</td> <td><code>Chats.swift:1437</code>, <code>:1664</code></td> </tr> <tr> <td>Field growth</td> <td>Up to 6 lines, then scrolls</td> <td><code>ChatContent.swift:667-673</code></td> </tr> <tr> <td>Mic / send</td> <td>18 pt regular in 30 × 48; 30 pt <code>arrow.up.circle.fill</code></td> <td><code>Chats.swift:1790-1805</code></td> </tr> <tr> <td>Transcript padding, row gap</td> <td>12 × 8; 6</td> <td><code>Chats.swift:1519-1520</code>, <code>:1932</code></td> </tr> <tr> <td>Bubble radius, padding</td> <td>18 continuous; 12 × 8</td> <td><code>MessageActions.swift:59-62</code></td> </tr> <tr> <td>Opposite-side free space</td> <td>≥ 48</td> <td><code>Chats.swift:1946</code>, <code>:1977</code></td> </tr> <tr> <td>Reaction overhang, badge minimum, overlap, offset</td> <td>16; 28 × 28; −6; (+10, −16)</td> <td><code>Chats.swift:1936</code>, <code>:1993-2002</code>, <code>:2060</code></td> </tr> <tr> <td>Avatars: list, pinned, header, group transcript, mention chip</td> <td>48, 76, 28, 28, 22</td> <td><code>Chats.swift:1295</code>, <code>:1336</code>, <code>:1570</code>, <code>:1934</code>, <code>:1834</code></td> </tr> <tr> <td>Phase dot</td> <td><code>max(8, 0.24 × size)</code>, 2 pt <code>systemBackground</code> ring</td> <td><code>Chats.swift:2642-2649</code></td> </tr> <tr> <td>Unread dot: list, pinned</td> <td>10, 8 from edge and avatar; 14 with 2 pt ring</td> <td><code>Chats.swift:1291</code>, <code>:1343-1344</code></td> </tr> <tr> <td>Note bubble</td> <td><code>.caption2</code>, padding 8 × 4, max width 104, regular material capsule, 14 above</td> <td><code>Chats.swift:1339</code>, <code>:1364-1372</code></td> </tr> <tr> <td>Long press, press scale</td> <td>0.35 s; 0.96 with 0.25 s spring</td> <td><code>Chats.swift:2017-2018</code>, <code>:2042</code></td> </tr> <tr> <td>Lift overlay</td> <td>Bubble 1.03; bar 56 high, 44 cells; menu 220 wide, radius 24; in 0.35 s spring bounce 0.25, out 0.25 s</td> <td><code>MessageActions.swift:88-218</code></td> </tr> <tr> <td>Attach panel</td> <td>230 wide, radius 28, padding 8, rows ≥ 48, icon circles 32</td> <td><code>Chats.swift:1744-1774</code></td> </tr> <tr> <td>Picture bounds</td> <td>240 × 320; compact 144 × 192; minimum 44; radius 16</td> <td><code>ChatContent.swift:113-118</code>, <code>:139</code></td> </tr> <tr> <td>File card, link card, live card, voice card</td> <td>Max 260 wide; 280 wide with 158 image; 240 × 150 image; 250 wide; all radius 16</td> <td><code>ChatContent.swift:155-177</code>, <code>:497-535</code>, <code>:73-111</code>; <code>VoiceMessages.swift:635-637</code></td> </tr> <tr> <td>Fold rule</td> <td>> 1,200 characters or > 12 lines, shown as 8 lines</td> <td><code>Chats.swift:1894-1909</code></td> </tr> <tr> <td>Paging, retries</td> <td>50 per page (100 when catching up); retry after 0, 2, 5, 15 s</td> <td><code>Chats.swift:94</code>, <code>:842</code>, <code>:661</code></td> </tr> <tr> <td>Fixed sheet heights</td> <td>More 292; pairing sources 244 (184 without camera)</td> <td><code>Chats.swift:1273</code>, <code>HubScreens.swift:462-468</code></td> </tr> <tr> <td>Wordmark refresh</td> <td>Whole at 80 pull; word width 96</td> <td><code>WordmarkRefresh.swift:19-20</code></td> </tr> <tr> <td>Wallpaper scrim, preset glow</td> <td>Black 25 %; ellipse 1.4w × 1.1h, −35°, blur 50</td> <td><code>Appearance.swift:29-34</code></td> </tr> <tr> <td>Avatar gradients (6)</td> <td>blue→cyan, purple→pink, orange→yellow, mint→teal, indigo→blue, pink→orange</td> <td><code>Chats.swift:2601-2603</code></td> </tr> </tbody></table> <h2>4. Web translation</h2> <p><strong>Breakpoints</strong> (proposed; Noodle itself has one phone layout for every width):</p> <table> <thead> <tr> <th>Width</th> <th>Layout</th> </tr> </thead> <tbody><tr> <td>< 768 px</td> <td>Phone: stack navigation. Route <code>/</code> is the list, <code>/c/:hub/:thread</code> the conversation, pushed with a horizontal slide; back gesture or button pops. Editors as full-height bottom sheets; small choices as content-height sheets; live views and the lift overlay as full-viewport layers</td> </tr> <tr> <td>768-1023 px</td> <td>Two panes when landscape-ish: list 320 px plus conversation; or keep the phone stack in portrait tablets. Do not copy Noodle's iPad behaviour of stretching the phone layout</td> </tr> <tr> <td>≥ 1024 px</td> <td>Sidebar (320-360 px) plus conversation, Mac-style header; dialogs centred instead of bottom sheets</td> </tr> </tbody></table> <p><strong>Conversation column.</strong> Content padding 12 px; bubble <code>max-width: min(100% - 48px, 560px)</code> (Noodle has no cap; add one for tablets and desktop). Row gap 6 px plus 10 px reserved top padding on every row for the 16 px reaction overhang. Bubble radius 18 px, padding 12 × 8 px, 17 px body text on phones (at least 16 px in any <code><input></code>/<code><textarea></code> so iOS Safari does not zoom on focus; web platform note).</p> <p><strong>Composer and the on-screen keyboard.</strong> Position the composer absolutely at the bottom over the transcript; give the transcript a bottom padding of one composer line only (48 + 8 + lift); let a multi-line field grow upward to 6 lines and then scroll, without changing the transcript's padding. Bottom offset with the keyboard closed: <code>max(8px, env(safe-area-inset-bottom) - 6px)</code> (needs <code>viewport-fit=cover</code>); with it open: 8 px above the keyboard. On iOS Safari read the keyboard height from <code>visualViewport</code> (<code>innerHeight - visualViewport.height - visualViewport.offsetTop</code>) on <code>resize</code>/<code>scroll</code>; on Chromium <code>navigator.virtualKeyboard.overlaysContent = true</code> with <code>env(keyboard-inset-height)</code> or <code>interactive-widget=resizes-content</code> in the viewport meta are alternatives (web platform notes, verify per browser). Keep the composer 48 px tall with a 48 px circular plus on its left, mic or send inside the pill on the right; swap mic for send as soon as there is text or a pending file. Close the keyboard when the attach panel opens (<code>blur()</code> the field) and when the transcript is scrolled by touch.</p> <p><strong>Scrolling.</strong> Implement Noodle's three rules: stick to the bottom only while the bottom is visible (2 px tolerance measured above the composer); always scroll to your own sent message; for an incoming message scroll to its top only if the person was at the bottom. Use <code>overflow-anchor</code> or ID-keyed restoration when prepending earlier pages; reserve image boxes from known pixel sizes (fit 240 × 320, compact 144 × 192, minimum 44) so loads never shift.</p> <p><strong>Touch targets and gestures.</strong> Keep 44 px minimums: plus 48, field 48, mic and send 30 × 48 (widen to 44 on web), attach rows ≥ 48, reaction cells 44, menu items ≈ 50. Noodle's 28 px reaction badges, 22 px mention chips and 30 × 36 recording buttons are below 44 px; enlarge hit areas with padding or pseudo-elements. Long press 350 ms opens the lift overlay (press scale 0.96 during the hold; suppress <code>-webkit-touch-callout</code> and text selection during the press); provide the same actions on right-click, keyboard (<code>ContextMenu</code> key / Shift+F10) and a visible button, and the same Pin action as a swipe on touch and in the context menu (the swipe must never be the only path).</p> <p><strong>Component mapping.</strong></p> <table> <thead> <tr> <th>Noodle construct</th> <th>Web (React + Tailwind + shadcn/Radix)</th> </tr> </thead> <tbody><tr> <td><code>NavigationStack</code> push</td> <td>Router routes with a slide transition on phones; panes on wide screens</td> </tr> <tr> <td><code>.sheet</code> with detents (292, 244, medium/large)</td> <td>shadcn Drawer (Vaul) with snap points, drag handle visible</td> </tr> <tr> <td>Full-screen cover (lift overlay, live views)</td> <td>Full-viewport layer with its own enter/exit animation; <code>inert</code> on the page behind</td> </tr> <tr> <td><code>Menu</code> with <code>primaryAction</code> on pinned circles</td> <td>Click navigates; long-press or right-click opens a Radix <code>DropdownMenu</code>/<code>ContextMenu</code></td> </tr> <tr> <td><code>.swipeActions(edge: .leading)</code></td> <td>Pointer-event swipe revealing an orange "Pin" action, plus the same item in the context menu</td> </tr> <tr> <td><code>.searchable</code></td> <td>A search <code>Input</code> pinned at the top of the list (a bottom field mimicking iOS 26 is optional)</td> </tr> <tr> <td>Liquid Glass (<code>glassEffect</code>)</td> <td>Translucent fill + <code>backdrop-filter: blur() saturate()</code> + hairline highlight; Noodle defines no numbers (system material)</td> </tr> <tr> <td><code>GlassEffectContainer</code> morph of plus into panel</td> <td>Shared-layout animation (for example a FLIP or View Transitions) from the 48 px circle to the 230 px radius-28 panel, spring roughly 400 ms with slight overshoot</td> </tr> <tr> <td><code>UIPasteControl</code></td> <td>A "Paste" button calling <code>navigator.clipboard.readText()</code> on the user's tap</td> </tr> <tr> <td>QR scanner</td> <td><code>BarcodeDetector</code> where available, otherwise a JS decoder over <code>getUserMedia</code></td> </tr> <tr> <td><code>SFSafariViewController</code> preview</td> <td>Most sites refuse framing; use the link card and open in a new tab</td> </tr> <tr> <td>Quick Look gallery</td> <td>Lightbox swiping through the message's files</td> </tr> <tr> <td><code>AVPlayerLooper</code> wallpaper</td> <td><code><video muted loop playsinline autoplay poster></code>; <code>prefers-reduced-motion</code> shows the poster only</td> </tr> <tr> <td>On-device transcription</td> <td>Web Speech API where available, or server transcription; <code>MediaRecorder</code> for audio</td> </tr> <tr> <td>Hidden WebRTC web view</td> <td>WebRTC directly in the page</td> </tr> <tr> <td>CloudKit push + service extension</td> <td>Web Push with a service worker that fetches the reply text from your server on push, keeping message text out of the push payload</td> </tr> </tbody></table> <p><strong>Safe areas.</strong> <code>viewport-fit=cover</code>; nav bar top padding <code>env(safe-area-inset-top)</code>; the wallpaper must extend under both bars; landscape game controls and floating Done buttons must respect left/right insets (Noodle keeps the gamepad 16 px inside the safe area).</p> <p><strong>Colours.</strong> System blue accent and semantic surfaces map to tokens: accent (iOS system blue, light #007AFF / dark #0A84FF), <code>secondarySystemBackground</code> (light #F2F2F7 / dark #1C1C1E), <code>tertiarySystemBackground</code> (light #FFFFFF / dark #2C2C2E), <code>systemBackground</code> (#FFFFFF / #000000); these hex values are Apple's published system colours (iOS 26 may adjust them slightly), not values from the repository.</p> <p><strong>Time.</strong> Format list times as "2 hr ago", "1 day ago", "3 days ago"; <code>Intl.RelativeTimeFormat</code> with <code>style: 'short'</code> produces "2 hr. ago" in en-US, so a small formatter is needed to match.</p> <h2>5. Patterns worth copying, and pitfalls to avoid</h2> <h3>Patterns worth copying</h3> <ul> <li><strong>Composer height equals the search field height</strong> (48), and the composer bottom sits where the list's search field sits, so moving from list to chat feels continuous.</li> <li><strong>Overlay composer growth</strong>: only one line is reserved; long drafts cover the transcript instead of jumping it.</li> <li><strong>Reserved reaction clearance</strong> on every row so reacting never reflows the conversation.</li> <li><strong>Reserved media boxes</strong> from server-provided pixel sizes.</li> <li><strong>Three-rule auto-scroll</strong> (stick only at bottom, own message always, incoming from its top).</li> <li><strong>Optimistic sending with bounded, idempotent retries</strong> (0, 2, 5, 15 s, same ID, only while newest), and a failure mark offering Try Again / Edit and Send / Delete instead of a global error.</li> <li><strong>Per-conversation drafts</strong> that discard whitespace-only text.</li> <li><strong>Pinned circles with a one-line note</strong> (unread reply in semibold, else the bot's status): a strong at-a-glance team view.</li> <li><strong>Sequential modals</strong>: open the next sheet only after the previous one dismissed.</li> <li><strong>Group run grouping</strong>: name above the first message of a run, avatar beside the last, a reserved avatar column so bubbles align.</li> <li><strong>Folding</strong> at 1,200 characters or 12 lines to 8 lines with "Read more".</li> <li><strong>Tables as cards on small screens</strong> that open a sortable, copyable sheet.</li> <li><strong>Messages-style lift overlay</strong> with geometry that keeps the bar and menu on screen and shows the start of very tall messages.</li> <li><strong>Disabled composer that explains itself</strong> through its placeholder.</li> <li><strong>Help Me Connect</strong>: per-route reachability plus plain-language advice and a single Try Again.</li> <li><strong>Notifications that keep content off the push service</strong> and collapse per conversation, cleared when read anywhere.</li> <li><strong>Wordmark pull-to-refresh</strong> as a brand moment that also communicates pull progress.</li> </ul> <h3>Pitfalls to avoid</h3> <ul> <li><strong>No tablet layout.</strong> iPad shows the stretched phone list and full-width bubbles; build two panes at wider breakpoints.</li> <li><strong>Opaque mobile bubbles vs translucent Mac bubbles</strong> over the same wallpaper: decide one rule per theme rather than diverging silently.</li> <li><strong>Small touch targets</strong> (28 px badges, 22 px mention chips, 30 × 36 recording controls).</li> <li><strong>Markdown leaking into previews</strong> ("The **8** carries…" in the list): strip inline Markdown for list rows, notes and notifications.</li> <li><strong>No timestamps in the transcript</strong> at all; consider timestamps on demand (tap or hover) and day separators.</li> <li><strong>Hierarchical colour surprises</strong>: catalogue names render in tint blue only because of how SwiftUI resolves <code>.primary</code> inside list buttons; choose such colours deliberately on the web.</li> <li><strong>Group notifications</strong> probably fall back to "New reply"; and there is no inline reply, which a web build could add where <code>Notification</code> actions allow it.</li> <li><strong>Gesture-only actions</strong>: swipe-to-pin and long-press must have visible or keyboard equivalents.</li> <li><strong>In-app web preview</strong> does not translate to the web (frame blocking); do not promise it.</li> </ul> <h2>6. Open questions and inferences</h2> <ul> <li>The resting state of the iOS 26 bottom search field on the chat list is not visible in <code>mobile-chats.png</code>; its bottom placement is inferred from the New Tool screenshot and from the composer-parity test.</li> <li><code>website/assets/mobile-chats.png</code> predates 0.23.0 (no "All" title menu), and <code>mobile-new-bot.png</code> appears to predate 0.13.0 (no Kick/New Session section above "Delete Bot"); appearance of newer elements is from code only.</li> <li>The conversation screen has no screenshot; bubble, composer and overlay appearance are from code and changelog.</li> <li>Text size is inferred to be <code>.body</code> (17 pt at default Dynamic Type) because <code>MessageText</code> sets no font.</li> <li>System empty-state copy for search ("No Results for …") and glass material numbers are system-defined and not in the repository.</li> <li>Group notifications showing only "New reply" is inferred from the extension looking up bots only.</li> <li>Only Codex bots can be called today (changelog 0.21.0); the code gates on the Hub's <code>canCall</code>, so other harnesses may follow.</li> <li>The external-screen TV mode needs iOS 27; on iOS 26 the TV simply mirrors the phone.</li> </ul>