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.

test(e2e): give the citation replay's stub agent the real result event (#2890)

Call White399fc34c1bc0
diff --git a/tests/e2e/test_codex_citation_contract.py b/tests/e2e/test_codex_citation_contract.py
index a9255b14e..f6569a39e 100644
--- a/tests/e2e/test_codex_citation_contract.py
+++ b/tests/e2e/test_codex_citation_contract.py
@@ -332,8 +332,10 @@ def test_real_notifications_deliver_and_persist_resolved_citations(
agent.controller = controller
agent.config = controller.config
agent._calculate_duration_ms = lambda started_at: 0
- # The real result emit, so the sidecar crosses the real agent boundary.
+ # The real result emit, so the sidecar crosses the real agent boundary, with the real
+ # event it emits: a stub that lacks one fails before the boundary it is here to cross.
agent.emit_result_message = types.MethodType(BaseAgent.emit_result_message, agent)
+ agent._result_event = BaseAgent._result_event
handler = CodexEventHandler(agent)
context = MessageContext(