Repository navigation
fix(mobile): collapse the subagents panel cleanly - #356
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 8, 2026 09:46
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closing the expanded mobile subagents panel could draw its rows through the composer. Keep the panel anchored and clipped until its animation reaches the closed state.
Fixes: #347
Cause and change
The conditional render removed the panel's flex slot before Reanimated finished the native
exitinganimation. The retained native view lost its bottom anchor and moved into the composer. A persistent outer clip now retains the slot; an inner surface follows one reversible opacity/4 dp upward translation usingfast,quick, anddistance.micro. At zero progress the slot is hidden. Reduced motion switches instantly, and closed content cannot receive touches or accessibility focus. The 240 dp bound, internal scrolling, saved expansion and fixed composer/feed reserve remain intact. Interrupted toggles retain progress and scroll state without teardown callbacks.The narrow portrait column also has an application-side cause: the sidebar kept reserving its width until an asynchronous close callback. Its render-phase context update additionally consumed the intended
instantflag before commit. Remounting the sidebar at a layout-context boundary now selects its target state immediately; manual sidebar toggles still animate. This removes that code path, but device rotation verification remains incomplete, so this does not establish that every frame in the supplied iPhone recording came from our layout rather than an OS snapshot.Evidence and device verification
before-phone-keyboard-verified.mp4,after-phone-{light,dark}-verified.mp4,after-fold-{light,dark}-verified.mp4; extracted close frames includebefore-phone-close.png,after-phone-close-frames.pngandafter-fold-close-frames.png. Earlier exploratory recordings are not all reliable keyboard evidence.ExpoClipboard; Mac free space was below the required 12 GB (latest check: 1.9 GiB), so no iOS build was attempted. Android rotation requests returnedunconfirmedand did not change the visible viewport; Fold pose commands also did not produce a cover-width viewport. Rotation/breakpoint transitions remain unverified on devices.Checks
Passed:
bun install,bun run gen:check,bun run typecheck(including mobile),bun run lint,bun run format:check, web build, mobilebunx expo lint, Expo Doctor (20/20), Android CNG prebuild, both native Hermes bundle exports and a local Android ARM64 debug build with a private SDK/Gradle and bounded heap/workers. Final formatting and diff checks are clean.Full gate not green:
bun run check:tmpreported 16 failures in unchanged gateway/worker areas (add-project, bot routines/wakeups, shell, relay, linked-project routes and mirrors), then ended with SIGTERM/143 near the final updates tests without the final temp audit. Focused reruns: add-project 7 pass/1 fail; bot harness regressions 7 pass/4 fail/4 errors; both focused temp audits clean. These failures were not repaired in this UI change, and not all have been established as baseline failures. Draft pending a green full gate and the missing native verification.Owned servers, tunnel, reverse mappings, database container/volume and device sessions were cleaned up. Existing AVDs were preserved; generated native output and private build caches were removed. No store/EAS build, submission or merge.
Copy audit: no UI text changed.