Skip to content

Commit 7dfa96d

Browse files
committed
fix(provider): add required duration field to SSO toast notifications
1 parent 78690eb commit 7dfa96d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/opencode/src/provider/provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
321321
void Bus.publish(TuiEvent.ToastShow, {
322322
variant: "warning",
323323
message: "AWS SSO session expired — re-authenticating...",
324+
duration: 5000,
324325
})
325326
await new Promise<void>((resolve, reject) => {
326327
const args = ["sso", "login", ...(profile ? ["--profile", profile] : [])]
@@ -330,6 +331,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
330331
void Bus.publish(TuiEvent.ToastShow, {
331332
variant: "success",
332333
message: "AWS SSO re-authentication successful",
334+
duration: 5000,
333335
})
334336
resolve()
335337
} else {

0 commit comments

Comments
 (0)