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(agent-core): redacted thinking always carries its payload
cyhd2d418227599
diff --git a/core/agent_core/messages.py b/core/agent_core/messages.pyindex b001e60c4..4c2a43409 100644--- a/core/agent_core/messages.py+++ b/core/agent_core/messages.py@@ -65,10 +65,13 @@ class ThinkingBlock:text: strsignature: Optional[str] = Noneredacted: bool = False+ """True for reasoning the provider returned only in opaque form: ``signature`` holds that payload, ``text`` is empty."""def __post_init__(self) -> None:if self.signature is not None and not self.signature:raise ValueError("a signature, when present, must not be empty")+ if self.redacted and (self.signature is None or self.text):+ raise ValueError("redacted thinking keeps its payload in signature and has empty text")@dataclass(frozen=True)diff --git a/tests/agent_core/test_messages.py b/tests/agent_core/test_messages.pyindex 010058588..cdbd7c4ef 100644--- a/tests/agent_core/test_messages.py+++ b/tests/agent_core/test_messages.py@@ -102,13 +102,15 @@ def test_assistant_message_exposes_tool_calls_in_order():{**TOOL_RESULT, "tool_name": ""},{**ASSISTANT, "usage": {**ASSISTANT["usage"], "cache_read_tokens": -1}},{**ASSISTANT, "content": [{"type": "tool_call", "id": "t", "name": "bash", "arguments": {}, "signature": ""}]},+ {**REDACTED, "content": [{"type": "thinking", "text": "", "redacted": True}]},+ {**REDACTED, "content": [{"type": "thinking", "text": "visible", "signature": "opaque", "redacted": True}]},],ids=["unknown-field", "unknown-block-field", "block-not-allowed", "stop-reason", "protocol", "role","unknown-ref-field", "string-flag", "integer-flag", "string-redacted", "string-count", "boolean-count","string-arguments", "number-text", "content-not-list", "null-signature", "null-name", "null-error","null-usage", "explicit-not-redacted", "digest-newline", "empty-call-id", "empty-tool-name", "negative-count",- "empty-call-signature",+ "empty-call-signature", "redacted-without-payload", "redacted-with-text",],)def test_reader_refuses_shapes_it_does_not_know(payload):