Repository navigation
feat(api): abort-signal wiring for lm-studio and qwen-code (round 2) #1309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
edelauna
merged 61 commits into
Zoo-Code-Org:main
from
easonLiangWorldedtech:feat/abort-r2-lmstudio-qwen
Nov 4, 2026
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
e61feb1
feat(api): add throwIfAborted helper and completePrompt options regre…
easonliang28 4497268
feat(api): abort-signal wiring for lm-studio and qwen-code (round 2)
easonliang28 9d2942f
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech e272e4d
fix(api): align lm-studio specs with abort-signal call shape and addr…
easonLiangWorldedtech abd9827
test(api): cover LM Studio reasoning_content delta in abort-signal spec
easonLiangWorldedtech 6e1e1af
test(api): cover qwen-code degenerate stream shapes for full branch c…
easonLiangWorldedtech a0117fb
feat(api): add shared isRequestAborted and createAbortError helpers t…
easonLiangWorldedtech 56b10d5
Merge branch 'feat/abort-r1-foundation' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech e57e88b
refactor(api): use shared abort helpers from foundation utils in lm-s…
easonLiangWorldedtech c235479
fix(api): normalize aborts during qwen-code 401 retry and lm-studio t…
easonLiangWorldedtech 5ac4e51
test(api): cover the non-abort path of the qwen-code 401 retry
easonLiangWorldedtech 7f26495
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech 5e3a575
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech 37ef142
Merge upstream/main (79cd12f2c) into feat/abort-r2-lmstudio-qwen
easonliang28 78345cf
fix(ci): declare vitest as a root devDependency so the mutation gate…
easonliang28 6db3e70
test(api): strengthen focused tests for the changed-code mutation gate
easonliang28 0df30b9
test(api): harden abort-wiring tests against hanging mutants
easonliang28 87beca0
test(api): exclude proven-equivalent Stryker mutants from the changed…
easonliang28 3cd0261
test(api): exclude unobservable inner-abort provider-name literals fr…
easonliang28 8b154df
fix(api): settle lm-studio and qwen-code wait points against the abor…
easonliang28 00e369f
Merge remote-tracking branch 'upstream/main' into feat/abort-r2-lmstu…
easonliang28 2f8aab0
test(api): add abort kill-tests for lm-studio and qwen-code
easonliang28 279f093
Merge branch main into feat/abort-r2-lmstudio-qwen
easonliang28 1a0877a
Adapt qwen-code spec to per-scope NativeToolCallParser API
easonliang28 ab38513
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech a257beb
fix(deps): repair pnpm-lock.yaml broken by merge conflict resolution
easonliang28 b80175a
fix(deps): align root vitest with the 4.1.11 security bump
easonliang28 dc2d41e
fix(api): race the Qwen 401 refresh wait against the abort signal and…
1c277ef
fix(qwen-code): keep in-memory credentials current after a cancelled …
7d2ba9f
Merge remote-tracking branch 'upstream/main' into feat/abort-r2-lmstu…
4c44112
chore: trigger label reconcile (CI green + CR approved, cron stalled)
a2ff86d
Merge commit 'refs/shapes/upstream-main' into feat/abort-r2-lmstudio-…
3dcee63
Merge upstream main (3859e5dd8) into feat/abort-r2-lmstudio-qwen
c26a94c
Assert the abort bridge while the request is in flight
f288d0a
Re-trigger review at the current head
f3a73e1
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech 081b314
Merge upstream main (285f6687a) into feat/abort-r2-lmstudio-qwen
easonliang28 e5c3ab4
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech 9c7faba
Address pre-merge checks: detach settleOnAbort's listener on abort; p…
easonliang28 3b998a5
Address review: pin listener removal by function reference
easonliang28 dc09b59
Address pre-merge warnings: guard settleOnAbort's early return; share…
easonliang28 f621443
Address review: cover LM Studio early consumer termination
easonliang28 9041eb1
Address review: pin no premature abort before early termination
easonliang28 411fe4d
Merge upstream/main (58341d882) into feat/abort-r2-lmstudio-qwen
easonliang28 1c83959
chore(api): remove Stryker suppression comments from touched files
easonliang28 bef1524
fix(api): reject non-finite and cap overflowing mergeAbortSignalAndTi…
easonliang28 b7dafe0
fix(api): round fractional timeouts before AbortSignal.timeout
easonliang28 fc35d1b
test(api): assert the rounded delay reaching AbortSignal.timeout
easonliang28 4f66ae5
Merge remote-tracking branch 'upstream/main' into feat/abort-r2-lmstu…
easonLiangWorldedtech f6b0454
fix(api): restore the OpenAiRequestOptions type the abort wiring imports
easonLiangWorldedtech 235257a
fix(api): report an elapsed per-request timeout as TimeoutError
easonLiangWorldedtech 2f014e4
Merge remote-tracking branch 'upstream/main' into feat/abort-r2-lmstu…
easonLiangWorldedtech efccacd
refactor(providers): share the timeout-vs-abort helpers and dedupe th…
easonLiangWorldedtech 760c42a
fix(abort-signal): classify timeout aborts by the merged signal reason
easonLiangWorldedtech eac598e
chore(lm-studio): drop the unused caller signal parameter
easonLiangWorldedtech cf4eb86
Merge branch 'main' into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech cfe27c6
test(lmstudio): wait for the request instead of a fixed sleep
easonLiangWorldedtech be0b396
fix(api): settle qwen-code streams that end quietly on abort
easonLiangWorldedtech afd49f6
Merge upstream/main into feat/abort-r2-lmstudio-qwen
easonLiangWorldedtech 356d6d9
test(api): poll instead of assuming await depth, and exercise the mer…
easonLiangWorldedtech 3933b64
test(api): ban setTimeout in provider specs, use waitFor and shared h…
edelauna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(api): normalize aborts during qwen-code 401 retry and lm-studio t…
…oken counting CodeRabbit follow-ups on the abort-signal series: an abort landing while the qwen-code 401 retry request is in flight escaped callApiWithRetry as the raw SDK abort error instead of the normalized 'The Qwen Code request was aborted'; the retried apiCall now goes through the same isRequestAborted normalization. In lm-studio createMessage, an abort landing while input token counting is pending was silently dropped (a listener added to an already-aborted signal never fires), so the aborted state is bridged into the request-local controller and throwIfAborted fast-fails before the request is issued. Regression tests cover both paths.
- Loading branch information
commit c235479b2cabe0d363182e34a011a2082da287e7
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.