Mobile redesign #
Built on Tangled main at 1da4094 (the Agent SDK mobile rebuild), in the
codex/mobile-redesign worktree. The older GitHub checkout is not the base.
Direction #
Keep the identity of cameron.stream: Around display lettering, Inter for reading, concentric circles, fine rules, and a restrained purple accent. Give the mobile app more hierarchy and warmth through off-white/lilac surfaces, rounded, inverted user bubbles, clear icons, and more deliberate spacing.
- Connect: explain what co is before asking for a connection. Both Letta Cloud and a self-hosted server are reachable.
- Launch: open the latest conversation for the primary Co agent. There is no separate home page. New conversations show a clear canvas and the composer. The home-note experiment is parked and is not mounted by the app or preview.
- Chat: a quiet shared header and a compact single-row composer, with an accessible message field, the original circular send control, and separate queue and stop icons while work is running. Connection and approval states remain authoritative.
- History: a named destination, titles above metadata, and a clear new-conversation action. Search, paging, rename, delete, and live activity use the existing logic.
- Settings: visual System/Light/Dark choices and reachable connection options.
- Reading: inverted user bubbles; assistant prose remains unboxed. Tablet content is constrained to 620 points.
The Agent SDK session implementation is unchanged. Shared production components also power the preview, replacing duplicated header/composer markup.
Review locally #
bun install --frozen-lockfile
bun run preview:design --port 8088
Open http://localhost:8088/stills?scene=chat. The plus button opens a scene
picker; the history and settings buttons work. Available scenes are empty,
chat, channels, tools, running, approval, and history. Optional theme=light or theme=dark
forces a theme for a capture; omit it to test the saved appearance setting.
This is a development-only fixture route. Sending, queueing, and approving demonstrate
local UI states; they do not contact an agent or execute commands. The route redirects
to the app’s entry screen in release builds. Web is enabled only with the preview
command; normal builds still target iOS and Android. The command skips Expo’s web
setup check because it inspects the static app.json platform list instead of the
resolved dynamic configuration; the preview dependencies are installed explicitly.
For on-device preview, use a development build that includes the native keyboard
controller, run bun start, and open /stills through a deep link. Expo Go does
not include this native dependency. Normal launch uses the actual account flow.
Validation #
- TypeScript and Expo ESLint pass.
- Suite: 58 tests covering auth, profile storage, connection input, launch selection, and chat state (plus the parked note loader).
- Production JavaScript/Hermes exports succeed for both Android and iOS.
- Browser review of the actual React Native components at 320×640 and 390×844: empty conversation, resource links, local send, history search, chat, theme selection, approval/deny, running/stop, long draft, and preview navigation.
- Text tokens meet 4.5:1 against the canvas in both palettes; the light approval status color was darkened. Button foreground/accent contrast is above 6:1.
Android Expo Go verification now also covers native rendering, composer focus with
keyboard open, and invalid connection validation with Save disabled. Hardware back
gestures, screen-reader behavior, Dynamic Type XL, and iOS keyboard behavior still
need device checks. No authenticated agent round trip has been performed.
The existing press PNGs predate this redesign; use the updated /stills route for
new captures.
Simplification after review #
Removed the header tagline and composer helper copy. The composer is a 50-point pill at rest: plus, message field, and the original hollow circular send control. It grows only for multiline drafts, up to 120 points of text, then scrolls. Focus appears only on the outer pill. The header is just co and navigation, with status text appearing only when there is an actual runtime state to report.
User bubbles now invert the canvas colors: charcoal with warm-white text in light mode, pale with dark text in dark mode. A 24-point curve and a smaller lower-right corner give the messages shape without adding decoration.
Production wiring #
- Launch searches agent pages for Co, opens its newest conversation, and offers explicit Co creation for accounts that do not have one. Creation uses the SDK's default model. Failed conversation setup can retry without creating a second agent.
- Settings exposes saved connections with open/switch and edit actions. Switching returns through launch; mounted chats/history cannot use the new account for old conversation or agent IDs.
- History guards duplicate creation and stale refresh/paging responses, deduplicates pages, and offers retry when loading older conversations fails.
- Connection editing invalidates test results when credentials or URLs change, handles secret-store/test/save failures, and prevents edits during a test. HTTP server addresses are normalized to WebSocket addresses before saving for the SDK.
- The production composer retains real send, stop, queue, attachment, model, and
approval callbacks. The
/stillsroute remains a development-only fixture.
The emulator is not signed in. An actual account or server connection is required before claiming end-to-end message/stream verification. No account has been created, no live agent has been provisioned, and no production message has been sent.
Final build verification: the arm64 Android release APK was built, installed as an update on emulator-5554, and launched successfully to the real connection screen. The final bundle was checked to contain the paginated launch and URL normalization changes. The final iOS JavaScript/Hermes export also passed; no native iOS binary was built. The initial build targeted the emulator; subsequent physical-device installation and validation are described below.
Android artifact: artifacts/co-release.apk (local development signing).
Channel notifications #
User rows from channel-notification envelopes now render as normal bubbles with source and sender attribution (for example, Discord · Cameron). The shared transcript projection handles both history and incoming rows. Transport IDs, server-local attachment paths, thread-history scaffolding, and download tool instructions stay out of message text. Reply excerpts, reactions, attachment names, and audio transcriptions remain readable. Attachment paths are not linked because they belong to the agent's machine, not the phone.
Parsing is restricted to complete channel envelopes with routing attributes. Markup is interpreted before entity decoding so escaped XML in a person's actual message remains literal. Source fields are flat strings, preserving transcript memoization. The channels preview uses the same projection with synthetic data.
The phone verification also exposed Threadkeeper active-anchor metadata appended outside a Signal notification. The parser accepts that known harness suffix only when the remaining content is a valid channel envelope. Ordinary text and unknown trailing content are preserved. A regression test covers this shape, and the actual phone row was checked locally without changing its stored content.
Final physical-device check: rebuilt and installed in place on the Pixel 10 Pro. The authenticated conversation history now displays Signal · Cameron attribution, readable quoted replies, and compact message bodies without notification XML or Threadkeeper context. An after screenshot was captured locally. The full suite passes (51 tests, 87 assertions), as do typecheck, lint, and Android release build.
Tool-call accordions #
Tool calls now remain in the transcript, grouped into one collapsed accordion per user turn, anchored at the first call. Progress messages between calls remain in place. The collapsed row shows only the latest call; its label updates as calls arrive. Expanding reveals calls in execution order with status. Tapping a call opens its full recorded input/result in a scrollable sheet. Long call lists scroll inside the accordion. Approval decisions remain in the existing approval card.
Raw JSON summaries stay in the detail sheet instead of crowding the collapsed label. Reasoning stays hidden. Stable group IDs keep an open accordion open during streaming, and expanding history disables automatic pinning until the user returns to the latest content. The old duplicate live-tool slot above the composer is gone.
Verified collapsed/latest-only, expansion, and tool details in the browser and Android Expo Go, with grouping tests for interleaved progress, separate user turns, streamed calls/results, and history that begins mid-turn. Full suite: 56 tests, 101 assertions. Typecheck and lint pass.
The tool row reads as a caption above the answer and preserves its 44pt tap target. Its label uses the agent-written description from the tool arguments, falling back to the tool name when absent. Commands remain in the detail sheet. There is no chevron or plus/minus decoration. Production and preview share the components and spacing. Collapsed and expanded states were visually checked. Current full suite: 58 tests and 112 assertions; typecheck and lint pass.
Android keyboard positioning #
The chat and preview now wrap the whole screen in Keyboard Controller's KeyboardAvoidingView, with KeyboardProvider at the app root. Keeping the header and safe area inside that boundary prevents the nested layout from undercounting the keyboard overlap. The composer stays above the keyboard while the transcript shrinks, and returns to the bottom when the keyboard is dismissed.
Built and installed on the physical Pixel 10 Pro. Verified keyboard opening and dismissal in the real conversation without sending a message. Typecheck and lint pass; the web preview still renders. Native iOS was not exercised.