mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3604
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/1678
Author: @nekomario28
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix-1666-arg-keepalive📝 Commits (1)
30d2bf5serve: keep-alive while a tool call's held-back argument is generated (#1666)📊 Changes
2 files changed (+48 additions, -0 deletions)
View changed files
📝
serve/server.py(+12 -0)📝
serve/test_server.py(+36 -0)📄 Description
Fixes #1666. (The patch is the reporter's, applied to main; this adds the ping-cadence unit test the issue offered.)
With
stream_tools,OutputParserholds an array/object argument until</parameter>— a large one (a measured 66 KBedit_filecall) left the stream silent for minutes while tokens were generated, so a client's idle timeout ended a healthy request. Forge's is 120 s; the reporter hit it on a real agent turn.Change
Service.run's token loop now trackslast_out(set on the heartbeat ping and whenever the parser emits events). When a token produces no event and nothing has gone out forKEEPALIVE_S(10 s), it yields the same"ping"the engine-quiet heartbeat sends — no new event type; clients already ignore SSE comments. Ordinary answers are untouched: a token that streams content keeps resettinglast_out.Test plan
HeldBackArgKeepaliveinserve/test_server.py: a fake engine whose generated<tool_call>is held whole by the frontend (the same silence a long array argument makes), over a patched clock — asserts apingstill goes out and the request reachesdone; and a control that an ordinary answer emits no ping.serve.test_server: 273 tests, 3 errors allModuleNotFoundError: regex— the missing optional dep in this environment, identical on a clean checkout; unrelated.Not tested here: a real 120 s idle-timeout client (the reporter measured that end); the keep-alive itself is covered above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.