fix(app): preserve provider dialog backdrop (#35370)

Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
opencode-agent[bot]
2026-07-06 06:08:59 +00:00
committed by GitHub
co-authored by Jay Brendan Allan
parent e12cb7fb6b
commit 14df88eab5
7 changed files with 107 additions and 95 deletions
@@ -77,7 +77,16 @@ export function useUsageExceededDialogs() {
if (dontShowAgain) setGoUpsellState(keys.dontShow, Date.now())
else {
void import("../../components/dialog-connect-provider").then((x) =>
dialog.show(() => <x.DialogConnectProvider provider="opencode-go" />),
dialog.show(() => (
<x.DialogConnectProvider
provider="opencode-go"
onBack={() => {
void import("../../components/dialog-select-provider").then((provider) => {
dialog.show(() => <provider.DialogSelectProvider />)
})
}}
/>
)),
)
}
}}