Skip to content

Commit 26d052b

Browse files
committed
fix(ai): auto enable
1 parent a1aaf47 commit 26d052b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

addons/ai/src/main/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ export default () => {
3535
}
3636
})
3737

38+
getAccessToken().then(
39+
() => {
40+
status = true
41+
},
42+
() => {
43+
// ignore error
44+
},
45+
)
46+
3847
commas.ipcMain.provide('ai-server-status', $$(status))
3948

4049
commas.app.onCleanup(() => {

0 commit comments

Comments
 (0)