ai_co_discuss 0.4.74 → 0.4.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Supervisor of a local speech service (read-aloud's yovoice, voice input's CrispASR): runs it and stops it once its
3
- * lease has not been renewed for a minute, or was released. The runner renews the lease (touches `<service dir>/lease`)
3
+ * lease has not been renewed for five minutes (a minute restarted it too often between readings, user 2026-11-18), or
4
+ * was released. The runner renews the lease (touches `<service dir>/lease`)
4
5
  * on every request, so the service lives while it is used and ends after, also when the runner that started it exited
5
6
  * or crashed. Started detached by `runner/tts_providers.mjs`:
6
7
  * node local_speech_service.mjs <service dir> <executable> [arguments...]
@@ -12,7 +13,7 @@ import { spawn } from 'node:child_process';
12
13
  import { closeSync, openSync, readFileSync, rmSync, statSync } from 'node:fs';
13
14
  import { join } from 'node:path';
14
15
 
15
- const LEASE_MS = 60_000;
16
+ const LEASE_MS = 5 * 60_000;
16
17
  const CHECK_MS = 5_000;
17
18
 
18
19
  const [directory, executable, ...service_arguments] = process.argv.slice(2);
@@ -46,8 +46,8 @@ const SILENT_AAC_FRAME = Buffer.from([0xff, 0xf1, 0x58, 0x40, 0x01, 0x7f, 0xfc,
46
46
  const SILENT_AAC_FRAME_MS = 1024 / 24;
47
47
  // Local speech: yovoice serving Qwen3-TTS CustomVoice on this computer, installed by the local-tts-setup skill into
48
48
  // `<service home>/yovoice` (CLI in `cli/`, engine and model in `data/`). Like voice input's local service, the runner
49
- // starts it through a supervisor (`local_speech_service.mjs`) and renews its lease on every request; a minute without
50
- // one, or the user stopping reading, stops it, so the model does not hold graphics memory between uses, even when the
49
+ // starts it through a supervisor (`local_speech_service.mjs`) and renews its lease on every request; five minutes without
50
+ // one (or an explicit release) stops it, so the model does not hold graphics memory between uses, even when the
51
51
  // runner has crashed.
52
52
  const LOCAL_HOST = '127.0.0.1';
53
53
  // A local service's token is bound to the service, not to a port, since the port can change from one start to the next.
@@ -322,7 +322,7 @@ function local_generate({ home, key, text, speaker, context }, request) {
322
322
  }
323
323
 
324
324
  /**
325
- * Renew a local service's lease (in its directory); its supervisor stops the service once the lease is a minute old. A
325
+ * Renew a local service's lease (in its directory); its supervisor stops the service once the lease is five minutes old. A
326
326
  * renewal when a request ends keeps a release that came meanwhile (the user stopped reading), so the release still stops it.
327
327
  */
328
328
  function local_renew(directory, { keep_release = false } = {}) {
package/web/app.js CHANGED
@@ -1835,6 +1835,13 @@ async function finish_message(result, room_id, drafts) {
1835
1835
  // place in the same render as the room's other changes (its request, the host's working card). Swapping it in first
1836
1836
  // and the rest a moment later laid the transcript out twice, and on a phone the page jumped and flashed in between.
1837
1837
  const saved_id = result.message.id;
1838
+ // Shown in the queue tray because the room looked busy, but the site posted it (the work had just ended): the row moves
1839
+ // into the transcript as the sending card, so the message is never off screen until the room is read again (#4391).
1840
+ if (!state.sending_preview && state.queueing_preview) {
1841
+ const { queued_ids, ...shown } = state.queueing_preview;
1842
+ state.sending_preview = shown;
1843
+ state.queueing_preview = null;
1844
+ }
1838
1845
  if (state.sending_preview) state.sending_preview = { ...state.sending_preview, saved_id };
1839
1846
  publish_view();
1840
1847
  refresh_room().catch(() => {}).finally(() => {