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(acl): preserve missing agent responses

Maxvint1e319ac4a328
diff --git a/core/vibe_agents.py b/core/vibe_agents.py
index 5e58d991d..30c7d02f4 100644
--- a/core/vibe_agents.py
+++ b/core/vibe_agents.py
@@ -251,13 +251,16 @@ class VibeAgentStore:
def require_accessible(self, name: str, *, user_context: Any = None, enabled_only: bool = False) -> VibeAgent:
"""Return an Agent only when the caller may use its ACL resource."""
- with self.engine.connect() as conn:
- agent = ensure_agent_selection_access(
- conn,
- agent_name=name,
- user_context=user_context,
- missing_is_error=True,
- )
+ try:
+ with self.engine.connect() as conn:
+ agent = ensure_agent_selection_access(
+ conn,
+ agent_name=name,
+ user_context=user_context,
+ missing_is_error=True,
+ )
+ except LookupError as exc:
+ raise ValueError(f"agent '{name}' not found") from exc
assert agent is not None
if enabled_only and not agent.enabled:
raise ValueError(f"agent '{agent.name}' is disabled")