We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d845924 commit 4316edaCopy full SHA for 4316eda
packages/opencode/src/auth/copilot.ts
@@ -4,11 +4,12 @@ import path from "path"
4
5
export const AuthCopilot = lazy(async () => {
6
const file = Bun.file(path.join(Global.Path.state, "plugin", "copilot.ts"))
7
+ const exists = await file.exists()
8
const response = fetch("https://raw.githubusercontent.com/sst/opencode-github-copilot/refs/heads/main/auth.ts")
9
.then((x) => Bun.write(file, x))
10
.catch(() => {})
11
- if (!file.exists()) {
12
+ if (!exists) {
13
const worked = await response
14
if (!worked) return
15
}
0 commit comments