Repository navigation
Switch Hosts from a left drawer on the phone - #1859
Merged
Merged
Conversation
Tapping the Host chip or swiping right from the left edge of a tab root screen slides a Host drawer over the tabs. It lists each paired Host with online/offline status and pending count, marks the current one, switches on tap and ends with Pair a new computer. It replaces the Hosts modal. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
⛔ Files ignored due to path filters: 7
📒 Files selected for processing: 22
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
1 task
…1852) Fixed header, scrolling Host list with a current-Host ring, separate needs-you and unread badges and a per-Host menu (show, unpair), and a fixed footer with Pair a new computer and Notifications. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
… avatar Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
…unread dot Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
DoodleBears
pushed a commit
that referenced
this pull request
Oct 15, 2026
Brings in the Host drawer (#1859), Chats search and sections, and Customize header (#1866). Computers in Settings now closes the sheet and opens the Host drawer; Customize header moves from Me into a Settings Interface group. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P4McGrxLaXPVxUuUd2e7xZ
Contributor
Author
Batch QAHuman QA passed (Vain, 08:26Z): Host drawer opens from the chip and from an edge swipe and switches Host. Also verified on the iOS Simulator in the #1878 pass (chip and edge swipe open the drawer). Android untested. |
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.
Requested by Vain · project thread
Why the change
Switching between paired computers on the phone pushed a full-screen modal that was out of thumb reach and did not say which computer was online or needed the Human; it is now a left drawer opened by the Host chip or an edge swipe.
Closes #1852 (part of #1848, user stories 14–23).
Special things to note
GestureHandlerRootView, andapp/hosts.tsx(the old modal) is removed; the Me screen's Computers row now opens the drawer. Review focus:src/ui/shell/host-drawer.tsx(shared Reanimated progress driven by the edge pan, the drawer pan and the backdrop) andsrc/host/host-glance.ts(other Hosts are checked with onehumanAttentioncall each, only while the drawer is open).pnpm vitest run apps/mobile(newtest/host-drawer.test.ts: open/close/reveal states, focus return to the chip, Host selection, pairing, drag settling, rows with live and glanced status, glance offline/online and stale answers ignored after close),pnpm --filter @botharness/mobile typecheck,pnpm lint,pnpm format:check,pnpm changelog:check.Change outline
src/ui/shell/host-drawer.tsx—HostDrawer(header / scrolling list / footer) (mounted once in the tabs layout overNativeTabs),HostDrawerEdge(wraps Home and Activity root screens; a Pan with a 24pt lefthitSlop, so a chat's Back swipe is untouched),openHostDrawer().src/ui/shell/host-drawer-model.ts— drawer state store, rows and drag settling (pure, tested).src/host/host-glance.ts— status, needs-you and unread counts: the current Host's status and needs-you count come from its live connection and inbox; unread (and the other Hosts' counts) from one-shothumanAttentionreads (action,unread) while the drawer is open.hostSession.unpair(hostId), which now accepts any paired Host..maestro/simswitch flows and the verify-deepseekbot phone feature map point at the drawer.accessibilityViewIsModal, focus moves to its "Computers" heading and returns to the chip on close; Android Back closes it; the slide usesReduceMotion.System, and drag-tracking is skipped when Reduce Motion is on.motion.drawerandscrimadded totokens.ts; the panel is on thesheetlayer, one count chip per row, Needs-you before Unread.DESIGN.mddescribes the drawer.Host switcher — 390 × 844, three Hosts (one offline), light
Before — a modal list of names only.
After — a Slack-style drawer: fixed header, scrolling Hosts with status, one rounded-rectangle count badge (tabular figures, capped at 99+), yellow for Needs-you first, blue for Unread otherwise, a ring on the current Host's Computer avatar and a ⋯ menu (show, unpair), and a fixed footer with Pair a new computer and Notifications.
Host switcher — dark
After tapping MacBook Air — light and dark
🤖 Generated with Claude Code
https://claude.ai/code/session_01NphaUjuKfUXQu5xKA45ptk
Generated by Claude Code
Summary by CodeRabbit