diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/auth.ts | 2 | ||||
| -rw-r--r-- | packages/opencode/src/cli/cmd/github.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/cli/cmd/auth.ts b/packages/opencode/src/cli/cmd/auth.ts index a5e52dd0e..f200ec4fe 100644 --- a/packages/opencode/src/cli/cmd/auth.ts +++ b/packages/opencode/src/cli/cmd/auth.ts @@ -36,7 +36,7 @@ async function handlePluginAuth(plugin: { auth: PluginAuth }, provider: string): const method = plugin.auth.methods[index] // Handle prompts for all auth types - await new Promise((resolve) => setTimeout(resolve, 10)) + await Bun.sleep(10) const inputs: Record<string, string> = {} if (method.prompts) { for (const prompt of method.prompts) { diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts index 26e0fb73d..0bda43ea7 100644 --- a/packages/opencode/src/cli/cmd/github.ts +++ b/packages/opencode/src/cli/cmd/github.ts @@ -348,7 +348,7 @@ export const GithubInstallCommand = cmd({ } retries++ - await new Promise((resolve) => setTimeout(resolve, 1000)) + await Bun.sleep(1000) } while (true) s.stop("Installed GitHub app") |
