Files
hapi/ios/Hapi/Features
8f3bec07bf fix(ios): keep the session settings sheet stable while chat streams
ChatView rebuilt SessionConfigView (and a fresh SessionConfigModel) on
every streaming update because the popover content closure lived in the
toolbar body. That allocation churn made a long session feel laggy with
the sheet open, and replacing the sheet content reset its @State detent,
so scrolling up snapped the sheet back down and rescaled the chat
behind it.

- Own the SessionConfigModel and selected detent in ChatView so they
  survive body updates.
- Host the popover content once instead of rebuilding it per update.
- Make the sheet's scroll view own the gesture
  (presentationContentInteraction(.scrolls)) so reaching the top does
  not resize/collapse the sheet.

Verified: iOS simulator build; SessionConfigPresentationTests pass.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-12-01 06:00:18 +08:00
..
2026-11-20 13:33:58 +08:00