Skip to content

fix(mobile): the keyboard and command palette offer New thread only to people who can start one - #1227

Open
Jacksondr5 wants to merge 2 commits into
j5/mainfrom
j5code/mobile-1102-wide-start-doors
Open

Jacksondr5 wants to merge 2 commits into
j5/mainfrom
j5code/mobile-1102-wide-start-doors

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

#1100 hid New thread and Add project from people who can't use them, but a few doors on wide layouts (iPad, the tablet sidebar, the unfolded Duo, a phone with a keyboard) still offered them. Using one led to "Nothing to start a thread in". Closes #1102.

What changed

The v0.1.11 advance (#1205) had already gated the wide layouts' visible buttons with useStartsSomewhere: the empty detail pane, the iPad header and unfolded Duo compose (useWorkspaceCompose), the split-view list's New task, and the Android rail and floating tabs. What was left were the keyboard doors and one menu item upstream added at v0.1.11:

  • ⌘N (HardwareKeyboardCommandProvider.tsx): newTask is enabled only while useStartsSomewhere holds. AdaptiveWorkspaceLayout also registers newTask, so the provider removes it rather than just not adding it. The native module ignores commands that aren't enabled.
  • Command palette (CommandPalette.tsx):
    • "New thread in…" follows useStartsSomewhere.
    • "Add project" follows useAddsProjectSomewhere.
    • "New thread in ‹project›" and the per-project "New thread · ‹server›" rows list only useStartableProjects.
  • A thread row's "New thread on ‹branch›" (thread-list-v2-items.tsx, on the Chats list and the split-view sidebar) is offered only while useCanStartTaskIn holds for the row's project. Without that check, a thread-only Collaborator landed on a read-only draft. The council found this door in round 1.

These use the same rule as the phone layout: start permission plus upstream's "Operate tasks". No new rule was added.

UI changes

Pending: the tester is capturing the thread-row menu, before and after, as a thread-only Collaborator and as an Owner, on iOS in light and dark.

Not captured: ⌘K (the palette) and ⌘N. agent-device has no key-chord API, and the device rules don't allow injecting keys another way. Those two are covered by the seam test and by the rule's own tests only. Android is not captured: the rig's Android emulator is blocked until #1218 reaches a nightly.

Live testing

Pending the tester's report.

Upstream impact

All three files are upstream's, and all three are recorded under FORK.md case 90 with file-table rows. apps/mobile/src/j5/upstreamSeams.test.ts gets a row for each, so an upstream advance that drops a call fails the test.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: seam rows. The rule itself is already covered by packages/client-runtime/src/j5/sharing.test.ts.
  • UI changes: before/after screenshots above (pending the tester)
  • Live testing: the section above says what ran live and what did not (pending)
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: no change to what upstream does for someone who may start a thread
  • Surfaces: on mobile, every New thread and Add project door is now gated. Web was already gated (case 90). Mobile only.
  • Docs: none change

Seen, not fixed

Council review

Delegate Round 1 Round 2
Claude Opus 7 (missed branch-menu door; fixed in 6104917938) 9, no open findings; visual pass pending evidence
GPT Sol 8 (same finding) 9, code passes; visual pass pending evidence

Claude Opus 5.5, Claude Code in J5 Code (builder seat).

🤖 Generated with Claude Code

…o people who can start one

Closes #1102

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 24, 2026 2:19am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 5 billable files and costs up to $1.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 45 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 66 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between aabc4a1 and 6104917.

Files selected for processing: 5

  • FORK.md
  • apps/mobile/src/features/keyboard/CommandPalette.tsx
  • apps/mobile/src/features/keyboard/HardwareKeyboardCommandProvider.tsx
  • apps/mobile/src/features/threads/thread-list-v2-items.tsx
  • apps/mobile/src/j5/upstreamSeams.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 24, 2026
…the person can start one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the size:M 30-99 effective changed lines (test files excluded in mixed PRs). label Nov 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 61049179 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: wide layouts still offer New thread to people who can't start one

1 participant