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(show): expect frame-ancestors 'self' for private Show Pages

cyh9b88611c6560
diff --git a/tests/test_ui_show_pages.py b/tests/test_ui_show_pages.py
index 03f976359..0b37d2c71 100644
--- a/tests/test_ui_show_pages.py
+++ b/tests/test_ui_show_pages.py
@@ -816,7 +816,9 @@ def test_private_show_page_sets_show_event_write_cookie(monkeypatch, tmp_path):
cookies = "\n".join(response.headers.getlist("set-cookie"))
assert "vibe_show_event_token=token-ses123" in cookies
assert "Path=/show/ses123/" in cookies
- assert response.headers["content-security-policy"] == "frame-ancestors 'none'"
+ # 'self' (not 'none'): the workbench frames a private Show Page in the chat
+ # view (same origin); cross-origin framing stays blocked.
+ assert response.headers["content-security-policy"] == "frame-ancestors 'self'"
def test_public_show_page_clears_show_event_write_cookie(monkeypatch, tmp_path):