Keep phone chat back on the list

Treat server-synced open workspace snapshots as pane membership only so they do not show or retain a phone chat page. Add regression coverage for repeated system, button, and predictive Back cycles with tiled and floating entries.
This commit is contained in:
2026-11-12 13:18:05 +00:00
parent 692ce7ec1a
commit 45f5323c75
4 changed files with 423 additions and 10 deletions
@@ -182,8 +182,13 @@ void main() {
final first = _server('server-a', revision: 1, open: ['a']);
final second = _server('server-b', revision: 1, open: ['c']);
await _mount(tester, first);
// A server snapshot only changes membership; the user opens the chat.
await tester.tap(find.text('Chat a').first);
await tester.pumpAndSettle();
expect(_open(tester), ['a']);
await _mount(tester, second);
await tester.tap(find.text('Chat c').first);
await tester.pumpAndSettle();
expect(_open(tester), ['c']);
// The old server's pushes no longer reach this screen.