Skip to content

Show hover-revealed controls on large touch screens such as the 13" iPad - #5097

Merged
ymichael merged 2 commits into
mainfrom
bb/copy-bug-on-13-ipad-thr_5sie8dw3pd
Oct 7, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/copy-bug-on-13-ipad-thr_5sie8dw3pd

Conversation

@ymichael

@ymichael ymichael commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Controls that appear on hover (message copy/side-chat/edit/actions, disclosure chevrons, tab close buttons, notification and info-panel row actions, sidebar row and header controls, and some plugin row actions) are opacity-0 until group-hover. Tailwind only applies group-hover under @media (hover: hover). The touch fallback that forces them visible was max-md:pointer-coarse:, i.e. touch and narrower than 768px. A 13" iPad reports hover: none / pointer: coarse but is 1032px wide in portrait, so neither rule applied and the controls stayed invisible. The tooltip library still opened tooltips for a trackpad or Pencil pointer, which matches the Discord report ("Copy bug on 13" iPad": a "Copy message" tooltip shown over empty space). The iPad mini (744px) got the compact layout and was fine. The sidebar's CSS hover-actions block had the same width-gated media query (see #3832).

What changed

  • One rule for every hover-revealed control: visible under @media (hover: none), the exact complement of the (hover: hover) gate on group-hover. Screen width no longer decides visibility. Touch-target sizing stays width-based.
  • The shared helper coarse-pointer-visibility (COARSE_POINTER_HOVER_REVEAL_VISIBLE_CLASS) is renamed to hover-reveal (HOVER_REVEAL_NO_HOVER_VISIBLE_CLASS) with the value [@media(hover:none)]:opacity-100, and the plugin registry is regenerated. Existing plugin forks keep their vendored copy; only a fork that re-pulls coarse-pointer-visibility by name from a newer release would need the new name.
  • Applied in MessageActionBar, disclosure, tab-pill, copy-button, SkillDetailView, NotificationCenter, info-list, resource/row, Automations runs, Tasks labels and presets, the Prompt Library star, and the thread-list/navigation sidebar rows. theme.css's sidebar hover-actions block moves from (max-width: 767px) and (pointer: coarse) to (hover: none).
  • On a wide touch screen the sidebar now follows the phone design: section/project +, … and chevrons always visible, thread quick actions left to the long-press menu.
  • Two sidebar layout rules paired with those controls also move off the width check: rows that permanently reserve action space (project label, or parent with children) drop that reserve under (hover: none), and a collapsed environment group's status glyph moves into the hidden actions' slot (ThreadRow.tsx, ProjectRow.tsx).
  • An iPad with a trackpad still reports touch as its primary input, so controls there are always visible rather than hover-revealed.
  • No SDK, CLI or wire changes.

How you verified

  • Reproduced in the iOS Simulator against a pnpm start:worktree build: the 13" iPad Pro (portrait, 1032px, hover: none) showed no message actions and no sidebar controls; the iPad mini showed them.
  • After the fix: the 13" iPad shows actions under both messages plus the sidebar controls; the iPad mini and iPhone 17 are unchanged.
  • Desktop Chrome (1376px): copy buttons opacity 0/0 at rest, 0/1 when hovering the agent message; 1/1 with CDP touch emulation. Playwright WebKit (Safari 26.6 engine): same numbers. Desktop Safari itself not driven (WebDriver needs a Safari setting).
  • Touching sidebar thread rows can persist the desktop hover inset and Archive action #3832 tap case, desktop Chrome at 1280px with CDP touch emulation (hover: none), tapping a long-titled sidebar row with Input.dispatchTouchEvent:
    • Base (68a1e8b7aa): after the tap the row stays :hover, Archive/Thread actions go to opacity 1 and clickable, the title gains 30px padding and shrinks 237px → 207px. A parent row with children keeps a permanent 30px gap.
    • This PR: after the tap the row is still :hover but the actions stay hidden, padding stays 0, the title stays 237px. The parent row's gap is 0.
    • Same build with a mouse (no emulation): Archive hidden at rest, shown on hover with the 30px inset, parent keeps its reserved space, all as before.
  • Not verified: landscape rotation and tapping in the iOS simulator (no accessibility permission for scripted input), an iPad with a trackpad, and a collapsed environment group (no worktree-environment fixture).
  • pnpm exec turbo run typecheck lint test --continue --filter='...[origin/main]': 105/105 tasks passed on the first commit; thread-list typecheck/lint/test (464 tests) passed after the second. Three existing assertions were updated for the new class; no new tests, since the bug is a CSS media condition a class-string test wouldn't catch.

