Repository navigation
Conversation
|
I reran the Room checks on for suite in room-seat-runtime rooms-run room-cli-seat room-reasoning-effort; do
node node_modules/jiti/lib/jiti-cli.mjs "electron/agent/$suite.test.ts" || exit
doneThe 12 watchdog tests, nine Room runner cases, six CLI-seat cases and reasoning-effort suite passed. A test merge into main One detail to clarify before landing: the description says Quick mode caps a built-in seat's first-output wait at the two-minute room budget, but Igor Lessio - AIFLOW LABS |
|
Thank you, @devopsfortunato. Streamed and CLI activity refresh the stall window, clean CLI aborts are classified correctly, and settled turns clear their timers. The focused results are recorded; this looks ready to land. Please clarify the first-output wording: Quick keeps the three-minute idle floor even though its deliberation budget is two minutes. The tests already state that behavior.
|
|
Thanks, @AIFlowML and @ashhart. The |
4e19629 to
9788427
Compare
The per-seat turn timer was a wall clock armed once per turn, so a seat streaming a healthy reply was aborted at three minutes and a cold engine prefill was cut before its first byte. Arm the first chunk with the engine's own first-byte allowance (capped by the room's deliberation budget) and re-arm the window on every streamed chunk, so only a seat that stops producing output is skipped. A CLI transport that resolves cleanly on abort is now reported timed out instead of committed as a healthy turn. Refs ashhart#3415
9788427 to
e1e7440
Compare
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Before: a Room seat's turn ran under a fixed three-minute wall clock (
DEFAULT_SEAT_TURN_TIMEOUT_MS = 180_000) armed once when the turn began. A seat that was streaming a healthy reply was aborted mid-stream at three minutes and skipped, and a cold built-in-engine prefill that took longer than three minutes was aborted before its first chunk, even though the engine request itself allows ten minutes for a first byte (ENGINE_FIRST_BYTE_MS,app/electron/agent/engine/provider.ts:13). On a slow local model this ends the room's work early, which is what the issue reports.After: the window is an idle stall watchdog.
onDeltaoronActivitycallback of a CLI-backed seat, re-arms it, so a productive turn runs as long as it keeps producing output.seatFirstOutputWindow(provider, idleMs, roomBudgetMs): the built-in engine getsmax(idle window, min(ENGINE_FIRST_BYTE_MS, room budget)), where the room budget isquick2 min,normal5 min ordeep15 min. The room budget only caps the engine's ten-minute allowance and never shortens the idle window, so Quick keeps the three-minute idle floor (seatFirstOutputWindow(engine, 180_000, 120_000)is180_000, asserted inroom-seat-runtime.test.ts). Every other provider keeps the idle window, and a non-finite or<= 0window still means no watchdog.runCliSeatTurngains an optionalonActivitycallback so reasoning and tool-progress chunks count as progress without being forwarded as content deltas;DEFAULT_SEAT_TURN_TIMEOUT_MS(180 s) and the room's own 30-minute abort inroom-run-runtime.tsare unchanged.Issue: Refs App: Tensorfold Desktop - Room end's its work prematurely #3415 (the healthy-turn and cold-prefill cuts this removes; whether other stop paths remain is not established here)
Stacked on: main
atc overlap --json: no overlap for this branch's files. The command reportedcomplete: falsewithotherPullRequestsLimit,pullFilesLimitand listed entries only for my earlier pull requests (4918, 4939);atc who app/electron/agent/room-seat-runtime.ts --jsonreports no pull requests and no agents.Checks on this head
python3 tools/zig/lean_check.py, on the base and on this head: base 165 problems, head 165 problems, 0 new (8070 files).node node_modules/jiti/lib/jiti-cli.mjs electron/agent/room-seat-runtime.test.ts(new file, 12 tests): 12 passed, 0 failed, 0 skipped.app/electron/agent/room-seat-runtime.tsandapp/electron/agent/room-cli-seat.tsstashed, the same command fails 7 of the 12: the long-streaming, CLI-streaming, clean-resolve-on-abort, engine-first-byte, already-aborted-signal,seatFirstOutputWindowand non-content-activity tests. So the change is what makes them pass.electron/agent/rooms-run.test.ts(9 ok),electron/agent/room-cli-seat.test.ts(5 ok, 2 skipped because macOSsandbox-execis unavailable on Linux),electron/agent/room-reasoning-effort.test.ts.npm teston this branch: 901/903 on the final tree (900/903 on an earlier head). The two failures are not room-related and are load/environment flakes on a 4-core box:electron/agent/sandbox.test.ts(prompt SIGKILL escalation on maxBuffer overflow, took 11120ms) fails identically on a clean worktree of upstream main 3795e60, andscripts/settings-main-transaction.test.mjs(30 sspawnSynctimeout) passes alone. CI runs the full suite on Linux and macOS and is green.npm run typecheck: exit 0.npm run verify:mobile: exit 0.git diff --check: clean.Receipt
Kernel contract
n/a, no GPU kernel changes.Checklist