Skip to content

Commit b09fe84

Browse files
authored
refactor: Implement JSONL v2 format for conversation storage (#383)
Refactors JSONL storage to use a new v2 format with append-only writes for better performance. Maintains backward compatibility with existing v1 format files. The new format reduces file rewrites by only appending new entries and updating metadata.
1 parent 3eaba3d commit b09fe84

3 files changed

Lines changed: 792 additions & 134 deletions

File tree

internal/app/chat.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,6 @@ func (app *ChatApplication) Init() tea.Cmd {
328328
if cmd := app.modelSelector.Init(); cmd != nil {
329329
cmds = append(cmds, cmd)
330330
}
331-
if app.conversationSelector != nil {
332-
if cmd := app.conversationSelector.Init(); cmd != nil {
333-
cmds = append(cmds, cmd)
334-
}
335-
}
336331

337332
if readiness := app.stateManager.GetAgentReadiness(); readiness != nil && readiness.TotalAgents > 0 {
338333
cmds = append(cmds, func() tea.Msg {

0 commit comments

Comments
 (0)