Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0e921d2
WIP for Session Tests
nisranjan Aug 18, 2025
0f65d98
Sessions Test Cases Complete #466
nisranjan Aug 19, 2025
a1c80ac
Changes as per comments #497
nisranjan Sep 5, 2025
671311a
Merge branch 'main' into session_persistance
nisranjan Sep 5, 2025
68bb9c9
WIP for Adding Session Init() for Azure Open AI #459
nisranjan Sep 5, 2025
8f7862b
Merge branch 'session_persistance' of https://github.com/nisranjan/ku…
nisranjan Sep 5, 2025
7bd0cb2
Fix `setup-dev-cluster` verification script (#522)
noahlwest Sep 8, 2025
9955aa9
fix: GetLatestSession() does not get latest session (#523)
noahlwest Sep 8, 2025
face4c8
fix: address statefulset-lifecycle and list-images-for-pods consisten…
noahlwest Sep 10, 2025
27895d6
Update prompt to be specific about our requirements so they're easier…
noahlwest Sep 10, 2025
630a8e1
feat: always ask for approval for non-readonly commands (#510)
droot Sep 10, 2025
cd4a59c
WIP OpenAI Session Initialization and persistance #465
nisranjan Sep 10, 2025
4333acd
WIP Added Initialize() method for Grok, enabling support for session …
nisranjan Sep 10, 2025
184f94f
fix(mcp): handle object schemas without properties field (#521)
bharats97 Sep 10, 2025
69dc4c0
[Feature]: Support Ctrl+D to exit interactive mode (#526)
prasad89 Sep 10, 2025
961b2cc
install mockgen (#527)
ShubyM Sep 10, 2025
9889830
fix: go releaser (#528)
ShubyM Sep 10, 2025
5e8e0a9
fix: eval hangs (#529)
ShubyM Sep 11, 2025
f4b1728
feat: e2e test for clear (#513)
ShubyM Sep 11, 2025
3c1538f
Fix/ci periodic (#530)
zvdy Sep 11, 2025
9578250
update k8s-bench results (#533)
noahlwest Sep 12, 2025
5f2fe1f
feat: add krew releaser step (#532)
ShubyM Sep 12, 2025
9523cd6
fix: remove comment on krew.yaml (#537)
ShubyM Sep 15, 2025
d1c3d83
feat: Add --show-failures flag to `analyze-evals`, update scripts (#542)
noahlwest Sep 18, 2025
62f1996
feat: streamable-http server support (#545)
ShubyM Sep 25, 2025
deb1836
Add timer to eval runs (#547)
noahlwest Sep 25, 2025
ad58bf2
Fix `auth` directive being ignored in mcp.yaml config (#546)
tdubenirmata Sep 25, 2025
31c3629
fix: handle empty LLM response (#551)
droot Sep 29, 2025
abb02bf
feat: add llm request/response tracing, http client timeout (#552)
noahlwest Sep 30, 2025
12ec72c
feat: Add ability to create new kind cluster for k8s-bench run (#553)
noahlwest Oct 1, 2025
67273a6
Made the system prompt to be human interaction aware (#555)
droot Oct 3, 2025
4e22973
WIP for Session Tests
nisranjan Aug 18, 2025
98db964
Sessions Test Cases Complete #466
nisranjan Aug 19, 2025
3e43875
Changes as per comments #497
nisranjan Sep 5, 2025
9ecc7a6
WIP for Adding Session Init() for Azure Open AI #459
nisranjan Sep 5, 2025
3d96b24
WIP OpenAI Session Initialization and persistance #465
nisranjan Sep 10, 2025
267b13e
WIP Added Initialize() method for Grok, enabling support for session …
nisranjan Sep 10, 2025
025a036
Removed the ListSession() call in GetLatestSession(), so #518 now loo…
nisranjan Sep 10, 2025
123954a
chore(format): add license headers and gofmt via dev/tasks/format.sh
nisranjan Oct 6, 2025
325734a
Revert "chore(format): add license headers and gofmt via dev/tasks/fo…
nisranjan Oct 6, 2025
68b0066
Reapply "chore(format): add license headers and gofmt via dev/tasks/f…
nisranjan Oct 6, 2025
5cfe3fe
Revert "Reapply "chore(format): add license headers and gofmt via dev…
nisranjan Oct 6, 2025
b996f0c
Merge branch 'session_persistance' of https://github.com/nisranjan/ku…
nisranjan Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require (
github.com/mark3labs/mcp-go v0.31.0
github.com/spf13/cobra v1.9.1
github.com/spf13/pflag v1.0.6
github.com/stretchr/testify v1.10.0
golang.org/x/sync v0.13.0
golang.org/x/term v0.31.0
k8s.io/klog/v2 v2.130.1
Expand Down Expand Up @@ -60,6 +61,7 @@ require (
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
github.com/charmbracelet/x/exp/slice v0.0.0-20250327172914-2fdc97757edf // indirect
github.com/charmbracelet/x/term v0.2.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.11.4 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
Expand All @@ -86,6 +88,7 @@ require (
github.com/ollama/ollama v0.6.5 // indirect
github.com/openai/openai-go v1.11.0 // indirect
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sahilm/fuzzy v0.1.1 // indirect
github.com/spf13/cast v1.7.1 // indirect
Expand All @@ -110,4 +113,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20250219182151-9fdb1cabc7b2 // indirect
google.golang.org/grpc v1.70.0 // indirect
google.golang.org/protobuf v1.36.5 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
16 changes: 12 additions & 4 deletions pkg/sessions/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package sessions

import (
"bufio"
"encoding/json"
"fmt"
"os"
Expand Down Expand Up @@ -146,11 +147,18 @@ func (s *Session) ChatMessages() []*api.Message {
}
defer f.Close()

scanner := json.NewDecoder(f)
for scanner.More() {
// Read file line by line instead of using json.Decoder
scanner := bufio.NewScanner(f)
for scanner.Scan() {
line := scanner.Text()
if line == "" {
continue
}

var message api.Message
if err := scanner.Decode(&message); err != nil {
continue // skip malformed messages
if err := json.Unmarshal([]byte(line), &message); err != nil {
// Skip malformed messages
continue
}
messages = append(messages, &message)
}
Expand Down
Loading
Loading