feat(opencode): add killswitch indicators to TUI sidebar#39
Conversation
There was a problem hiding this comment.
2 issues found across 16 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
84f44e5 to
583586a
Compare
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
09b34c3 to
8339edc
Compare
e86d9d3 to
a8d6404
Compare
a8d6404 to
ecffae9
Compare
4988ae1 to
78b02b4
Compare
eaf91c9 to
3147ad3
Compare
|
Updated: this branch now carries the sidebar quota fix (#57) and the collapsible sidebar (#58), and integrates the collapsed view with the killswitch indicators — the collapsed active-account row shows a red ⊘ (instead of the usage dot) when that account is killswitch-blocked; |
c73b37e to
5eb08e5
Compare
There was a problem hiding this comment.
iceteaSA has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Layer killswitch awareness onto the restyled sidebar (killed state in SidebarState + writeSidebarState via killswitchPassesPolicy, blocked status word, Killswitch health row, degraded/LIMITED inclusion). Also restores the process-scoped 'let sessionRequestCount' (a prior cascade had flipped it to const, which left the active-route fallback every-N refresh reading a never-incremented counter).
5eb08e5 to
d8b1bb3
Compare
There was a problem hiding this comment.
iceteaSA has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Summary
Adds killswitch indicators to the TUI quota sidebar, integrated with the collapsible sidebar.
Builds on the merged killswitch (#35) and collapsible sidebar (#58).
Changes
tui.tsx): eachAccountBlockshows ablockedstatus (error tone) when killswitch-blocked;killedNamesfeedsdegraded()(so theLIMITEDheader badge lights up) and aKillswitchrow in the Health section lists blocked accounts.tui.tsx): when the active account is blocked, the collapsed row's dot becomes a red⊘instead of the usage dot (the percentage stays usage-toned).sidebar-state.ts):SidebarAccountState/maingain akilledflag;resolveActiveAccountreturns it.index.tswriteSidebarStatecomputeskilledfrom killswitch policy.sidebar-state.test.tscovers thekilledpassthrough inresolveActiveAccount.Notes
Now that #35 and #58 are in
main, this PR is just the sidebar-indicator delta on top of them.