Repository navigation
The web app runs inside a native phone shell: Chats, Home and Bots tabs, each with its own pages - #2360
Open
ataibarkai wants to merge 70 commits into
Open
The web app runs inside a native phone shell: Chats, Home and Bots tabs, each with its own pages#2360ataibarkai wants to merge 70 commits into
ataibarkai wants to merge 70 commits into
Conversation
… does /conversations shows the sidebar's list as a page: pinned first, unread marked, the same search over the whole history, New conversation, and the same rows, which pin, rename and delete as they do in the sidebar. It shares the panel's query, rows, search results and pagination rather than copying them, and the sidebar draws as before. It is what the phone app's Conversations tab opens, and works in a browser too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
The phone app loads the web app in a web view and draws its own tab bar and sign-in screen around it. The page knows it is there from what the shell injects, its user agent, or ?native-shell=ios for testing (lib/native-shell), and then: - draws no sidebar, drawer or sidebar toggle, in the app, Settings and Admin; General lists Settings' other pages, and every Settings or Admin page leads back to its first page; - tells the shell it is ready and, after every navigation, its path, the shell's tab for it and whether someone is signed in; - shows a quiet page at /sign and tells the shell nobody is signed in, unless ?native-sign-in=web asks for the web sign-in; - offers no Home Screen push and no notifications of its own, and does not bounce past its edges. A page asked for with openbot:open that is already open is handled and left as it is. A screen with no sidebar no longer keeps an empty band for its toggle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Opened signed out, the sign-in page told the shell signed-out before the root said ready. Ready is sent from a layout effect now, so it comes first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
bun app/workbench/mock-server.ts answers /api on 127.0.0.1:3001 from the workbench's fake API and the spec's generated answers, with fixed Bots and conversations, so Home, Conversations, a conversation and Bots draw real-looking pages behind app/serve.ts. It keeps the live socket open and quiet. MOCK_SIGNED_OUT=1 refuses anybody without its session cookie, and /__mock/session reads or changes that at run time. It also stands in for the phone app's sign-in hand-off: /api/auth/shell/handoff gives a single-use ticket for a PKCE challenge, and /api/auth/shell/enter checks the verifier, sets the session cookie and goes to the page asked for. MOCK_NO_HANDOFF=1 answers both 404. For tests only; nothing in the app imports it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
How the page knows it is in the shell, the same before the first paint; which of the shell's tabs each page belongs to; what the shell is told and in what order; the frame with no sidebar in the shell and the sidebar as before in a browser; the Conversations page's states; and the quiet sign-in page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
The phone app's status bar is already above the page, so PageShell keeps 24px above the title there (16px under a Back bar), not 48px (32px). A browser keeps the spacing it had. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
With no sidebar there was no way to Settings, Admin or Sign out. Home, Conversations and Bots now show the sidebar's own account menu at their top right, as the person's avatar named Account, opening below it. It is the same menu, made able to open below as well as beside the strip, and it needs no sidebar now. On Conversations, New conversation is the icon alone there, so both fit beside the title on a phone. A browser draws none of this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
ataibarkai
marked this pull request as ready for review
November 28, 2026 01:45
ataibarkai
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 28, 2026 01:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…place on all three tabs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…conversation header and Home's message box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…the conversation's offer is absent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…ck and Account Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…notifications check is not luck Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
… on a tap on nothing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…e app drops it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…osts In production only what the phone app injects and its user agent mark put the page in the shell: a link carrying ?native-shell=ios left a signed-out person with no way to sign in, and a signed-in one with no navigation, until the tab closed. ?native-shell=off still forgets the override anywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…as the server now does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…kes downloads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
…config, sign-out that ends the session, and an opt-in canned reply From the iOS and Android shell branches (Android's are a subset of iOS's), so app/ has one source. The enter route keeps its OpenBot-Shell header check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
- enter reads the PKCE verifier from the OpenBot-Shell-Verifier header only. A verifier in the address is not read, so an enter that carries it only there fails, and spends the ticket. - Past the OpenBot-Shell and Sec-Fetch refusals (which still leave the ticket unused), the ticket is spent as it is read, whatever is refused after. - OpenBot-Shell must be exactly ios or android, lowercase. - A malformed verifier (not 43 to 128 unreserved characters) is refused. - The custom scheme is bot.open.shell:/signed-in (1 slash), in the sign-in page's link and in the config answer. - Tickets are 32 random bytes, 43 characters, as the server's are. MOCK_ENTER_NO_HEADER_CHECK=1 now skips only the OpenBot-Shell and Sec-Fetch checks: the verifier is still read from its header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main reorganised the Unreleased notes into sections. The Conversations page entry moves under Conversations; the rest is main's. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Home's toggle bar now floats over the scrolling area (main), and the phone app's account button stays in it. 1.2.3 was tagged without this branch, so the Conversations page entry moves back up to Unreleased. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's sign-in now returns to the page somebody opened (?next=). On /sign the phone app's hand-off still comes first, then the app flow's handle, then that page, then home; malformed sheet values are ignored and the page is still returned to. OpenBot Cloud's own sign-in screen returns as main has it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main moved every icon to Hugeicons through @/components/icons. The phone app's own pages (Conversations, the shell's Back, the settings rows) now import from there too. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One test file imported a helper from each side; both stay. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Both sides added a line at the end of the Unreleased notes; both stay. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Both sides added a line at the end of the Unreleased notes; both stay. main's message box now drops a phone's keyboard once a message is sent, so the note in the phone app's keyboard rules that said it stays up is corrected. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main reverted the kept-agents change, so the test file keeps only this branch's import. The Unreleased notes were rebuilt into sections for 1.2.4; the Conversations page entry moves under On a phone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
A group conversation's header keeps the phone app's Back beside main's new avatar line. 1.2.4 was tagged without this branch, so the Conversations page entry moves back up to Unreleased. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main wrote the 1.2.5 notes into Unreleased, in sections. The Conversations page entry goes under On a phone, after them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1.2.5 was tagged without this branch, so the Conversations page entry moves back up to Unreleased. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main wrote the 1.2.6 notes into Unreleased. The Conversations page entry goes under On a phone, after them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
PageShell keeps main's wide column beside the phone app's Back. 1.2.6 and 1.2.7 were tagged without this branch, so the Conversations page entry moves back up to Unreleased. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Main's Conversations panel (New conversation, Search and Artifacts rows; Pinned and Recents) is taken as it is; ours adds back only the account button, the load failure with Try again and the row layout the /conversations page uses. The page's search box becomes a Search button that opens the command menu, the shell sizes the panel's new rows at 44px, and CHANGELOG.md is main's. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
The Bots page takes main's filled New Bot button and keeps the phone app's account button beside it. PageShell's imports carry both sides. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's sign-in screen now sends OpenBot Desktop's window to the person's own browser. On /sign both hold: already signed in, the phone app's hand-off or the app flow's verifier comes first, then Desktop's sign-in in this browser, then the page, then home. Desktop's window and OpenBot Cloud's screen return as main has them, without the sheet's values, which belong to a phone app's sheet only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's lists are flat rows now, with no card. The Conversations page's rows move 8px out to the column's edge and take the rounded hover main's rows have; PageRows insets their dividers itself. The Bots page follows main in dropping its row icons. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's account menu is shorter: the organization opens a switcher, Help holds Get the desktop app, Get troubleshooting logs and the version, and Teams moved to Settings. The phone app's Account button takes it as it is, with every row, Help's included, at a thumb's height, and still without a sidebar to close. In the phone app on an OpenBot a company runs itself, both rows above Help's version are absent, which left its divider dividing nothing. Help does not draw a divider that comes first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Main's Conversations panel with its own search again is taken as it is; ours adds back the account button beside New conversation, the load failure with Try again, and the row and search layouts the /conversations page uses. The page has its own search box again in place of the command menu's Search button, and the tests check the search box, the title row and searching in place. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's Help now opens with Report a bug, for everybody. So Help is never empty in the phone app, and the rule added here on Dec 2 that hid a divider with nothing above it is no longer needed: help-menu.tsx is main's again. The shell test checks Report a bug is offered there, at a thumb's height, instead. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One conflict, in the root route: main added the hook that says where a file downloaded in OpenBot Desktop went at the spot where this branch reports the route to the phone app's shell. Both are kept, main's first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
main's Windows computers on Azure, taken as it is: it touches no file this branch changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Both build their file in the page and hand the browser a blob: address. The iOS app saves only a file from the app's own server address and drops this one without a word; the Android app answers that the file can't be saved. So in the app's shell neither button is drawn, as "Get troubleshooting logs" and Audit's Export already are not. Copy stays on both, and a browser is unchanged. A file sent in a conversation, a generated picture and an artifact's export come from the server and are left as they are. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Two conflicts, both in the account menu, from main's "OpenBot runs on this computer": the avatar keeps main's new initials and the phone app's larger size, and the menu keeps main's Connect to an OpenBot row after a Help whose rows are still the phone app's height there. That row is drawn only in OpenBot Desktop, so it is left exactly as main has it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One conflict, in the page shell's Back link: main keeps a long name inside the bar with an ellipsis, where this branch gives every page under a tab a Back in the app's shell, 44px tall. The link keeps both: main's width and ellipsis on whichever Back is drawn, and the shell's height and stack pop on top. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One conflict, in the Conversations panel's imports: main moved Artifacts off the panel to a place of its own on the strip, so the panel no longer draws its row or imports its icon. main's panel is taken as it is, which means the shell's Chats tab holds conversations only, as Desktop's panel now does. The shell has no strip, so Artifacts has no entry there for now; its page still opens by its address, with Back. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Four conflicts, each main's design pass meeting a line this branch sizes for the app's shell. main's new look is taken everywhere and the shell's sizes are kept on top of it: - the account's avatar: main's size-7 and stronger initials, 36px in the shell; - a conversation's row: main's hover that leaves the open row alone, with the page layout's own padding; - a conversation's header: main's bar that no longer wraps, 44px buttons in the shell; - the sign-in screen and the conversation: both sides' imports. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One conflict, in a test's imports: main's test of a kept agent and this branch's test of a conversation opened in the app's shell both add an import to channel-join-replay. Both are kept. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
One conflict, in the Bots panel: main took the New conversation row out from under each Bot and put a + on the Bot's own row, where this branch had marked that row for the app's shell to draw at 44px. main's panel is taken as it is, and the shell's 44px rule for the square at the end of a Bot's row now covers the + as well as the caret. Show more keeps its mark. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Lets the web app run inside a native phone shell: a web view under a native tab bar with 3 tabs, labelled Chats, Home and Bots by the apps. The page draws no navigation of its own; inside it, the Chats and Bots tabs are the sidebar's own panels, each tab keeps its own pages, and Back stays inside the tab. This is the web side; the iOS and Android shells live on
ios-webview-shellandandroid-webview-shelland are not part of this pull request. A browser, OpenBot Desktop and the extension are unchanged throughout; the plain-browser screenshots are pixel-identical before and after.window.__OPENBOT_NATIVE_SHELL__and marks its user agent withOpenBotShell-), the app draws only the page: no sidebar, no drawer, no sidebar toggles, no empty toggle band. The tab pages carry the sidebar's own Account menu, so Settings and Sign out stay reachable.?native-shell=iosturns the layout on for testing, only in development builds and on development hosts (localhost, 127.0.0.1, [::1], *.localhost, *.test);?native-shell=offforgets it anywhere./conversationsin the shell): the same rows under Pinned and Recents, unread and Working marks, search over the whole history, pagination, and New conversation, so it cannot drift from Desktop. The panel's heading stays "Conversations"; "Chats" is the tab's name, as on Desktop's strip. On the tab, a first page that could not be read says so with Try again./botsin the shell): each Bot closed until its caret opens it to its latest conversations and Show more, a + on the Bot's row that starts a conversation with it, the Bot's row opening its page, search, and New Bot. The management page with "Needs you" stays the browser's and Desktop's/bots; nothing in the shell links to it./conversationsin a browser too: the panel's list, search and New conversation as a page. Nothing links to it from the sidebar.lib/native-shell/tab-stacks.ts, applied byuse-tab-navigation.ts), as a native tab bar app does:openbot:openevent with a tab's root) shows that tab exactly where it was left, with its list at the same scroll and its data from the cache; tapping the current tab pops it to its root, or at its root scrolls its list to the top.[/conversations, /channel/<id>]); reaching the sign-in page clears every stack.PageShell's back link, and a "Back" on any page under a tab that names none of its own.{ type: "ready" }once the first page has drawn something a person can read (the router settled and readable text on screen, or the shell's signed-out page), or after 20 s regardless. Until then everything else is held, soreadyalways comes first.{ type: "route", path, tab, signedIn, canGoBack, depth, scrollRestored }on every change of page.tabis the tab whose stack the page is in;depthis that stack's length (1 at its root) andcanGoBackisdepth > 1;scrollRestoredis always true, and a list returned to has itsroutesent once its scroll is back.{ type: "will-navigate", tab, direction, depth }before the page changes what is on screen, for a navigation inside a tab that the page started (a row, a link, its own Back) and that changes the path. On iOS, when the app received it, the page waits foropenbot:navigate-okonwindow, at most 120 ms, so the app can take a snapshot for its swipe back. Never on Android or in a browser.{ type: "signed-out" }when the page reaches the signed-out state.openbot:open(a tab tap, or a notification's page) andopenbot:back(system Back and the edge swipe, sent whencanGoBackwas true)./signshows a quiet screen and tells the shell, which shows its own sign-in./sign?native-sign-in=webshows the web sign-in, the shell's fallback. On a self-hosted OpenBot, a phone app's sign-in sheet that lands on/signwithshell_challenge,shell_platformandshell_callbackgoes on to/api/auth/shell/handoffafter signing in, built from those values once they check out.app/workbench/mock-server.ts): the real built app signed in with no OpenBot server, for the apps' UI tests and videos. 3 Bots and 15 conversations (unread, Working, more than "Show more" shows), conversations made by sending are kept,MOCK_REPLY=1streams a canned reply, the shell's sign-in hand-off with the server'senterrules (OpenBot-Shellheader;Sec-Fetch-Siteabsent ornone;Sec-Fetch-Modeabsent ornavigate;MOCK_ENTER_NO_HEADER_CHECK=1skips them), andMOCK_PERSON_NAME/MOCK_ORG_NAME. Nothing inapp/srcimports it.Where it runs
Boundary and audit
API and database
api/and no database. The panels read with the same generated client calls the sidebar uses. The hand-off address the sign-in sheet goes on to is named inapi/client-boundary.allow.ts(a document navigation to a page the server draws, under/api/auth).Changelog
On a phone.
/conversationslists everyconversation, pinned first, with search and New conversation, as the sidebar's Conversations
panel does. Nothing links to it from the sidebar. Inside a phone app that shows the web app in a
native shell (it names itself in its user agent) the web app draws only the page, without its
sidebar, and leaves sign-in and notifications to the shell. There its Chats and Bots tabs are the
sidebar's own Conversations and Bots panels, full width; every page under a tab has Back, which
returns to where it was opened inside that tab; and each tab keeps its place when another is
opened. A browser, and OpenBot Desktop, behave as before.
Proof
app/tests/native-shell.test.ts,native-shell-app.test.tsx,native-shell-tab-stacks.test.tsandnative-shell-reply-downloads.test.tsx: detection and the development-host rule, the tabs as panels, the stacks (push inside a tab, switching away and back, a tap on the current tab, Back only within the tab and nothing at a root, a deep link's stack, a page from the Account menu, sign-out), Back controls,ready,depth,will-navigateand its 120 ms ceiling, a second Back during a held route, and that outside the shell navigation is the browser's history as before. Alsosign-resume.test.tsx,channel-join-replay.test.tsx(no focus on opening in the shell) andaudit-export-truncated.test.tsx.helmnot installed). The real-browser tests of every file this touches pass.Body text on a 16px base in the shell touches the type scale, so it is its own pull request on top of this one (2377).
Not done here
https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
Generated by Claude Code