feat(opencode): в лог при создании сессии — ссылка на сообщения (order=asc)
Some checks failed
CI / test (push) Failing after 1m49s
CI / build-and-package (amd64, linux) (push) Failing after 1m1s
CI / build-and-package (amd64, windows) (push) Successful in 31s

This commit is contained in:
ki.sagidullin
2026-08-24 12:14:19 +05:00
parent 46be641967
commit 5b43da4564
3 changed files with 17 additions and 0 deletions

View File

@@ -354,4 +354,13 @@ func TestClientErr_Unwrap(t *testing.T) {
if !errors.As(ce, &target) {
t.Fatal("expected *ClientErr")
}
}
// TestSessionMessagesURL — ссылка на сообщения сессии, сортировка по времени (сначала ранние).
func TestSessionMessagesURL(t *testing.T) {
got := SessionMessagesURL("http://127.0.0.1:4101", "sess-abc")
want := "http://127.0.0.1:4101/api/session/sess-abc/message?order=asc"
if got != want {
t.Errorf("SessionMessagesURL() = %q, want %q", got, want)
}
}