Skip to content

Phone Chats: pick All or a Host in the left drawer, drop the tabs and pager #2518

Closed

Description

@DoodleBears

Part of #2517.

What to build

  • Remove the environment tabs and sideways pager from the Chats screen. Show one list filtered by the selected view.
  • Add a 全部 / All row at the top of the left drawer. Picking a Host shows that Host; the selected row is marked.
  • The Chats title shows the selected view: All shows a chat icon in the default accent; a Host shows its icon in its colour.
  • Android only: choosing a Host with a colour makes the app accent follow that colour.
  • Delete the pager component.

Acceptance criteria

  • No tabs or pager on Chats; horizontal swipes on the list do nothing yet.
  • Drawer All row selects all; a Host row switches to that Host and selects it.
  • Title and icon follow the view; a removed Host falls back to All.
  • Android accent follows the Host colour; iOS accent is unchanged.
  • home-search.test.tsx drives the filter store; mobile vitest, typecheck and lint pass.
  • Native QA on iPhone and Android (light, dark, large text).

Notes

Implemented and parked in the #2500 thread (rebased after #2508 merges). It conflicts with #2509 in the drawer; rebase on main before opening the PR.

🤖 Generated with Claude Code

Activity

  1. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

  2. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 21, 2026
  3. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Agent: Codex
    • Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050
    • Issue scope: Track A / Phone Chats: pick All or a Host in the left drawer, drop the tabs and pager #2518 original two-commit mobile drawer views patch integration, requested by Vain.
    • State: handed-off — original source patch unavailable; no replacement implementation.
    • Result: fetched and rebased latest main at f878c43. Checked the specified patch location in all three installed WSL distributions, local refs/worktrees/recent commit history, remote branch names, downloads and applicable shared attachments. Only the old Track 0 patch was found; no Track A source was identified.
    • Remaining: parent obtains the actual two-commit patch or remote ref, then applies it with git am -3. Integration/QA checklist is prepared for feat(mobile): pair by account or Tailscale from a choice sheet; hide cloud Channels behind a flag #2512 empty home, account pairing route, drawer filter/title, Android Host accent and iOS edge swipe. Track B still depends on Track A merging.
    • Validation: no product files changed, no commits/PR, no tests/build/runtime or native QA performed. No Host/device resources acquired.
    • Known limits unchanged: remote chat text and attachment names only, images/cards missing; Host looks device-local by design; DSH Desktop unqualified; no physical two-machine tailnet test; native phone qualification remains unrun.
  4. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim — direct implementation authorized

  5. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent-Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050
    State: handed-off to coordinator.

    Requested by Vain. Draft PR #2531, branch t3/mobile-drawer-views, head 70ca072863d6d5acb30f2690429b7f1fc864e554. Independent implementation supersedes the missing-patch handoff. Typecheck, lint, format and build passed; changed tests 31 passed. Full mobile: 1036 passed / 12 failed / 9 skipped; all 12 failures independently reproduced on main. client-observer passed; workspace-grant-roundtrip timeout reproduced on main. No node:sqlite bundling failure observed this run.

    No native inputs changed. Android submitted to Windows Next batch without a lease; iOS deferred to coordinator combined external Mac acceptance per Vain. No native before/after screenshots or native acceptance yet; not merge-ready, no merge performed. Track B follows A. Known limits remain: device-local looks by design; remote text/attachment names only, images/cards missing; Desktop and physical-machine tailnet unqualified.

    Exact-head HTML generated locally via repository answer-me-with-html; no approved reviewer-accessible HTML publication was made, so accessibility remains a handoff gap. Runnable native matrix is in the committed phone-drawer-views guide and PR description. Local detailed handoff: .humanlayer/tasks/2518/handoff.md.

  6. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent-Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050
    State: active follow-up on existing PR #2531, requested by coordinator/Vain.
    Bounded scope: correct Android accent to selected CURRENT Host only (All/cloud/mismatch/default/iOS use default); prevent stale drawer Host switch completion from overriding a newer All/Host selection; add behavior regressions and correct docs/exact-head handoff. Same worktree/branch/PR. Native acceptance remains deferred, no device lease or Mac queue search.

  7. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent-Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050

    State: handed-off for coordinator review; PR #2531 remains Draft, not merge-ready. Requested by Vain. Refs #2500 / #2518.

    Final pushed head: ca06871e7c99025dcbe5a8c44a88de57b5c6be33; rebased base: a6704fd8555f04a9f82b6f753154ca5fc243cf76. Same branch t3/mobile-drawer-views; no unpushed tracked changes.

    All five reviewed findings are addressed:

    1. Android accent is injected only with the current Host filter selected and a configured colour. All/cloud/mismatched Host/no colour/iOS use the default theme. Regression covers Host→All, current/noncurrent filters, scheme and colour changes, no Host and iOS.
    2. A selection generation prevents older switch completions from committing the view after a newer All or Host choice. Existing HostSession authority is unchanged. Deferred Host→All and both Host-completion orders are covered.
    3. The localized header accessibility label includes the complete selected view name and existing cloud disambiguation. All, long Host and cloud labels are covered.
    4. New title icons and drawer All icon use their label role × live fontScale. Header regressions cover three font scales; the All wiring and glyph scaling semantics were inspected.
    5. All uses token-derived Android foreground ripple with clipping, including over its selected background. Static wiring is checked; actual native press feedback is still untested.

    Final-head typecheck, lint, format and 37 related tests (two files, one worker) passed. An earlier parallel worker-start timeout is retained separately and is not counted as a pass. Build passed before the final rebase, which brought in CI-only main changes. Full mobile was not rerun for this follow-up: prior results were 1036 pass / 12 fail / 9 skip, with all 12 locale failures independently reproduced on main. The 12 passing CI checks reported for 6fefff4 belong to that older head; final-head CI was not awaited.

    DESIGN, the bilingual fragment, feature guide, PR body, native handoff and exact-head HTML have been refreshed. The HTML was generated with the repository CLI and inspected at desktop/narrow widths; it remains a local/T3 handoff, without a reviewer-accessible public attachment. It is not runtime evidence.

    Native inputs: none, JS only; existing compatible Expo SDK 58.0.16 / React Native 0.88 client. iOS remains unrun for coordinator-led external Mac acceptance. Android remains Next batch with no lease and no native result. No shared Host/device was restarted. The exact-head native journey specifies two neutral paired Hosts, three OS font sizes × light/dark per platform, full screen-reader names, icon scaling, All ripple, Host→All accent reset, delayed switching, iOS EDGE_WIDTH and account routing. Native before/after screenshots are still missing.

    Track B still follows A; coordinator owns merge and the next independent reviews. Known wider limits remain: remote chat text/attachment names only (images/cards missing), device-local Host looks by design, DSH Desktop unqualified, no physical two-machine tailnet test.

  8. 1 remaining item

  9. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent-Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050

    State: handed-off for coordinator R3 independent review. Requested by Vain. Same Draft PR #2531, not merged and not merge-ready. Refs #2500 / #2518.

    Final pushed head: bd1c8ec171d31728a1ef4006696c766b9e325f30.
    Base: b1cf50ed22c65fe0292c236b07d9b11d1d7afbb3.
    Same branch t3/mobile-drawer-views; clean working tree, no unpushed tracked changes. Fetch/rebase before push found no newer base changes; explicit expected-head lease protected the push.

    The remaining R2 Spec P2 is addressed by serializing drawer-triggered switchTo calls. A later choice waits until the preceding real saveHosts/adopt settles before checking the current Host. This prevents A→pending B→A from returning early for old A, and prevents B/C persistence/adoption from completing out of invocation order. The existing generation still gates showView. All sets its filter immediately and does not cancel an already requested Host switch. Rejection is propagated to its caller but does not block the next queued choice.

    No HostSession/T4 interface changes: host-session.ts is untouched. No rewrite of pairing, unpairing, push or client lifecycle. Only host-drawer-model.ts has new production logic in this follow-up; the preceding accessibility/scaling/ripple/accent fixes remain intact.

    Regression evidence uses real HostSession, saveHosts, loadSavedHosts and adopt, with deferred SecureStore writes and native/transport test adapters:

    • A→pending B→A: final current Host, persisted Host and filter all A.
    • B→C with either storage gate released first: all three facts end on C.
    • pending B→All: current/persisted Host B and filter All.
    • Rejected earlier switch: later Host choice still completes.

    Two owner assertions failed before the fix (B instead of A, B instead of C); 45 tests across three files passed after it, with one worker. An earlier native-import timeout is retained separately and is not the red reproduction. Typecheck, lint and format passed after the latest-main rebase with process-local GOMAXPROCS=2. Full pnpm build passed, exit 0; A immediately released its exclusive heavy-build slot to the coordinator. Source checks/build ran on 25b8ae9fc; the final commit records the two generated browser/computer client bundles, only StyleX hashes changed, maps unchanged, and both JS syntax checks passed. Oxfmt excludes those generated files under repository rules; they were not hand-formatted.

    Parent-reported 13 CI checks passed / Standards 0 at ca06871 remains evidence for that prior SHA only. It did not resolve the remaining P2 at that SHA. New-head CI was not awaited; R3 independent review is pending. Full mobile was not rerun; earlier 12 locale failures were independently reproduced on main.

    PR description, bilingual fragment, DESIGN, feature guide, exact-head HTML and native handoff are updated. HTML remains local/T3 without a public reviewer attachment; it is not runtime evidence. The exact-head native journey includes A/B/C, owner/persistence after restart, default/intermediate/maximum OS text × light/dark, iOS EDGE_WIDTH, Android accent/ripple, screen-reader names and account routing.

    Native inputs are unchanged (JS only; compatible SDK58.0.16/RN0.88 development client). iOS/Android native checks and matched before/after screenshots remain unrun. No shared device, Metro or Host was started or restarted. Track B still follows A; coordinator owns review and merge. Known limits remain remote chat text/attachment names only (images/cards missing), device-local Host looks by design, DSH Desktop unqualified, and no physical two-machine tailnet test.

  10. DoodleBears commented on Oct 21, 2026

    @DoodleBears
    ContributorAuthor

    Agent-Task: codex/local/01a15f0c-71f0-7202-8a08-f2e8aacb6050

    State: handed-off for coordinator R3 independent review. Requested by Vain. Same Draft PR #2531, not merged and not merge-ready. Refs #2500 / #2518.

    Final pushed head: 4b0c1b7e79c4f4a7d60126b1b803c1494ec85ee3.
    Base: e0bbe34a4d4fcb36973fde9f1fa907102736640c.
    Same branch t3/mobile-drawer-views; clean working tree, no unpushed tracked changes. Fetch/rebase integrated main e0bbe34 / T1 #2535 without conflicts; explicit expected-head lease protected the push. Mobile source is unchanged by the rebase.

    The remaining R2 Spec P2 is addressed by serializing drawer-triggered switchTo calls. A later choice waits until the preceding real saveHosts/adopt settles before checking the current Host. This prevents A→pending B→A from returning early for old A, and prevents B/C persistence/adoption from completing out of invocation order. The existing generation still gates showView. All sets its filter immediately and does not cancel an already requested Host switch. Rejection is propagated to its caller but does not block the next queued choice.

    No HostSession/T4 interface changes: host-session.ts is untouched. No rewrite of pairing, unpairing, push or client lifecycle. Only host-drawer-model.ts has new production logic in this follow-up; the preceding accessibility/scaling/ripple/accent fixes remain intact.

    Regression evidence uses real HostSession, saveHosts, loadSavedHosts and adopt, with deferred SecureStore writes and native/transport test adapters:

    • A→pending B→A: final current Host, persisted Host and filter all A.
    • B→C with either storage gate released first: all three facts end on C.
    • pending B→All: current/persisted Host B and filter All.
    • Rejected earlier switch: later Host choice still completes.

    Two owner assertions failed before the fix (B instead of A, B instead of C); 45 tests across three files passed after it, with one worker. An earlier native-import timeout is retained separately and is not the red reproduction. Typecheck, lint and format passed after the latest-main rebase with process-local GOMAXPROCS=2. Full pnpm build passed, exit 0; A immediately released its exclusive heavy-build slot to the coordinator. All required integration checks and the full build were rerun on e0bbe34, with 7 additional StyleX tests passing. Rebuilt browser/computer bundles and maps exactly match main, so the redundant hash-only artifact commit was dropped. Both JS syntax checks passed. The earlier 25b8 build is prior-base evidence only; the new build log is separate. An initial node --test invocation of the Vitest StyleX file failed to initialize the runner; the correct Vitest invocation passed all 7 tests.

    Parent-reported 13 CI checks passed / Standards 0 at ca06871 remains evidence for that prior SHA only. It did not resolve the remaining P2 at that SHA. New-head CI was not awaited; R3 independent review is pending. Full mobile was not rerun; earlier 12 locale failures were independently reproduced on main.

    PR description, bilingual fragment, DESIGN, feature guide, exact-head HTML and native handoff are updated. HTML remains local/T3 without a public reviewer attachment; it is not runtime evidence. The exact-head native journey includes A/B/C, owner/persistence after restart, default/intermediate/maximum OS text × light/dark, iOS EDGE_WIDTH, Android accent/ripple, screen-reader names and account routing.

    Native inputs are unchanged (JS only; compatible SDK58.0.16/RN0.88 development client). iOS/Android native checks and matched before/after screenshots remain unrun. No shared device, Metro or Host was started or restarted. Track B still follows A; coordinator owns review and merge. Known limits remain remote chat text/attachment names only (images/cards missing), device-local Host looks by design, DSH Desktop unqualified, and no physical two-machine tailnet test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDsready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions