Files
pipelines/app/notes/chat-split-session-menu.md

1.2 KiB

Split-chat session menu

ChatSessionsScreen accepts optional onOpenBeside and onOpenBelow ValueChanged<JsonMap> callbacks. They are forwarded through both native list hosts and included in row memoization. Each provided callback adds its native More-menu choice: Open to the right or Open below. An absent callback hides that choice, so the workspace host controls split availability.

The selected existing session is passed unchanged. Split opening follows the same device-local read/unread bookkeeping as ordinary opening; it does not create, close, reopen or mutate a backend session. Ordinary row opening remains unchanged. Capability changes on mounted rows invalidate the memoized menu.

Checks: bounded analysis clean; all 126 session UI tests passed through the memory watchdog (peak 1432 MB, 13s). Eight new menu tests exercise both Material and Cupertino selection, exact selected session/callback, no unrelated backend requests, absent capabilities, changing direction availability on mounted rows, and normal opening. Full-app rendered split acceptance belongs to the manager's workspace integration; no browser or device acceptance is claimed here.