Skip to content

fix(mobile): keep the panels menu's CDP hook on the shared row - #207

Merged
kipavy merged 1 commit into
devfrom
fix/mobile-panel-hook
Sep 1, 2026
Merged

fix(mobile): keep the panels menu's CDP hook on the shared row#207
kipavy merged 1 commit into
devfrom
fix/mobile-panel-hook

Conversation

@kipavy

@kipavy kipavy commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

#206 replaced the terminal bar's hand-written menu buttons with DropdownMenuItem
and dropped data-mobile-panel={key} along with them.

Nothing in the repo reads that attribute — but nothing reads
data-mobile-terminal-menu, data-mobile-session-chip or data-mobile-panel-quick
either. The whole family arrived together in 1817d08a as the selector surface for
driving the Android build over CDP, and this is the one member that went missing.

DropdownMenuItem now takes a dataAttrs map, so a shared row can carry the hook
its hand-written predecessor carried.

It matters more here than it would elsewhere: the mobile shell only mounts when the
backend reports android, so this menu cannot be reached from the desktop headless
build — those selectors are how it gets exercised at all, and there is no emulator
available to fall back on.

Found by re-reading the #206 diff for what it silently removed, rather than for what
it changed.

tsc --noEmit clean; 190 tests across mobile, shared and terminal pass.

#206 replaced the terminal bar's hand-written menu buttons with DropdownMenuItem
and dropped `data-mobile-panel={key}` with them. Nothing in the repo reads that
attribute, but nothing reads `data-mobile-terminal-menu` or
`data-mobile-session-chip` either — the whole family arrived together in 1817d08
as the selector surface for driving the Android build over CDP, and this is the
one member that went missing.

DropdownMenuItem takes a `dataAttrs` map so a shared row can carry the hook the
hand-written button carried. It matters more here than elsewhere: the mobile
shell only mounts when the backend reports `android`, so this menu cannot be
reached from the desktop build and those selectors are how it gets exercised at
all.
@kipavy
kipavy merged commit fa6ca31 into dev Sep 1, 2026
4 checks passed
@kipavy
kipavy deleted the fix/mobile-panel-hook branch September 1, 2026 23:08
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.

1 participant