Repository navigation
Conversation
…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.
…outing hot-reload
…me worker credential
feat(crag): opt-in guard that power-cycles idle CRAG slots with unreaped gateway children
…chedulable fix(pool): 令牌过期且刷新失败(笼统 refresh_failed)的 Claude 槽移出调度
chore(release): v1.4.235
Contributor
Bugbot couldn't run - usage limit reachedBugbot 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) |
chore(release): sync main v1.4.235 and prepare v1.4.236
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Release v1.4.236 (
dev → main)包含以下合入
dev的改动(已同步合入v1.4.235热修 #1962):routing.crag_zombie_guard,默认关闭)VERSION升至1.4.236与CHANGELOG.md更新按发版规范使用普通 merge(不 squash)合入
main后打v1.4.236tag 触发 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 liveworker_status/knownHealthcredential snapshots into eligibility so stale VM JSON does not reject freshly refreshed seats.routing.crag_zombie_guardperiodically read-only scans/procon running CRAG v2 slots, counts zombies parented by--gateway-worker, and may power-cycle one idle slot per tick via the panel recover path (recoverSlotwithbeforeStop/verifyAfter,clearUnschedulable: false). Failed post-checks park slots asmaintenance_failedand can notify operators.nativeKernelBusynow treats CRAG v2 idle warm PIDs as non-busy. Admin routing hot-update and rollback wire the new config;docs/crag-gateway-zombies.mddocuments the vendor issue and workaround.Reviewed by Cursor Bugbot for commit a6d70ad. Configure here.