Skip to content

fix(mobile): collapse the subagents panel cleanly - #356

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-subagents-panel-close
Nov 8, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-subagents-panel-close

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 8, 2026

Copy link
Copy Markdown
Member

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 exiting animation. 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 using fast, quick, and distance.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 instant flag 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

  • Reviewed the supplied iPhone close/rotation recording. Reproduced the close glitch on the Android phone baseline with Gboard visible: the closing list appears below the summary in the composer area. The corresponding fixed close frames remain above the summary, with stationary composer and feed.
  • Used T3 Device tools on a separate Android phone and Canopy Fold with an isolated gateway, scripted worker and Postgres: one running and nine finished children, including long labels. Recorded before/after clips and inspected extracted frames; final fixed recordings cover light/dark and keyboard shown/hidden on both devices.
  • Exercised rapid repeated toggles, closing a scrolled list, reopening with retained scroll position, saved expansion after app restart, and the Android reduced-motion setting. No UI test suites added.
  • Evidence is retained outside version control. Primary captures: before-phone-keyboard-verified.mp4, after-phone-{light,dark}-verified.mp4, after-fold-{light,dark}-verified.mp4; extracted close frames include before-phone-close.png, after-phone-close-frames.png and after-fold-close-frames.png. Earlier exploratory recordings are not all reliable keyboard evidence.
  • Not verified: native iOS behavior. Its installed client lacks ExpoClipboard; Mac free space was below the required 12 GB (latest check: 1.9 GiB), so no iOS build was attempted. Android rotation requests returned unconfirmed and 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, mobile bunx 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:tmp reported 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.

@nixuuu
nixuuu marked this pull request as ready for review November 8, 2026 09:46
@nixuuu
nixuuu merged commit f9840ec into dev Nov 8, 2026
15 of 18 checks passed
@nixuuu
nixuuu deleted the fix/mobile-subagents-panel-close branch November 8, 2026 09:57
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