diff --git a/.github/pr-screenshots/ios18-header/header-ios26-light.png b/.github/pr-screenshots/ios18-header/header-ios26-light.png
new file mode 100644
index 0000000000..de73271d63
Binary files /dev/null and b/.github/pr-screenshots/ios18-header/header-ios26-light.png differ
diff --git a/apps/mobile/DESIGN.md b/apps/mobile/DESIGN.md
index 7cabb8946c..54ae55ee08 100644
--- a/apps/mobile/DESIGN.md
+++ b/apps/mobile/DESIGN.md
@@ -172,11 +172,11 @@ The shell is set by [ADR-0211](../../docs/adr/0211-the-mobile-app-has-two-tabs-w
**Chat**
- Header: the system navigation header of the root native stack (expo-router `Stack`), so back, the swipe back and the iOS 26 header transitions are the platform's own. It has no bar fill, title text, subtitle or state dot. Leading, from the left: Back, then right beside it the title chip (the Bot's avatar and name, leading-aligned, never centred), which opens the Bot profile. Trailing: one round button for the Bot's computer. Back is the native back button; a plain back control replaces it only when the chat is the first screen of the stack, and returns to Chats.
- - iOS: the header is transparent (`headerTransparent`) with no `headerStyle.backgroundColor`, so UIKit draws the bar; a clear colour would remove its material. The chip is a native bar item of type `custom` (`unstable_headerLeftItems`), and `headerTitle` is empty. The computer button, and the plain back control when the chat is the first screen, are native bar buttons with SF Symbols (`macwindow`, `chevron.left`), so UIKit tints them. The chip's text uses the system `label` colour, not `fg`, because the bar's glass picks its own light or dark look from what is under it and from Reduce Transparency; a fixed `fg` went white on a light grey item in dark mode with Reduce Transparency on. A zero-width `spacing` item separates the chip from Back so each gets its own glass shape: a round Back and a separate capsule. iOS 26 draws that Liquid Glass behind the bar items itself, so the items carry no `glassEffect` or fill of their own (that would draw a second, skinny capsule). The chip is capped so the computer button always fits. Before iOS 26 the bar uses the system chrome blur.
+ - iOS: the header is transparent (`headerTransparent`) with no `headerStyle.backgroundColor`, so UIKit draws the bar; a clear colour would remove its material. The chip is a native bar item of type `custom` (`unstable_headerLeftItems`), and `headerTitle` is empty. The computer button, and the plain back control when the chat is the first screen, are native bar buttons with SF Symbols (`macwindow`, `chevron.left`), so UIKit tints them. The chip's text uses the system `label` colour, not `fg`, because the bar's glass picks its own light or dark look from what is under it and from Reduce Transparency; a fixed `fg` went white on a light grey item in dark mode with Reduce Transparency on. A zero-width `spacing` item separates the chip from Back so each gets its own glass shape: a round Back and a separate capsule. iOS 26 draws that Liquid Glass behind the bar items itself, so the items carry no `glassEffect` or fill of their own (that would draw a second, skinny capsule). The chip is capped so the computer button always fits. Before iOS 26 there is no Liquid Glass, and UIKit's own bar material (`headerBlurEffect`) drew a frosted band with a hard bottom edge across the top of the chat. So before iOS 26 the bar has no material at all: it stays transparent, the top edge is the same drawn fade as Android's (see below), and Back, the chip and the computer button are the three opaque islands Android uses (`headerIslands`: `headerGlassFill`'s frosted `raised` fill with a `raised` hairline), as `custom` bar items. Back is the round `HeaderBackButton` in place of UIKit's back button, which sat 8pt from the screen edge; a custom item gets the bar's standard leading margin, as the computer button gets the trailing one.
- Android: the header floats over the messages like iOS's (`headerTransparent`, no bar fill, no shadow), with the same three shapes as Grok's chat header: a round Back, the title chip at the start (`headerTitleAlign: 'left'`) as its own capsule island, and a round computer button, each its own shape `space.x3` apart (the title wrapper's horizontal margin), never touching. Each shape uses the opaque-iOS fallback of the header buttons (`headerGlassFill`: frosted `raised` fill with a `raised` hairline), so the chip reads as an island, not a label in a bar. Back is always this round button (it replaces the native navigation icon; system and predictive back still work). The list pads its own top by the header height, and messages scroll under the header through the drawn top fade (see below). Android has no system scroll edge effect: Material 3 only tints the top app bar on scroll, and the View fading edge (`fadingEdgeLength`) fades content linearly at the scroll view's own bounds, so it cannot keep what passes under the floating chrome hidden. Back's icon is `BackIcon`: a chevron on iOS and the Material `arrow_back` on Android, as in drawer and sheet headers.
- The chip holds, in one row, the Bot's avatar (28pt, round, no state ring) and its name in `body` strong; a group shows its mark and name. It is `theme.touch` tall with padding concentric with its corners. The Bot's state is read out in its accessibility label only. Pressing shows the `raised` pressed fill. Icons in the header are `fg`, never the Bot's accent.
- - iOS: messages run under the transparent header and the status bar, and UIKit's scroll edge effect (left on `automatic`) softens them there. The list uses `contentInsetAdjustmentBehavior="automatic"`, so UIKit, not a manual padding, keeps the header's height free above the oldest message at rest; the edge effect needs that automatic inset. The edge effect and React Native Screens both find the content scroll view through the first-subview chain of the screen, so the message list is the first thing in that chain: a default or colour chat background is the frame's own `backgroundColor`, not a view in front of the list. An image background still needs a view behind the list, and with one the soft edge does not reach the list. UIKit also adds the home-indicator safe area to the bottom inset while the list reaches the screen bottom (keyboard closed); the list cancels it with a negative `contentInset.bottom`, because the composer's height already includes that padding. Without this, scrolling to the very end left 34pt more space below the newest message than the resting position. There is no painted top gradient. A transparent header dimmed the whole message list on iOS 26 while the list was inverted (a scaleY flip); the list now runs top to bottom, which this header depends on.
- - The list runs to the bottom of the screen, and the composer floats over it with no bar of its own; messages pass around and under its **+** button and field capsule. On iOS 26 with Reduce Transparency off both shapes are Liquid Glass, like iOS Messages; older iOS and Reduce Transparency give them an opaque `surface` fill with a `borderStrong` hairline, and Android gives the field the opaque `raised` fill, so on those nothing shows through where the Human types. The bottom of the screen fades out with the same light gradient over the composer and `edgeFade.bottom` above it. The list keeps that much space below the newest message, so at rest it sits just above the composer; scrolled up, messages pass behind the composer. Dragging the list dismisses the keyboard: interactively on iOS (the keyboard follows the finger once it reaches it), on drag on Android. On iOS and Android the bottom edge is a drawn mask layer between the list and the composer, like Grok's chat: one soft curve (`(1 − d)^edgeFade.curve`, sampled `edgeFade.samples` times) painted in the chat's own background colour (`base` with an image background). At the bottom it is held solid from the screen edge up to `space.x2` below the top of the composer's field capsule, whatever the draft's line count, then the curve clears over `edgeFade.bottom` just above the capsule, so messages stay readable right up to the composer and are hidden under it. At the top (Android's floating header) it is held solid across the status-bar safe area, then the curve clears `edgeFade.reach` below the header. iOS 26 hides UIKit's bottom scroll edge effect for the chat (`scrollEdgeEffects.bottom: 'hidden'`) and does not use a `UIScrollEdgeElementContainerInteraction` on the composer: UIKit picked the hard style there, an opaque band in a different colour from the list with a hairline across its top, at a height that did not follow a wrapped draft, and neither re-adding the interaction nor pinning the `soft` style fixed it. The top edge stays UIKit's automatic scroll edge effect. With the keyboard open the composer's pill sits `space.x3` above it: the keyboard already covers the home indicator, so the chat frame takes the composer's safe-area padding back out of the keyboard offset instead of counting it twice.
+ - iOS: messages run under the transparent header and the status bar, and UIKit's scroll edge effect (left on `automatic`) softens them there. The list uses `contentInsetAdjustmentBehavior="automatic"`, so UIKit, not a manual padding, keeps the header's height free above the oldest message at rest; the edge effect needs that automatic inset. The edge effect and React Native Screens both find the content scroll view through the first-subview chain of the screen, so the message list is the first thing in that chain: a default or colour chat background is the frame's own `backgroundColor`, not a view in front of the list. An image background still needs a view behind the list, and with one the soft edge does not reach the list. UIKit also adds the home-indicator safe area to the bottom inset while the list reaches the screen bottom (keyboard closed); the list cancels it with a negative `contentInset.bottom`, because the composer's height already includes that padding. Without this, scrolling to the very end left 34pt more space below the newest message than the resting position. On iOS 26 there is no painted top gradient. A transparent header dimmed the whole message list on iOS 26 while the list was inverted (a scaleY flip); the list now runs top to bottom, which this header depends on.
+ - The list runs to the bottom of the screen, and the composer floats over it with no bar of its own; messages pass around and under its **+** button and field capsule. On iOS 26 with Reduce Transparency off both shapes are Liquid Glass, like iOS Messages; older iOS and Reduce Transparency give them an opaque `surface` fill with a `borderStrong` hairline, and Android gives the field the opaque `raised` fill, so on those nothing shows through where the Human types. The bottom of the screen fades out with the same light gradient over the composer and `edgeFade.bottom` above it. The list keeps that much space below the newest message, so at rest it sits just above the composer; scrolled up, messages pass behind the composer. Dragging the list dismisses the keyboard: interactively on iOS (the keyboard follows the finger once it reaches it), on drag on Android. On iOS and Android the bottom edge is a drawn mask layer between the list and the composer, like Grok's chat: one soft curve (`(1 − d)^edgeFade.curve`, sampled `edgeFade.samples` times) painted in the chat's own background colour (`base` with an image background). At the bottom it is held solid from the screen edge up to `space.x2` below the top of the composer's field capsule, whatever the draft's line count, then the curve clears over `edgeFade.bottom` just above the capsule, so messages stay readable right up to the composer and are hidden under it. At the top (Android's floating header, and iOS before 26) it is held solid across the status-bar safe area, then the curve clears `edgeFade.reach` below the header. iOS 26 hides UIKit's bottom scroll edge effect for the chat (`scrollEdgeEffects.bottom: 'hidden'`) and does not use a `UIScrollEdgeElementContainerInteraction` on the composer: UIKit picked the hard style there, an opaque band in a different colour from the list with a hairline across its top, at a height that did not follow a wrapped draft, and neither re-adding the interaction nor pinning the `soft` style fixed it. The top edge stays UIKit's automatic scroll edge effect. With the keyboard open the composer's pill sits `space.x3` above it: the keyboard already covers the home indicator, so the chat frame takes the composer's safe-area padding back out of the keyboard offset instead of counting it twice.
- Messages:
- Activity rows show Bot DMs, posts elsewhere, memory commits, Bot creation, departures and stopped turns as one left-aligned meta line with a kind icon and tail ellipsis. They use the same `bubbleRow(true)` inset and single `space.x4` (12pt) top gap as a new message group, with no bottom padding or vertically centred minimum-height box: bubble → activity, activity → activity and activity → new message group keep the same boundary gap. Icons and avatars match the meta line height. In groups, the actor avatar occupies the existing speaker gutter, followed by the icon at the bubble's left edge and the description. In a Human DM, omit the current Bot's avatar and redundant name; Bot-DM actions show the other Bot's avatar after the icon. Missing avatars use the person icon.
- Activity rows do not navigate on tap. Long-press (or the accessibility details action) opens the message sheet with the complete plain-text content in a scrollable, selectable block capped at `messageSheet.textHeightRatio` of the window height, then Copy/Share and an explicit Open conversation, Open memory or Open new Bot action when a destination exists; there are no reactions. Consecutive posts by the same Bot into the same Channel on the same day fold into a counted row whose menu opens the latest post. Memory opens the Bot's memory files, not a commit diff. Bot-to-Bot DMs remain read-only. Keep full actor/action/detail text in the accessibility label and menu even when the compact memory line uses only the icon and commit subject.
diff --git a/apps/mobile/src/ui/chat/conversation-screen.tsx b/apps/mobile/src/ui/chat/conversation-screen.tsx
index 76fe130e11..db5d2b2d8f 100644
--- a/apps/mobile/src/ui/chat/conversation-screen.tsx
+++ b/apps/mobile/src/ui/chat/conversation-screen.tsx
@@ -84,6 +84,7 @@ import {
barLabelStyle,
floatingHeader,
glassHeader,
+ headerIslands,
useHeaderOverlap,
useHeaderPadding,
} from './native-header';
@@ -834,10 +835,10 @@ function ChatConversation({
: undefined;
const trailing =
fullClient === undefined ? null : (
-
+
);
const ios = Platform.OS === 'ios';
- const back = ;
+ const back = ;
const titleItem = (
{title}
);
@@ -870,6 +871,8 @@ function ChatConversation({
: undefined;
const listTop = notice === undefined ? headerPadding : 0;
+ const topFade =
+ notice !== undefined ? 0 : floatingHeader ? headerPadding : glassHeader ? 0 : headerOverlap;
const composerCover = Math.max(0, composerHeight - space.x3 - space.x2);
const workingReserve = working.length > 0 ? workingHeight : 0;
const fadeColor = background.kind === 'color' ? background.color : theme.color.base;
@@ -883,7 +886,6 @@ function ChatConversation({
headerStyle: ios || floatingHeader ? {} : { backgroundColor: theme.color.base },
headerShadowVisible: false,
headerBackButtonDisplayMode: 'minimal',
- ...(ios && !glassHeader ? { headerBlurEffect: 'systemChromeMaterial' as const } : {}),
...(glassHeader
? { scrollEdgeEffects: { top: 'automatic' as const, bottom: 'hidden' as const } }
: {}),
@@ -891,36 +893,45 @@ function ChatConversation({
? {
title: '',
headerTitle: '',
- headerBackVisible: canGoBack,
+ headerBackVisible: canGoBack && !headerIslands,
unstable_headerLeftItems: () => [
- ...(canGoBack
- ? []
- : [
- {
- type: 'button' as const,
- label: t.back,
- icon: { type: 'sfSymbol' as const, name: 'chevron.left' as const },
- onPress: leave,
- },
- ]),
+ ...(headerIslands
+ ? [{ type: 'custom' as const, element: back }]
+ : canGoBack
+ ? []
+ : [
+ {
+ type: 'button' as const,
+ label: t.back,
+ icon: { type: 'sfSymbol' as const, name: 'chevron.left' as const },
+ onPress: leave,
+ },
+ ]),
{ type: 'spacing' as const, spacing: 0 },
{ type: 'custom' as const, element: titleItem },
],
unstable_headerRightItems: () =>
fullClient === undefined
? []
- : [
- {
- type: 'button' as const,
- label: t.openFullClient,
- icon: { type: 'sfSymbol' as const, name: 'macwindow' as const },
- onPress: () =>
- router.push({
- pathname: '/full-client',
- params: fullClientParams(fullClient),
- }),
- },
- ],
+ : headerIslands
+ ? [
+ {
+ type: 'custom' as const,
+ element: ,
+ },
+ ]
+ : [
+ {
+ type: 'button' as const,
+ label: t.openFullClient,
+ icon: { type: 'sfSymbol' as const, name: 'macwindow' as const },
+ onPress: () =>
+ router.push({
+ pathname: '/full-client',
+ params: fullClientParams(fullClient),
+ }),
+ },
+ ],
}
: {
headerTitleAlign: 'left' as const,
@@ -1174,11 +1185,11 @@ function ChatConversation({
) : null}
- {listTop > 0 ? (
+ {topFade > 0 ? (
) : null}
diff --git a/apps/mobile/src/ui/chat/header-chrome.tsx b/apps/mobile/src/ui/chat/header-chrome.tsx
index 0ee2ce8b57..cf6d9da00d 100644
--- a/apps/mobile/src/ui/chat/header-chrome.tsx
+++ b/apps/mobile/src/ui/chat/header-chrome.tsx
@@ -1,5 +1,5 @@
import { useId, type ReactNode } from 'react';
-import { Platform, Pressable, View } from 'react-native';
+import { Pressable, View } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import Svg, { Defs, LinearGradient, Rect, Stop } from 'react-native-svg';
@@ -7,6 +7,7 @@ import { frosted, pressTint, useDesignTheme, type DesignTheme } from '../design/
import { edge, radius, space } from '../design/tokens';
import { DrawerMaterial, EdgeMaterial, useLiquidGlass } from '../primitives/drawer-material';
import { BackIcon } from '../shell/back-icon';
+import { headerIslands } from './header-kind';
import { t } from '../strings';
import { edgeFadeStops } from './edge-fade';
@@ -73,7 +74,7 @@ export function headerGlassFill(theme: DesignTheme, glass: boolean, pressed: boo
}
export function titleChipFill(theme: DesignTheme, pressed: boolean) {
- if (Platform.OS === 'android') return headerGlassFill(theme, false, pressed);
+ if (headerIslands) return headerGlassFill(theme, false, pressed);
return { backgroundColor: pressed ? theme.layer.raised.pressed : undefined };
}
diff --git a/apps/mobile/src/ui/chat/header-kind.ts b/apps/mobile/src/ui/chat/header-kind.ts
new file mode 100644
index 0000000000..997a627ab8
--- /dev/null
+++ b/apps/mobile/src/ui/chat/header-kind.ts
@@ -0,0 +1,8 @@
+import { Platform } from 'react-native';
+
+export const glassHeader =
+ Platform.OS === 'ios' && Number.parseInt(String(Platform.Version), 10) >= 26;
+
+export const floatingHeader = Platform.OS === 'android';
+
+export const headerIslands = floatingHeader || (Platform.OS === 'ios' && !glassHeader);
diff --git a/apps/mobile/src/ui/chat/native-header.ts b/apps/mobile/src/ui/chat/native-header.ts
index 1ae2dd9f72..04c58df343 100644
--- a/apps/mobile/src/ui/chat/native-header.ts
+++ b/apps/mobile/src/ui/chat/native-header.ts
@@ -1,16 +1,15 @@
import { useHeaderHeight } from 'expo-router/react-navigation';
import { Platform, PlatformColor, type TextStyle } from 'react-native';
-export const glassHeader =
- Platform.OS === 'ios' && Number.parseInt(String(Platform.Version), 10) >= 26;
+import { floatingHeader } from './header-kind';
+
+export { floatingHeader, glassHeader, headerIslands } from './header-kind';
export function useHeaderOverlap(): number {
const height = useHeaderHeight();
return Platform.OS === 'ios' ? height : 0;
}
-export const floatingHeader = Platform.OS === 'android';
-
export function useHeaderPadding(): number {
const height = useHeaderHeight();
return floatingHeader ? height : 0;
diff --git a/apps/mobile/test/conversation-navigation.test.tsx b/apps/mobile/test/conversation-navigation.test.tsx
index af1b844c77..16b3056c57 100644
--- a/apps/mobile/test/conversation-navigation.test.tsx
+++ b/apps/mobile/test/conversation-navigation.test.tsx
@@ -19,6 +19,7 @@ const state = vi.hoisted(() => ({
} as ConversationSnapshot,
active: false,
display: { mode: 'streaming', loaded: true },
+ glassHeader: true,
}));
vi.mock('../src/ui/shell/recent-chats', () => ({
@@ -36,6 +37,7 @@ vi.mock('expo-router', () => ({
options: {
headerLeft?: () => ReactNode;
headerBackVisible?: boolean;
+ headerBlurEffect?: string;
unstable_headerLeftItems?: () => Array<{
type: string;
element?: ReactNode;
@@ -44,7 +46,10 @@ vi.mock('expo-router', () => ({
}>;
};
}) => (
-
+
{options.unstable_headerLeftItems?.().map((item, index) => (
{item.type === 'button' ? (
@@ -102,7 +107,12 @@ vi.mock('../src/host/speech', () => ({
useDictation: () => ({ state: { status: 'idle' }, mountRef: () => undefined }),
}));
vi.mock('../src/ui/chat/native-header', () => ({
- glassHeader: true,
+ get glassHeader() {
+ return state.glassHeader;
+ },
+ get headerIslands() {
+ return !state.glassHeader;
+ },
barLabelStyle: {},
useHeaderOverlap: () => 80,
floatingHeader: false,
@@ -197,6 +207,7 @@ beforeEach(() => {
state.host.roster.bots = [];
state.active = false;
state.display = { mode: 'streaming', loaded: true };
+ state.glassHeader = true;
});
it('refuses a retained route after switching Computers even when its Bot slug collides', async () => {
@@ -223,6 +234,65 @@ it('keeps the bottom fade at the message viewport edge beneath the composer cont
expect(fade!.compareDocumentPosition(controls) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
});
+it('leaves the top edge and Back to the iOS 26 glass header', async () => {
+ const os = Platform.OS;
+ Object.assign(Platform, { OS: 'ios' });
+ try {
+ state.history = ['/', '/dm/ada'];
+ state.host.roster.bots = [
+ {
+ slug: 'ada',
+ displayName: 'Ada',
+ state: 'idle',
+ description: '',
+ roles: [],
+ computerAccess: false,
+ browserAccess: false,
+ paused: false,
+ },
+ ];
+ const view = await render({ kind: 'dm', slug: 'ada' });
+ const header = view.querySelector('header')!;
+ expect(view.querySelector('[data-edge="top"]')).toBeNull();
+ expect(header.getAttribute('data-blur')).toBe('none');
+ expect(header.getAttribute('data-back-visible')).toBe('true');
+ expect(header.textContent).not.toContain('Header back');
+ } finally {
+ Object.assign(Platform, { OS: os });
+ }
+});
+
+it('draws its own top fade and an inset round Back before iOS 26', async () => {
+ const os = Platform.OS;
+ Object.assign(Platform, { OS: 'ios' });
+ try {
+ state.glassHeader = false;
+ state.history = ['/', '/dm/ada'];
+ state.host.roster.bots = [
+ {
+ slug: 'ada',
+ displayName: 'Ada',
+ state: 'idle',
+ description: '',
+ roles: [],
+ computerAccess: false,
+ browserAccess: false,
+ paused: false,
+ },
+ ];
+ const view = await render({ kind: 'dm', slug: 'ada' });
+ const header = view.querySelector('header')!;
+ expect(header.getAttribute('data-blur')).toBe('none');
+ expect(header.getAttribute('data-back-visible')).toBe('false');
+ expect(header.textContent).toContain('Header back');
+ expect(view.querySelector('[data-edge="top"]')?.getAttribute('data-height')).toBe(
+ String(80 + edgeFade.reach),
+ );
+ } finally {
+ Object.assign(Platform, { OS: os });
+ }
+});
+
it('switches a live reply between buffered streaming and complete bubbles without hiding history', async () => {
state.active = true;
state.host.roster.bots = [
diff --git a/apps/mobile/test/conversation-streaming-rows.test.tsx b/apps/mobile/test/conversation-streaming-rows.test.tsx
index 72f027fa3e..7c53953401 100644
--- a/apps/mobile/test/conversation-streaming-rows.test.tsx
+++ b/apps/mobile/test/conversation-streaming-rows.test.tsx
@@ -137,6 +137,7 @@ vi.mock('../src/host/speech', () => ({
}));
vi.mock('../src/ui/chat/native-header', () => ({
glassHeader: true,
+ headerIslands: false,
useHeaderOverlap: () => 80,
floatingHeader: false,
useHeaderPadding: () => 0,