mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4248] [GUI] allow an explicit local inference silence timeout #4971
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4971
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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_MSsetting for local-model turns. For example,1800000allows 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.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.