Stephen Schoettler
20f758d4cb
fix(delivery-queue): break immediately on deadline instead of failing all remaining entries
...
P1-C: After now >= deadline, the old code would iterate all remaining queue
entries and call failDelivery() on each — O(n) work that nullified the
maxRecoveryMs wall-clock cap on large queues.
Fix: break out of the recovery loop immediately when the deadline is exceeded.
Remaining entries are picked up on next startup unchanged (retryCount not
incremented). The deadline means 'stop here', not 'fail everything remaining'.
2026-03-22 18:39:24 -07:00
Stephen Schoettler
4e92807f10
fix(delivery-queue): increment retryCount on deferred entries when time budget exceeded
...
When delivery recovery ran out of the 60s time budget, remaining pending
entries were silently deferred to the next restart with no retryCount
increment. This caused them to loop forever across restarts, never hitting
MAX_RETRIES and never moving to failed/.
Fix: call failDelivery() on each remaining entry before breaking out of
the recovery loop (both the deadline check and the backoff-exceeds-deadline
check). This increments retryCount so that entries eventually exhaust
MAX_RETRIES and are permanently skipped.
Fixes #24353
2026-03-22 18:39:24 -07:00
Stephen Schoettler
5e64265537
fix(browser): prevent stdio buffer blocking in Docker environments
2026-03-22 18:39:24 -07:00
Stephen Schoettler
69217164f7
fix: add null guards to usage sort comparators
...
Prevents crash when totals is undefined in byModel/byProvider/byAgent
sort comparators. Fixes 'Cannot read properties of undefined (reading
totalTokens)' crash that causes context overflow in active sessions.
2026-03-22 18:39:24 -07:00
Peter Steinberger
75835fc664
test: restore runtime-aware cli mocks
2026-03-22 18:35:37 -07:00
Peter Steinberger
c43bfcbbec
refactor: split best-effort network display discovery
2026-03-22 18:35:37 -07:00
Peter Steinberger
39752e7921
test: slim outbound context fixtures
2026-03-22 18:35:19 -07:00
Vincent Koc
2db10fb1d4
perf(reply): lazy-load embedded queue steering
2026-03-22 18:32:31 -07:00
Vincent Koc
d1404014d9
perf(reply): split runner auth profile seam
2026-03-22 18:29:09 -07:00
Peter Steinberger
ecdf5d457a
test: fix latest main test regressions
2026-03-22 18:28:13 -07:00
Vincent Koc
645c9210b3
style(format): fix provider test formatting drift
2026-03-22 18:25:55 -07:00
Vincent Koc
0a329b2c9f
Revert "style(format): fix check drift in provider tests"
...
This reverts commit 2619f5fe55 .
2026-03-22 18:25:07 -07:00
Vincent Koc
2619f5fe55
style(format): fix check drift in provider tests
2026-03-22 18:24:40 -07:00
Vincent Koc
125e778fe6
perf(reply): split payload dedupe helpers
2026-03-22 18:22:56 -07:00
Vincent Koc
6fde263046
fix(ci): refresh bundled plugin metadata
2026-03-22 18:19:49 -07:00
Vincent Koc
a753ee064d
fix(agents): centralize moonshot compat and xai fast remaps
2026-03-22 18:17:02 -07:00
Vincent Koc
cbf9cd0acb
fix(ci): repair main checks
2026-03-22 18:13:14 -07:00
Vincent Koc
b5b193d5ca
fix(moonshot): refresh kimi k2 catalog
2026-03-22 18:00:51 -07:00
Vincent Koc
3dcc802fe5
refactor(media): move deepgram and groq providers into plugins
2026-03-22 17:57:31 -07:00
Vincent Koc
0f54ca20aa
refactor(image-generation): move provider builders into plugins
2026-03-22 17:57:31 -07:00
Josh Lehman
3fe96c7b9e
device-pair: align internal command checks
2026-03-22 17:56:33 -07:00
Vincent Koc
a61e5d17f0
deps: update fast-xml-parser and markdown-it ( #52541 )
...
* style: format test files
* deps: bump fast-xml-parser override
2026-03-22 17:55:47 -07:00
Vincent Koc
dc2013aae5
perf(reply): lazy-load followup context lookup
2026-03-22 17:55:14 -07:00
Vincent Koc
e3c7a05cb5
fix(cli): remove duplicate test runtime keys
2026-03-22 17:52:05 -07:00
Vincent Koc
de6bf58e79
refactor(tts): move speech providers into plugins
2026-03-22 17:48:59 -07:00
Vincent Koc
1d08ad4bac
refactor(tts): remove legacy core speech builders
2026-03-22 17:48:09 -07:00
Peter Steinberger
100d9a7a23
refactor: share boundary open and gateway test helpers
2026-03-23 00:37:05 +00:00
Peter Steinberger
976eefe373
test: align cli runtime mocks with output runtime
2026-03-22 17:32:20 -07:00
Peter Steinberger
7bd12f4b37
test: fix rebased directory runtime mock ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
aaa6068c08
test: stabilize json runtime captures ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
a2999c6cfb
test: normalize rebase fallout ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
a5ace56a19
test: align rebased expectations and typecheck ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
38ee17145b
fix: restore rebase regression coverage ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
b00306a75b
test: fix post-rebase test drift ( #52428 )
2026-03-22 16:56:19 -07:00
Peter Steinberger
797f3cc377
fix: stabilize stale buffer sweep landing ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Peter Steinberger
f76e653776
fix: guard stale chat buffer sweep ( #52428 ) (thanks @karanuppal)
2026-03-22 16:56:19 -07:00
Karan Uppal
550deb8c18
fix: sweep stale chatRunState buffers for stuck runs
...
emitChatFinal frees buffers on clean run completion, and the
maintenance timer sweeps abortedRuns after ABORTED_RUN_TTL_MS. But
runs that get stuck (e.g. LLM timeout without triggering clean
lifecycle end) are never aborted and their string buffers persist
indefinitely. This is the direct trigger for the StringAdd_CheckNone
OOM crash reported in the issue.
Add a stale buffer sweep in the maintenance timer that cleans up
buffers, deltaSentAt, and deltaLastBroadcastLen for any run not
updated within ABORTED_RUN_TTL_MS, regardless of abort status.
Closes #51821
2026-03-22 16:56:19 -07:00
Peter Steinberger
165aeccd24
test: align memory cli json assertions
2026-03-22 23:46:54 +00:00
Peter Steinberger
4e531d382b
fix(ci): restore cli runtime mocks and timeout exits
2026-03-22 23:43:58 +00:00
Peter Steinberger
85f8437399
test: fix remaining tsgo issues after payload output refactor
2026-03-22 23:39:07 +00:00
Peter Steinberger
ac8e81a5cd
refactor: compose account security warning helpers
2026-03-22 23:37:12 +00:00
Peter Steinberger
39faf4725d
refactor: share warning collector projections
2026-03-22 23:37:12 +00:00
Peter Steinberger
f0ab31366c
refactor: share async computed channel status adapters
2026-03-22 23:37:12 +00:00
Peter Steinberger
72bfaf6ee2
refactor: share computed channel status adapters
2026-03-22 23:37:12 +00:00
Peter Steinberger
023394bc0b
fix(plugin-sdk): keep testing barrel narrow
2026-03-22 23:30:59 +00:00
Peter Steinberger
bca7787f92
style: fix rebased format drift
2026-03-22 23:26:21 +00:00
Peter Steinberger
63130118ba
test: fix rebased gateway and binding baselines ( #52491 )
2026-03-22 23:22:48 +00:00
Peter Steinberger
d73852ff21
fix: land plugin discovery missing-entry handling ( #52491 ) (thanks @hclsys)
2026-03-22 23:22:48 +00:00
Peter Steinberger
4ee41cc6f3
refactor(cli): separate json payload output from logging
2026-03-22 23:19:17 +00:00
Peter Steinberger
274af0486a
perf: trim more vitest thread pins
2026-03-22 16:18:26 -07:00