Fixes #3832

🤖 Generated with Claude Code

AGENT GENERATED

ymichael and others added 2 commits October 7, 2026 10:16
Message actions, disclosure chevrons, tab close buttons, notification and
info-list row actions, sidebar row controls and several plugin row actions
were hidden until hover and only forced visible on touch screens narrower
than 768px. Tailwind gates group-hover on (hover: hover), so on a large
touch screen such as a 13" iPad (wide layout, hover: none) those controls
stayed at opacity 0 while their tooltips still fired for a trackpad or
pencil pointer.

Every hover-revealed control now falls back to visible under
(hover: none), the exact complement of the hover gate, through the shared
HOVER_REVEAL_NO_HOVER_VISIBLE_CLASS (renamed from the coarse-pointer
helper) or the same media variant. The sidebar's CSS hover-actions block
uses the same media query. Touch-target sizing stays width-based. Desktop
mouse and trackpad behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two sidebar rules still keyed off narrow touch screens while the controls
they pair with now hide under (hover: none). Rows that permanently reserve
action space (project label or parent with children) kept an empty 30px
gap per action on wide touch screens, and a collapsed environment group's
status glyph stayed absolutely positioned after its actions were hidden.
Both now use (hover: none).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 21e7654 into main Oct 7, 2026
47 checks passed
@ymichael
ymichael deleted the bb/copy-bug-on-13-ipad-thr_5sie8dw3pd branch October 7, 2026 17:36
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Oct 8, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
hxy91819 added a commit to hxy91819/bb that referenced this pull request Oct 12, 2026
Absorbed by desktop-v0.46.0:
- fix/acp-permission-mode: upstream get-bb#4922
- fix/sidebar-touch-hover-actions: upstream get-bb#5097
- feature/sidebar-pinned-new-thread: upstream get-bb#5229 nav rail layout
- feature/automation-auto-marker: upstream Automation timeline row (get-bb#4763)
- fix/mobile-composer-top-clearance: upstream get-bb#5026
- fix/mobile-model-drawer: upstream 8a01b97

Dropped: fix/acp-fast-mode, fix/acp-codex-goal (ACP Codex no longer used);
fix/mobile-model-picker folded into fix/provider-icon-hitbox.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Oct 15, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Oct 29, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Nov 4, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Nov 12, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
smsunarto added a commit to smsunarto/bb-plugins that referenced this pull request Nov 19, 2026
…3) (#187)

* fix(scott-tasks): return a saved comment before agent delivery finishes

Port of upstream get-bb/bb#4679. The app's createComment waited for the
thread lookup and send before answering, so a slow or stuck worker
held the composer. The app now returns the saved comment at once and
delivers in the background; the CLI still waits so it can report the
notified count.

* feat(scott-tasks): move a task and its sub-tasks to another project

Port of the server and CLI half of upstream get-bb/bb#4100. A moved
task gets a fresh number in the target project, lands at the end of its
status column, and keeps its old key as an alias, so mentions and agent
instructions that name the old key still resolve. Labels are remapped
by name and created when missing. A sub-task moved on its own leaves
its parent. New: moveTaskToProject RPC and bb tasks move.

* feat(scott-tasks): move tasks from the detail page and the list's context menu

The UI half of upstream get-bb/bb#4100. The properties rail and inline
chips get a project picker, and a list row's context menu gets Move to
project. Opening a task by a key it had before a move asks the server
and follows the task to its current key.

* feat(scott-tasks): keep New task drafts and cap the dialog's height

The dialog half of upstream get-bb/bb#4100. Title, description and
attributes save to localStorage as they change, so an outside click,
Escape or reload no longer throws a long task away; Discard draft
clears it. The dialog is capped at 85dvh with the description
scrolling, so Create task stays reachable.

* fix(scott-tasks): port upstream touch, embed and download fixes

- get-bb/bb#5097: label and preset row actions stay visible on screens
  without hover, such as a 13-inch iPad.
- get-bb/bb#5157: a narrow desktop pane keeps the compact topbar; only
  touch screens get the taller one.
- get-bb/bb#5903: the whole task embed card opens the task, and a
  loading card no longer highlights on hover.
- get-bb/bb#5508: attachment downloads go through bb's saveFile, which
  the iOS shell implements with WebKit's native download.

* docs(scott-tasks): document bb tasks move; drop unused hono and cron-parser

hono 4.11.9 was a vulnerable pin that nothing imports; cron-parser is unused too.

* feat(scott-tasks): delegate as a child thread from a chosen base branch

bb tasks delegate takes --parent-thread, --parent-notifications auto|stuck|off and --base-branch, passed to threads.spawn. An orchestrating agent dispatches its crew as children so bb reports their turns to it, and starts each worktree from its own branch. --base-branch always means a new worktree, whatever the preset names, and leaves the preset unchanged.

* fix(scott-tasks): let the attachment preview's img own its object URL

Attachment chips set state in an effect to hold the preview URL; the <img> ref callback now creates and revokes it. Clears a react(set-state-in-effect) lint error.

* feat(scott-tasks): owned fields, crew snapshot and parent wakes for Captain

- defineField/setField: typed fields only the owning plugin may write; a write
  bumps the task's updated_at.
- crewSnapshot({threadIds, changedSince}): one read of task, parent, fields,
  preset, live status and the last notifying comment with its delivery state.
- bb tasks comment --notify-parent sends a one-line wake to the commenting
  thread's parent and retries from the database (1, 2, 5, 15 min; 6 attempts),
  then marks it undeliverable; --attach puts files on the comment first.
- delegate takes reportContract and drops its built-in contract under stuck;
  taskThreadsAttach keeps presetName; plugin callers may author comments.
- Task threads get an archived live status that unarchive reverses.

* perf(scott-tasks): drop unused toolbar and command exports

Cuts 10 KB of app.css that Tailwind generated for components nothing imports.

* fix(scott-tasks): let the list's empty state fill the scroller

Port of get-bb/bb#7613's Tasks part: the list's size container moves inside the scroller, and the empty state grows to fill it.

* fix(scott-tasks): resolve CLI file paths with the target host's path rules

Port of get-bb/bb#6760: file flags resolve with the SDK's host-path parser, so Windows drive and UNC paths from a remote thread resolve on that machine instead of with the server's node:path.

* refactor(scott-tasks): drop store inputs nothing passes

Port of the Tasks part of get-bb/bb#4606: create inputs no longer take an id, comment updates take only notifiedCount, attachment updates only blobPath, and new comments rely on the column's 0 default. The tie-break test sets its ids with SQL, as upstream's does. Skipped: upstream blanking the is_image migration (it already ran here), and displayWidth and the description saver's schedule option, which fork tests still use.

* test(scott-tasks): cover list scope switches while reads are pending

Ports get-bb/bb#7056's regression tests. Upstream fixed a list stuck behind placeholders when it switched scope to a cached list; the fork's collection-backed list already passes them, so no code change was needed. All shows every task the shared collection holds, so the All step checks no absent row.

* fix(scott-tasks): apply resize-measured layout in the resize frame

Port of get-bb/bb#7635's Tasks part. The board-width check and the list's row window read their size in a shared ResizeObserver and write it inside flushSync, so a resize never paints one frame of the old layout. lib/shared-resize-observer.ts is vendored from upstream's registry, which the desktop-v0.49.0 pin predates. The row window measures through a plain function of the element so the mount read stays a ref-derived layout measurement.

* docs(scott-tasks): record the upstream sync to get-bb/bb 48c3a78

Names the new upstream base and every change the fork holds, with the reason for each.

* fix(scott-tasks): settle the list's scroll scope during render, not from a ref

ListView read settledScope.current during render, the one oxlint error left in scott-tasks (react(refs)), so bunx oxlint on the plugin failed. The settled scope is now state set during render, like the saved preference above it, and settles in the same render its rows finish loading.

* fix(scott-tasks): stop an expired wake attempt from sending after a retry

Promise.race ended the 30s wait but not the attempt, so a stalled thread lookup could resume after a retry had delivered and wake the parent twice. The deadline now aborts the attempt's signal, and the attempt re-checks right before threads.send (and before recording a target) that it is unexpired and still the latest claim on a pending record. Review's deterministic repro is the regression test; it fails on the old code.

* chore(scripts): prune the resolved scott-tasks list refs baseline entry
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Dec 1, 2026
Upstream get-bb#5097 made hover-revealed controls visible under
`(hover: none)` at any width but kept touch layouts and touch-target
sizing on compact viewports. On a 13" iPad that leaves 20px message
actions, small tab close buttons, and queued message actions that only
appear on hover.

Treat any coarse-pointer or non-hover screen as touch, regardless of
width: message actions use the touch row and overflow menu (including
image-only copy), tab pill affordances use touch sizes, and queued
messages show the touch overflow trigger instead of hover-only actions.
Visibility itself still follows upstream's `(hover: none)` rule, and the
sidebar keeps upstream's phone design on wide touch screens.

Rebuilt from feat/tablet-hover-controls on top of get-bb#5097.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Touching sidebar thread rows can persist the desktop hover inset and Archive action

1 participant