Skip to content

iOS: close the sidebar and start a session with it hidden (iPhone Duo, iPad) - #1509

Merged
wingleeio merged 1 commit into
mainfrom
zeron/ios-duo-sidebar-controls
Nov 18, 2026
Merged

wingleeio merged 1 commit into
mainfrom
zeron/ios-duo-sidebar-controls

Conversation

@wingleeio

@wingleeio wingleeio commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

  • The sidebar couldn't be closed on the unfolded iPhone Duo (or iPad), except with ⌘B.
  • Once the sidebar was hidden, there was no New Session button anywhere. It gets hidden when the companions panel steps it aside or after an unfold, and nothing brought it back.
  • The New Session headline got squeezed: with little room above the composer (keyboard up on the folded Duo, a phone in landscape), the logo ran into the text.

Fix

  • The sidebar's header has a hide sidebar button at the top left.
  • While the sidebar is hidden, the main column's top left shows show sidebar and New Session. New Session is left out on the new-session page itself.
  • If the user opens or closes the sidebar by hand, that choice stays when the companions panel closes.
  • When the headline doesn't fit, it steps aside whole: the logo goes first, then the line.

Screenshots

These are emulated: the shell runs at the Duo's unfolded size (669×951, regular×regular) inside an iPad mini simulator, because this Mac has no Xcode 27.1 or Duo simulator.

unfolded

The headline, before and after (iPhone 17e in landscape, a long draft, keyboard up):

hero

Tests

IPadLayoutTests pass on the iPad mini sim (3/3). New test: testSidebarHidesAndComesBack hides the sidebar, opens New Session from the main column, then brings the sidebar back.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…, iPad)

The split sidebar had no way to close it but ⌘B, and once it was hidden
(the companions panel stepping it aside, an unfold) nothing brought it
back and there was no New Session anywhere. The sidebar's header now has
a hide button; while it's hidden the main column shows one to bring it
back beside New Session (not on the new-session page itself).

The new-session headline squeezed the mark into the text when the space
above the composer was short (keyboard up on the folded Duo, a phone in
landscape). It now gives way whole: the mark goes first, then the line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wingleeio
wingleeio marked this pull request as ready for review November 18, 2026 04:17
@wingleeio
wingleeio merged commit c58f65e into main Nov 18, 2026
15 checks passed
@wingleeio
wingleeio deleted the zeron/ios-duo-sidebar-controls branch November 18, 2026 04:17
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