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(memory): accept terminal null probe content

cyhbe5fd10abf19
diff --git a/core/memory/everos.py b/core/memory/everos.py
index 1ab2bafa9..573dcc115 100644
--- a/core/memory/everos.py
+++ b/core/memory/everos.py
@@ -1604,9 +1604,9 @@ def _chat_probe_response_issue(value: Any) -> str | None:
if "content" not in message:
return "provider_response_missing_content"
content = message["content"]
- if not isinstance(content, str):
+ if content is not None and not isinstance(content, str):
return "provider_response_invalid_content"
- if not content.strip():
+ if content is None or not content.strip():
if message.get("role") != "assistant":
return "provider_response_invalid_role"
finish_reason = choices[0].get("finish_reason")
diff --git a/tests/test_memory_everos.py b/tests/test_memory_everos.py
index 86c3ca6c8..00ce4a698 100644
--- a/tests/test_memory_everos.py
+++ b/tests/test_memory_everos.py
@@ -1439,7 +1439,8 @@ def test_processing_preflight_projects_sanitized_provider_error() -> None:
assert "secret" not in result.failure.diagnostic.message
-def test_processing_preflight_accepts_truncated_chat_completion_from_resolved_slot() -> None:
[email protected]("content", ["", None])
+def test_processing_preflight_accepts_truncated_chat_completion_from_resolved_slot(content) -> None:
requests: list[httpx.Request] = []
def handler(request: httpx.Request) -> httpx.Response:
@@ -1457,7 +1458,7 @@ def test_processing_preflight_accepts_truncated_chat_completion_from_resolved_sl
"finish_reason": "length",
"message": {
"role": "assistant",
- "content": "",
+ "content": content,
"reasoning_content": "O",
},
}