[PR #4248] [GUI] allow an explicit local inference silence timeout #4971

Open
opened 2026-11-07 16:31:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4248
Author: @zapabob
Created: 10/26/2026
Status: 🔄 Open

Base: main ← Head: codex/gui-local-silence-timeout


📝 Commits (1)

  • 9df2a96 [GUI] allow an explicit local inference silence timeout

📊 Changes

5 files changed (+52 additions, -1 deletions)

View changed files

📝 apps/host/server/agent/agent-bridge.mjs (+11 -1)
📝 apps/host/tests/agent-watchdog.test.mjs (+11 -0)
📝 apps/host/tests/helpers/scripted-worker.mjs (+6 -0)
➕ apps/host/tests/local-silence-limit.test.mjs (+11 -0)
📝 docs/TROUBLESHOOTING.md (+13 -0)

📄 Description

Problem and result

A local model that does not expose engine progress can remain silent whilst reading a long prompt. The agent watchdog then stops it at the ordinary four-minute inactivity limit.

This adds an explicit STRATA_LOCAL_STALL_MS setting for local-model turns. For example, 1800000 allows thirty quiet minutes. With the variable unset, the existing behaviour is unchanged. Remote-model and running-tool limits are unchanged, and cancellation remains available. Invalid values are rejected rather than disabling the watchdog.

Approach

Resolve the bounded allowance once when constructing the agent bridge and select it only for a local route. The troubleshooting guide explains how to enable it. This is separate from #3991, which changes the display of timed-out requests rather than their lifetime.

Validation

Tested on Windows with Node 26.10.0, based on upstream 4b9e05a2a806a3fe24f7b2560d98626c37dade35.

Passed:

  • node --test apps/host/tests/local-silence-limit.test.mjs apps/host/tests/agent-watchdog.test.mjs: 4 passed, no failures or skips, using the installed real Harness and a scripted loopback model server. The new case delays a local reply for four seconds with a 2.5-second ordinary limit and a ten-second explicit local allowance.
  • Existing silence cancellation/recovery and engine-progress watchdog cases.
  • git diff --check.

Failed: none in the above checks.

Not run: full host suite, desktop installer builds, GPU/model inference, or Linux/macOS execution. The scaled integration case does not establish a thirty-minute real-model run.

Limits

Opt-in only; this does not change the default timeout or guarantee that a model finishes. No engine/backend files, dependencies or release artefacts are changed. Kept as a draft pending maintainer feedback and broader platform checks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4248 **Author:** [@zapabob](https://github.com/zapabob) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/gui-local-silence-timeout` --- ### 📝 Commits (1) - [`9df2a96`](https://github.com/Niko1221/Strata/commit/9df2a96a5a47cb29f1caa0cf9776cdbe8e314eae) [GUI] allow an explicit local inference silence timeout ### 📊 Changes **5 files changed** (+52 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/agent/agent-bridge.mjs` (+11 -1) 📝 `apps/host/tests/agent-watchdog.test.mjs` (+11 -0) 📝 `apps/host/tests/helpers/scripted-worker.mjs` (+6 -0) ➕ `apps/host/tests/local-silence-limit.test.mjs` (+11 -0) 📝 `docs/TROUBLESHOOTING.md` (+13 -0) </details> ### 📄 Description ## Problem and result A local model that does not expose engine progress can remain silent whilst reading a long prompt. The agent watchdog then stops it at the ordinary four-minute inactivity limit. This adds an explicit `STRATA_LOCAL_STALL_MS` setting for local-model turns. For example, `1800000` allows thirty quiet minutes. With the variable unset, the existing behaviour is unchanged. Remote-model and running-tool limits are unchanged, and cancellation remains available. Invalid values are rejected rather than disabling the watchdog. ## Approach Resolve the bounded allowance once when constructing the agent bridge and select it only for a local route. The troubleshooting guide explains how to enable it. This is separate from #3991, which changes the display of timed-out requests rather than their lifetime. ## Validation Tested on Windows with Node 26.10.0, based on upstream `4b9e05a2a806a3fe24f7b2560d98626c37dade35`. Passed: - `node --test apps/host/tests/local-silence-limit.test.mjs apps/host/tests/agent-watchdog.test.mjs`: 4 passed, no failures or skips, using the installed real Harness and a scripted loopback model server. The new case delays a local reply for four seconds with a 2.5-second ordinary limit and a ten-second explicit local allowance. - Existing silence cancellation/recovery and engine-progress watchdog cases. - `git diff --check`. Failed: none in the above checks. Not run: full host suite, desktop installer builds, GPU/model inference, or Linux/macOS execution. The scaled integration case does not establish a thirty-minute real-model run. ## Limits Opt-in only; this does not change the default timeout or guarantee that a model finishes. No engine/backend files, dependencies or release artefacts are changed. Kept as a draft pending maintainer feedback and broader platform checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4971
No description provided.