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(backends): resolve CLI binary across both config shapes; surface partial sign-out in UI
cyh6f421a67f310
diff --git a/core/agent_auth_service.py b/core/agent_auth_service.pyindex c1a7bc16c..3a0376858 100644--- a/core/agent_auth_service.py+++ b/core/agent_auth_service.py@@ -381,9 +381,16 @@ class AgentAuthService:return f"{self._get_settings_key(context)}:{backend}"def _get_cli_binary(self, backend: str) -> str:- agents_cfg = getattr(getattr(self.controller, "config", None), "agents", None)- backend_cfg = getattr(agents_cfg, backend, None) if agents_cfg is not None else None- cli_path = getattr(backend_cfg, "cli_path", None)+ # Same dual-shape issue as ``_resolve_backend_config``: V2Config+ # carries the binary under ``config.agents.<backend>.cli_path``,+ # but ``AppCompatConfig`` (the shape live IM controllers run on)+ # exposes it at the top level — and renames it: ``config.claude.+ # cli_path``, ``config.codex.binary``, ``config.opencode.+ # binary``. Without these fallbacks, setup / logout / test+ # flows ignore a non-default cli_path and fall through to+ # ``$PATH``, breaking installs that pin a specific binary.+ backend_cfg = self._resolve_backend_config(backend)+ cli_path = getattr(backend_cfg, "cli_path", None) or getattr(backend_cfg, "binary", None)return cli_path or backendasync def _resolve_opencode_provider(self, context: MessageContext) -> str:diff --git a/ui/src/components/settings/BackendOAuthPanel.tsx b/ui/src/components/settings/BackendOAuthPanel.tsxindex 6cab7024a..98e979c8f 100644--- a/ui/src/components/settings/BackendOAuthPanel.tsx+++ b/ui/src/components/settings/BackendOAuthPanel.tsx@@ -273,7 +273,21 @@ export const BackendOAuthPanel: React.FC<BackendOAuthPanelProps> = ({return;}resetToIdle();- showToast(t('settings.backends.oauthRemoved'), 'success');+ if (result.partial) {+ // V2Config got cleared, but the CLI logout subprocess failed —+ // credentials may still live on disk. Surface a warning toast+ // with the detail so the user knows to investigate (e.g.+ // ``codex logout`` returning "Not logged in" is harmless;+ // a real failure means the user has to run logout manually).+ showToast(+ t('settings.backends.oauthRemovePartial', {+ detail: result.detail || result.warning || 'logout_failed',+ }),+ 'warning',+ );+ } else {+ showToast(t('settings.backends.oauthRemoved'), 'success');+ }onSuccessRef.current?.();} catch (err: any) {showToast(diff --git a/ui/src/context/ApiContext.tsx b/ui/src/context/ApiContext.tsxindex 29353ad41..54d38aa19 100644--- a/ui/src/context/ApiContext.tsx+++ b/ui/src/context/ApiContext.tsx@@ -328,6 +328,14 @@ export type OAuthWebMutationResult = {error?: string;detail?: string;notices?: BackendNotice[];+ // ``partial: true`` rides on ``ok: true`` when the V2Config side of+ // the operation succeeded but the CLI subprocess (``codex logout`` /+ // ``claude auth logout``) reported a non-zero exit. The caller should+ // show a warning rather than a green success — credentials may still+ // be on disk. Pairs with ``warning`` (machine-readable code) and+ // ``detail`` (human-readable excerpt).+ partial?: boolean;+ warning?: string;};export type BackendAuthTestResult = {diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 7a2beba11..1a23ea625 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -181,6 +181,7 @@"oauthRemove": "Sign out","oauthRemoved": "Credentials removed.","oauthRemoveFailed": "Could not remove credentials: {{detail}}",+ "oauthRemovePartial": "Credentials cleared from Vibe Remote, but the backend CLI logout reported a problem: {{detail}}. The CLI's own files may still be present.","testConnectionTitle": "Test connection","testConnectionSubtitle": "Send a one-token \"Hi\" prompt to verify the session, the model, and any custom Base URL.","testConnectionRun": "Run test",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex c216d340e..eb1448393 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -181,6 +181,7 @@"oauthRemove": "退出登录","oauthRemoved": "已移除凭据。","oauthRemoveFailed": "移除凭据失败:{{detail}}",+ "oauthRemovePartial": "已清除 Vibe Remote 内的凭据,但 CLI logout 返回错误:{{detail}}。CLI 自己的凭据文件可能仍在磁盘上。","testConnectionTitle": "测试连通性","testConnectionSubtitle": "发送一条 \"Hi\" 测试 prompt,用来验证账号、模型和自定义 Base URL 是否可用。","testConnectionRun": "运行测试",