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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(restart): validate supervisor create-time before blocking; honest copy when retries exhaust
cyhf75b9f92a241
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex f67ae1ed2..e150b35f5 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -741,7 +741,7 @@"restartingService": "Restarting service to apply changes...","restartedSuccess": "Configuration applied and service restarted","restartFailed": "Configuration saved, but service restart failed",- "restartInProgress": "A restart is already in progress. Your change is saved and will apply once it finishes.",+ "restartInProgress": "Saved. The service is busy restarting — toggle again shortly to make sure it takes effect.","credentialSetupTitle": "{{platform}} workspace setup","credentialSetupSubtitle": "Configure the selected platform directly here, then validate credentials before enabling groups.","stepCreateApp": "Create platform app",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 722951188..cb04daa0c 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -741,7 +741,7 @@"restartingService": "正在重启服务以使配置生效...","restartedSuccess": "配置已应用,服务已重启","restartFailed": "配置已保存,但服务重启失败",- "restartInProgress": "服务正在重启,更改已保存,将在重启完成后生效。",+ "restartInProgress": "更改已保存。服务正忙于重启——请稍后再次切换以确保生效。","credentialSetupTitle": "{{platform}} 工作区设置","credentialSetupSubtitle": "在这里直接配置选中平台,并在启用群组前验证凭证。","stepCreateApp": "创建平台应用",diff --git a/vibe/ui_server.py b/vibe/ui_server.pyindex dc3992ff2..62d8747a9 100644--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@ -2177,7 +2177,19 @@ def _restart_in_flight() -> bool:return Falsesup_pid = status.get("supervisor_pid")if isinstance(sup_pid, int):- return bool(runtime.pid_alive(sup_pid))+ if not runtime.pid_alive(sup_pid):+ return False+ # Guard against PID reuse: a dead supervisor's pid can be reclaimed by an+ # unrelated process (notably across a reboot), which would otherwise keep+ # blocking restarts until that process exits. The job records its+ # ``supervisor_started_at`` (process create time), so only treat the pid+ # as the live supervisor when the create time still matches.+ started_at = status.get("supervisor_started_at")+ if started_at is not None:+ current = runtime.process_create_time(sup_pid)+ if current is not None and current != started_at:+ return False+ return True# No supervisor pid recorded yet: in flight only while the seed is fresh# (the child is still starting). An older pid-less status is stale.try: