Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): redirect to setup when slack bot_token is empty

cyhhaoeff3834b3c87
diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index c92fce1c6..1e16d61b3 100644
--- a/ui/src/App.tsx
+++ b/ui/src/App.tsx
@@ -19,8 +19,8 @@ const AuthGuard = ({ children }: { children: any }) => {
useEffect(() => {
getConfig().then(config => {
// Check if minimal config exists
- // For now, if no mode is set, we assume setup is needed
- if (!config || !config.mode) {
+ // If no mode or no slack bot_token, setup is needed
+ if (!config || !config.mode || !config.slack?.bot_token) {
setNeedsSetup(true);
}
setLoading(false);