Skip to content

release: v1.4.236 - #1965

Merged
dofastted merged 11 commits into
mainfrom
dev
Nov 27, 2026
Merged

dofastted merged 11 commits into
mainfrom
dev

Conversation

@dofastted

@dofastted dofastted commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Release v1.4.236 (dev → main)

包含以下合入 dev 的改动(已同步合入 v1.4.235 热修 #1962):

按发版规范使用普通 merge(不 squash)合入 main 后打 v1.4.236 tag 触发 Release 工作流。


Note

Medium Risk
Changes affect credential scheduling and optional automated slot power-cycles on CRAG v2; mis-tuned zombie guard could restart production slots, though it is gated on idleness, locks, and cooldowns.

Overview
v1.4.236 tightens pool scheduling for Claude slots and adds an opt-in CRAG v2 maintenance loop (default off).

When all known access expiries are in the past and the worker records a bare OAuth refresh failure (refresh_failed, oauth_refresh_failed, etc.), slots are now treated as 无效凭证 (credential_refresh_failed) and removed from scheduling—while proxy/config/setup errors (proxy_required, config_failed, …) stay recoverable. The scheduler passes live worker_status / knownHealth credential snapshots into eligibility so stale VM JSON does not reject freshly refreshed seats.

routing.crag_zombie_guard periodically read-only scans /proc on running CRAG v2 slots, counts zombies parented by --gateway-worker, and may power-cycle one idle slot per tick via the panel recover path (recoverSlot with beforeStop / verifyAfter, clearUnschedulable: false). Failed post-checks park slots as maintenance_failed and can notify operators. nativeKernelBusy now treats CRAG v2 idle warm PIDs as non-busy. Admin routing hot-update and rollback wire the new config; docs/crag-gateway-zombies.md documents the vendor issue and workaround.

Reviewed by Cursor Bugbot for commit a6d70ad. Configure here.

panjinhe and others added 9 commits November 26, 2026 08:30
…fresh failure out of scheduling

A worker refresh can fail with a generic code such as `refresh_failed`
(panel probe: "OAuth refresh failed"). CREDENTIAL_REFRESH_FAIL only matches
grant wording (invalid_grant, oauth_revoked, ...), so such a slot stayed
可用 and schedulable even though its access token had expired days earlier.
Every request then started the CLI without a valid token, produced no
output and timed out; the vm-circuit tripped on the silent timeouts and the
panel showed 内核故障 while the kernel itself was healthy. The refresh
monitor already stops retrying these codes, so nothing ever recovered it.

isCredentialRefreshFailed now returns true when a refresh error is recorded
and every known expiry (explicit, worker, record) is in the past. The
latest expiry wins, so a fresher worker ticket is never overruled by a
stale record, and an unknown expiry never counts as expired. A later
successful refresh or re-import clears refresh_error and moves the expiry
forward, which releases the slot.
…eaped gateway children

crag-v2 --gateway-worker sometimes leaves exited claude children as
zombies; they pile up over hours and a slot can end up kernel-faulted.
routing.crag_zombie_guard (default off) scans running CRAG v2 slots via
the slot exec path, and power-cycles an idle slot over the threshold (or
faulted) through the panel recover path, then verifies egress and the
zombie count. Failed checks park the slot as maintenance_failed and notify.
…ery outer recover refusal

The scan script carried the literal gateway flag in its own argv (sh -c and
kin-guest-exec), so the post-cycle check could pass with no gateway running.
recover() returns outer ok:false only before stop/start ran, so every such
code is a retry, not only a fixed list; a thrown recover() still parks.
feat(crag): opt-in guard that power-cycles idle CRAG slots with unreaped gateway children
…chedulable

fix(pool): 令牌过期且刷新失败(笼统 refresh_failed)的 Claude 槽移出调度
@cursor

cursor Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: fc570a4d-49fa-4d7e-a619-7ccf2e01f4bd)

@dofastted dofastted changed the title release: v1.4.235 release: v1.4.236 Nov 27, 2026
chore(release): sync main v1.4.235 and prepare v1.4.236
@dofastted
dofastted merged commit e8e8c48 into main Nov 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants