Repository navigation
Conversation
列表和详情不再用会被轮询盖掉的 vm.inflight。请求中只统计席位上仍在请求的 session;席位流连接期间,更早发出的列表轮询不会清掉最新一帧。
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: af913beb-5be6-4beb-b901-371c5f2a7dd3) |
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.
摘要
active或inflight > 0);交接中的held不算。Codex 没有逐席明细时仍用 VM 级inflight,不用session_active。验证
pnpm -C web exec vitest run src/lib/vm-status.test.ts src/features/vm/use-pool-seat-stream.test.ts src/features/vm/vm-list-table.test.tsx(73 通过)pnpm -C web exec tsc -b --pretty false无错误Note
Medium Risk
Changes React Query cache merge behavior for live seat data alongside display metrics; bugs could show stale or incorrect requesting counts but are scoped to the VM panel UI.
Overview
VM list and detail UI now show 请求中 (requesting) instead of 在飞 (in-flight), using a new
vmRequestingCounthelper that totals per-seatinflightandactivesessions whenseat_sessionsexists, ignoresheldhandoffs and empty seat books, and only falls back to VM-levelinflightfor rows without per-seat data (e.g. Codex).The pool seat SSE hook now keeps the latest seat snapshot and re-applies it after successful refetches on list, dashboard, and VM detail query keys (
isLiveSeatQueryKey), so slower polling responses cannot overwrite fresher live stream updates while the connection is open.Reviewed by Cursor Bugbot for commit 8131dec. Configure here.