Skip to content

feat(opencode): add killswitch indicators to quota toast#38

Open
iceteaSA wants to merge 1 commit into
cortexkit:mainfrom
iceteaSA:feat/killswitch-toast
Open

feat(opencode): add killswitch indicators to quota toast#38
iceteaSA wants to merge 1 commit into
cortexkit:mainfrom
iceteaSA:feat/killswitch-toast

Conversation

@iceteaSA
Copy link
Copy Markdown
Contributor

@iceteaSA iceteaSA commented May 21, 2026

Summary

Adds killswitch indicators to the quota usage toast.

Builds on the merged killswitch (#35) and quota toast (#36). Each account line in the toast now shows a blocked status (instead of active/idle) when the killswitch has removed it from the routing pool, so the toast matches the routing reality at a glance.

Changes

  • packages/opencode/src/index.tsshowQuotaToast marks killswitch-blocked accounts as blocked and factors that into the active-account selection shown in the toast.

Notes

Now that #35 and #36 are in main, this PR is just the toast-indicator delta on top of them.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 10 files

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Fix all with cubic | Re-trigger cubic

Comment thread packages/core/src/quota-manager.ts
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch 5 times, most recently from 16c1a8b to b6cc376 Compare May 22, 2026 17:08
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch 10 times, most recently from 2064776 to 04b768a Compare June 3, 2026 18:24
Comment thread packages/opencode/src/index.ts Outdated
Comment thread packages/opencode/src/index.ts Outdated
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch from 04b768a to a3fca77 Compare June 3, 2026 18:58
Comment thread packages/opencode/src/index.ts Outdated
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch from a3fca77 to 4e89c5f Compare June 3, 2026 19:14
Comment thread packages/opencode/src/index.ts
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch 4 times, most recently from 3fd2fbf to 930eee6 Compare June 3, 2026 20:20
Comment thread packages/opencode/src/index.ts
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch 3 times, most recently from 6081cc0 to c4f8057 Compare June 3, 2026 21:02
@iceteaSA
Copy link
Copy Markdown
Contributor Author

iceteaSA commented Jun 4, 2026

Updated: this branch now carries the sidebar quota fix (#57), merged in to keep the sidebar-touching branches consistent. #57's commits appear in this PR's diff until #57 merges to main, after which the diff reduces to this PR's own changes. Merge order: #57 first.

@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch from 98bbba1 to b520a7b Compare June 4, 2026 08:03
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iceteaSA has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Layer killswitch awareness onto the restyled toast (isKilled predicate,
blocked status word, ksIsKilled-aware showQuotaToastFromCache).

Also restores the process-scoped 'let sessionRequestCount' (a prior cascade
had flipped it to const).
@iceteaSA iceteaSA force-pushed the feat/killswitch-toast branch from b520a7b to 3ac05c0 Compare June 5, 2026 16:44
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iceteaSA has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

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.

1 participant