GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) by dezren39 · Pull Request #7898 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: a70a475ce5
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b4b6b8569
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| pool.windows = []; | ||
| delete pool.wallLiftsAt; | ||
| return false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Refresh model-choice guidance when clearing lapsed windows
When a lapse is applied and no other entry supplies fresh percentage windows, this branch clears the pool's windows but returns false, leaving anyFreshWindows unset. Consequently, overlayQuotaCurrent() preserves the base view's choices, potentially still recommending the cancelled workspace under “Headroom for a new session” or “Burn-it-before-reset.” The filtering in feed.ts happens before the overlay in sources/live.ts, and render.ts displays these choice lists directly. Invalidate or recompute guidance when a lapse removes a pool's usable windows, even without a successful sibling read.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e572e55 ("invalidate choices for lapsed pools"): when a lapse is applied, applyEntry's lapsed branch clears the pool's windows and returns true, and both overlay call sites now capture that return so computeChoices runs again — a lapsed pool no longer keeps stale model-choice guidance. Verified again in the 2026-11-10 shepherd merge of current main into this branch (conflict resolution kept both the legError plumbing and the choices-recompute capture at both call sites); aggregator quota suites green.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Updates quota ingestion/overlay/rendering to treat OpenCode Go “No active subscription” as a terminal lapsed state (not an error), ensuring lapsed workspaces split correctly and do not publish stale quota windows or trigger retention.
Changes:
lapsed state and propagate it through split mapping, ingest validation, overlay, notifications, digest, and credential lifecycle.| File | Description |
|---|---|
| pm-stack/aggregator/src/quota-gather-map.ts | Introduces lapsed mapping for OpenCode Go lapse signal and prevents publishing windows on lapse. |
| pm-stack/aggregator/scripts/gather-quota.ts | Updates run finalization/retention logic so lapsed rows aren’t replaced by last-known OK data. |
| pm-stack/aggregator/src/quota-current.ts | Adds lapsed handling in overlay (clears windows, recomputes choices) and ingest validation. |
| pm-stack/aggregator/src/model.ts | Extends shared types (QuotaState, freshness states, heartbeat states, etc.) to include lapsed. |
| pm-stack/aggregator/src/notifications.ts | Prevents notifications/wall derivation for lapsed pools. |
| pm-stack/aggregator/src/digest.ts | Adds lapsed messaging in per-pool notes (but degraded-provider summary logic remains error/stale only). |
| pm-stack/aggregator/src/feed.ts | Updates runtime validators to accept lapsed states. |
| pm-stack/aggregator/src/credential-lifecycle.ts | Adds lapsed as a credential lifecycle classification. |
| pm-stack/aggregator/src/quota-refresh.ts | Treats lapsed as a non-error freshness state when computing newest measurement time. |
| pm-stack/aggregator/src/assets/app.css | Adds styling for a lapsed badge. |
| pm-stack/aggregator/test/quota-gather-map.test.ts | Updates/extends split behavior assertions for lapsed vs error and window suppression. |
| pm-stack/aggregator/test/quota-current.test.ts | Adds overlay test ensuring lapse is terminal, clears windows, and removes guidance. |
| pm-stack/aggregator/test/gather-quota.test.ts | Adds end-to-end retention/ingest tests ensuring lapsed survives and doesn’t emit snapshots. |
Review effort: Lite
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .filter( | ||
| (p) => | ||
| (p.freshness?.state ?? p.state) === "error" || | ||
| (p.freshness?.state ?? p.state) === "stale", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Intentional, not an omission: the digest's degradedProviders list is the error/stale set — providers whose reads are failing or aging. A lapsed pool is a terminal, successfully-read state (the subscription ended; the read worked), so it surfaces through its pool state and the explicit lapsed pool note rather than the degraded list, the same way it is not counted in the renderer's error-pool count. Keeping it out of "degraded" is what makes the lapsed state distinct from error, which is the point of this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| export function isGoLapseResult(result: QuotaProviderResult): boolean { | ||
| return ( | ||
| result.providerId === "opencode-go" && | ||
| !result.ok && | ||
| result.configured && | ||
| typeof result.error === "string" && | ||
| result.error.includes("No active OpenCode Go subscription") | ||
| ); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the 2026-11-10 shepherd push (912d172): isGoLapseResult now compares canonicalProviderId(result.providerId) to "opencode-go", matching entryFromResult's canonicalization.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
# Conflicts: # pm-stack/aggregator/src/quota-current.ts
… newestMeasurement docstring (Copilot review, PR #7898)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.