Merge branch 'worktree-agent-acbb1fb1d035904b7'

This commit is contained in:
2026-12-03 17:29:07 +00:00
10 changed files with 356 additions and 11 deletions
@@ -988,6 +988,8 @@ class _FixtureSink implements WebSocketSink {
/// `?speech=fake` reads replies aloud with a scripted engine, one word per
/// `?speechStep=` ms (tool/probe_speech_fixture.dart);
/// `?design=terminal` chooses that app design (Settings → Design);
/// `?poolDelay=<ms>` (with `?federated=1`) connects each machine that
/// much later, as a real server does (a detached chat window's first list);
/// `?theme=dark` / `?theme=light` pins the platform brightness the app's
/// `ThemeMode.system` follows (omitted: the browser's color scheme).
///
@@ -1091,6 +1093,12 @@ Future<void> main() async {
? ChatServerPool(
machines,
connect: (machine) async {
// `poolDelay=<ms>`: each machine connects that much later, as a
// real server does, so the first chat list finds none connected.
final delay = int.tryParse(params['poolDelay'] ?? '') ?? 0;
if (delay > 0) {
await Future<void>.delayed(Duration(milliseconds: delay));
}
final client = PipelinesClient(
channelFactory: (_) => _FixtureChannel(
hostname: machine.id == 'mac' ? 'tank' : 'linux-box',