Detached chat: read the chat again once its machine connects, and follow the main window's look
A detached chat window read the chat list once, before any saved machine had connected, and never again; its pane also did not rebuild when the runtime adopted a row. Without the row the header showed a bare "Chat" with no folder or model, the window was named by the session id, and the chat's colour (bar tint, focus ring, prompt bar) was missing. The window now re-reads the list on each connection change and rebuilds on the runtime, as the Chat destination does. It also re-reads the stored design and font on the browser's storage event and on coming to the front, so a Settings change in the main window follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,11 @@ abstract class DetachedPlatform {
|
||||
/// Messages the detached windows send to this (main) window.
|
||||
Stream<DetachedMessage> get messages;
|
||||
|
||||
/// Raised when another window of this app changed the device's stored
|
||||
/// preferences (the browser's `storage` event); none on a desktop, whose
|
||||
/// windows are separate processes.
|
||||
Stream<void> get preferencesChanged => const Stream.empty();
|
||||
|
||||
/// Keeps [json] for the window that will ask for [token].
|
||||
Future<void> put(String token, String json);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user