]> git.giacomolli.uk - onechat/blobdiff - compactor.go
Keep a built leaf when the view lags the tree
[onechat] / compactor.go
index ac5fd1d56541e416e981c013cbe20f289afb281a..16303b0c342cc7a45784754076501e53344918e2 100644 (file)
@@ -68,6 +68,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) {
                        Instructions: c.instructions,
                        Tools:        c.tools,
                        Input:        []any{userMessage(parts...)},
                        Instructions: c.instructions,
                        Tools:        c.tools,
                        Input:        []any{userMessage(parts...)},
+                       Node:         &nodeKey{task.Level, task.Index},
                })
                if err != nil {
                        break
                })
                if err != nil {
                        break