Skip to content

fix(mobile): allow collapsing the tool calls panel - #17

Open
tomaash wants to merge 6 commits into
daniel-farina:mainfrom
tomaash:fix/mobile-tools-panel-collapse
Open

fix(mobile): allow collapsing the tool calls panel#17
tomaash wants to merge 6 commits into
daniel-farina:mainfrom
tomaash:fix/mobile-tools-panel-collapse

Conversation

@tomaash

@tomaash tomaash commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • On mobile, the tool-calls panel could not be hidden: the topbar toggle was hidden and _toggleToolsCol() was a no-op.
  • That left the stacked tools pane eating chat space (and fullscreen tools CSS could hide the conversation entirely).
  • This enables collapse/expand on mobile, shows the topbar control, defaults to collapsed on first mobile visit, and hardens mobile CSS.

Changes

  • src/main.ts — show topbar-sidebar-right on mobile
  • src/views/chat.ts — honor collapse without Split.js; force fullscreen off on mobile; default collapsed on first mobile visit
  • src/style.css — reinforce collapsed/fullscreen behavior in the mobile layout

Test plan

  • Open a conversation on a phone (or desktop width ≤720px)
  • Confirm tool calls panel starts collapsed (or can be collapsed)
  • Toggle topbar right panel icon: tools hide/show; conversation reclaims space
  • Expand tools, switch agents, reload — preference persists via localStorage
  • Desktop (>720px): collapse/expand and drag-resize still work as before

tomaash added 6 commits July 29, 2026 22:31
On viewports ≤720px the tools toggle was hidden and _toggleToolsCol was a
no-op, so the stacked tool-calls pane always took space and crowded the
conversation. Show the topbar control, honor collapse on mobile (no
Split.js), default to collapsed on first mobile visit, and keep fullscreen
tools from hiding the chat stream on small screens.
Hide topbar, rail, and chat tabs behind a slim peek strip so conversations
get more vertical room on phones. Close the sidebar when tapping outside
or selecting a conversation (pointer-driven rows never fired the old
click handler). Bump the service worker shell cache and fix the gr
launcher shebang for tsx.
Chrome-peek stacks above .app, so it covered the conversations drawer
header when UI was collapsed. Offset the drawer and backdrop under the
peek strip and bump the shell cache.
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