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+runtime): keep /logs reachable on broken setup; tolerate corrupt status

cyhd2ab16002bb4
diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index 9b29ea623..318f707b7 100644
--- a/ui/src/App.tsx
+++ b/ui/src/App.tsx
@@ -24,7 +24,7 @@ const AuthGuard = ({ children }: { children: any }) => {
const location = useLocation();
const [loading, setLoading] = useState(true);
const [needsSetup, setNeedsSetup] = useState(false);
- const bypassSetupGuard = location.pathname === '/doctor/logs';
+ const bypassSetupGuard = location.pathname === '/doctor/logs' || location.pathname === '/logs';
useEffect(() => {
if (bypassSetupGuard) {
diff --git a/vibe/runtime.py b/vibe/runtime.py
index 56441f715..a28dd882c 100644
--- a/vibe/runtime.py
+++ b/vibe/runtime.py
@@ -120,7 +120,12 @@ def write_json(path, payload):
def read_json(path):
if not path.exists():
return None
- return json.loads(path.read_text(encoding="utf-8"))
+ try:
+ return json.loads(path.read_text(encoding="utf-8"))
+ except (json.JSONDecodeError, OSError):
+ # Status files are best-effort: a partially written or corrupted
+ # payload should not break write_status() or read_status().
+ return None
def _pid_alive_windows(pid: int) -> bool: