Skip to content

fix(core): retry API request on model-unloaded errors for local model servers - #8

Closed
B-A-M-N wants to merge 328 commits into
mainfrom
fix/model-unloaded-retry
Closed

B-A-M-N wants to merge 328 commits into
mainfrom
fix/model-unloaded-retry

fix(core): retry API request on model-unloaded errors for local model…

b197df5
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Jun 11, 2026 in 5s

12 new alerts including 7 high severity security vulnerabilities

New alerts in code changed by this pull request

Security Alerts:

  • 7 high
  • 5 medium

Alerts not introduced by this pull request might have been detected because the code changes were too large.

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 23 in packages/channels/weixin/src/send.ts

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '' and with many repetitions of ''.
This
regular expression
that depends on
library input
may run slow on strings starting with '```\n' and with many repetitions of '\na'.

Check failure on line 634 in packages/cli/src/serve/workspaceAgents.ts

See this annotation in the file changed.

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a file system access
, but is not rate-limited.

Check failure on line 86 in packages/core/src/tools/web-fetch.ts

See this annotation in the file changed.

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
github.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.

Check failure on line 22 in packages/core/src/utils/openaiLogger.ts

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.
This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '-'.

Check failure on line 381 in packages/vscode-ide-companion/src/extension.ts

See this annotation in the file changed.

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.

Check failure on line 684 in packages/vscode-ide-companion/src/services/qwenAgentManager.ts

See this annotation in the file changed.

Code scanning / CodeQL

Insecure randomness High

This uses a cryptographically insecure random number generated at
Math.random()
in a security context.

Check failure on line 711 in packages/vscode-ide-companion/src/webview/handlers/SessionMessageHandler.ts

See this annotation in the file changed.

Code scanning / CodeQL

Insecure randomness High

This uses a cryptographically insecure random number generated at
Math.random()
in a security context.

Check warning on line 499 in packages/cli/src/utils/standalone-update.ts

See this annotation in the file changed.

Code scanning / CodeQL

Shell command built from environment values Medium

This shell command depends on an uncontrolled
absolute path
.
This shell command depends on an uncontrolled
file name
.

Check warning on line 179 in packages/core/src/utils/editor.ts

See this annotation in the file changed.

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This shell argument which depends on
library input
is later used in a
shell command
.

Check warning on line 190 in packages/core/src/utils/editor.ts

See this annotation in the file changed.

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This shell argument which depends on
library input
is later used in a
shell command
.

Check warning on line 189 in packages/core/src/utils/shell-utils.ts

See this annotation in the file changed.

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.

Check warning on line 192 in packages/core/src/utils/shell-utils.ts

See this annotation in the file changed.

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.