test(opencode): assert the generated session id is a v4 uuid

This commit is contained in:
Sean Murphy 2026-09-12 22:32:35 -07:00
parent 7c68415a62
commit 683e66334f

View file

@ -360,7 +360,7 @@ class TestMockedCompletion:
api_key="sk-fake",
)
uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"])
assert uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"]).version == 4
def test_zen_chat_sends_no_session_header(self, respx_mock, monkeypatch):
"""Only the Go surface requires the header."""