From 1372c761bbd1c974b66c55cbdb11ea432efa1c0f Mon Sep 17 00:00:00 2001 From: Adnaan Date: Sun, 18 Jan 2026 01:54:42 +0100 Subject: [PATCH 1/2] chore: upgrade to livetemplate v0.8.0 Update github.com/livetemplate/livetemplate from v0.7.7 to v0.8.0. v0.8.0 introduces fingerprint-based structure comparison for diff operations, replacing the complex ClientStructureRegistry. This is a non-breaking change for downstream users. Co-Authored-By: Claude Opus 4.5 --- go.mod | 2 +- go.sum | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d99b176..34825ea 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/uuid v1.6.0 github.com/gorilla/websocket v1.5.3 github.com/livetemplate/components v0.0.0-20251224004709-1f8c1de230b4 - github.com/livetemplate/livetemplate v0.7.12 + github.com/livetemplate/livetemplate v0.8.0 github.com/livetemplate/lvt v0.0.0-20260110064539-b9afb9e6df26 modernc.org/sqlite v1.43.0 ) diff --git a/go.sum b/go.sum index 7ade2fb..ab3e39b 100644 --- a/go.sum +++ b/go.sum @@ -126,8 +126,8 @@ github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= github.com/livetemplate/components v0.0.0-20251224004709-1f8c1de230b4 h1:wLfVleSSlcv4NPg5KN8pul0Rz9ub1CtI8OAcPlyBYlw= github.com/livetemplate/components v0.0.0-20251224004709-1f8c1de230b4/go.mod h1:+C2iGZfdgjc6y6MsaDHBWzWGIbBHna4l+ygFYJfuyUo= -github.com/livetemplate/livetemplate v0.7.12 h1:2JTEBbaa4G0dl+v4BTg8mVU0FZYjgAQhx98q0u5qDlA= -github.com/livetemplate/livetemplate v0.7.12/go.mod h1:mTI76skBGEx4jD9pO52L9xBY4/ZDW4muAKWwXnupvtc= +github.com/livetemplate/livetemplate v0.8.0 h1:eWUhB6jwkTj4rfgRAZG+Eap0wGeaovmwXO3hGdQpf5M= +github.com/livetemplate/livetemplate v0.8.0/go.mod h1:0jD5ccG/VQ/BmjbsZdOamAeFh+aO/f1yJeMQqhxPa68= github.com/livetemplate/lvt v0.0.0-20260110064539-b9afb9e6df26 h1:RRYko8rFvHz8ad5ixw3ke1ZvJKMtVqJA6Ddxx92Wobw= github.com/livetemplate/lvt v0.0.0-20260110064539-b9afb9e6df26/go.mod h1:b+qhiaDS5oURHjiCs+ZPOoJTtZ+5cCM8xyriVA97uQo= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= @@ -253,3 +253,5 @@ modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0= modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A= modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= +pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= +pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= From ad9349585f4f86527ebc42eb15951b8b1e8d7afa Mon Sep 17 00:00:00 2001 From: Adnaan Date: Sun, 18 Jan 2026 02:10:14 +0100 Subject: [PATCH 2/2] fix(chat): use dynamic port allocation to avoid test conflicts - Use e2etest.GetFreePort() instead of hardcoded port 8096 - Use e2etest.StartTestServer() for consistent server startup - Prevents test failures from stale server processes Co-Authored-By: Claude Opus 4.5 --- chat/chat_e2e_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/chat/chat_e2e_test.go b/chat/chat_e2e_test.go index c48d06d..ffd1147 100644 --- a/chat/chat_e2e_test.go +++ b/chat/chat_e2e_test.go @@ -3,7 +3,6 @@ package main import ( "context" "fmt" - "net/http" "strings" "testing" "time" @@ -59,23 +58,6 @@ func TestChatE2E(t *testing.T) { }() serverURL := fmt.Sprintf("http://localhost:%d", serverPort) - - // Wait for server to be ready - ready := false - for i := 0; i < 100; i++ { // 10 seconds - resp, err := http.Get(serverURL) - if err == nil { - resp.Body.Close() - ready = true - break - } - time.Sleep(100 * time.Millisecond) - } - - if !ready { - t.Fatal("Server failed to start within 10 seconds") - } - t.Logf("✅ Test server ready at %s", serverURL) // Start Docker Chrome container