Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Revert the handoff-side summary re-read

Claude69cc3987e606
diff --git a/cli/beacon/internal/handoff/grok.go b/cli/beacon/internal/handoff/grok.go
index b843a27a..950469fc 100644
--- a/cli/beacon/internal/handoff/grok.go
+++ b/cli/beacon/internal/handoff/grok.go
@@ -37,8 +37,6 @@ func (s *grokSource) List() ([]Session, error) {
var summary groksession.Summary
if ref.Summary != nil {
summary = *ref.Summary
- } else {
- summary = readGrokSummary(ref.SourcePath)
}
title := oneLine(firstNonEmpty(summary.GeneratedTitle, summary.SessionSummary))
if title == "" {
@@ -102,20 +100,6 @@ func grokWorkingDirectory(ref groksession.SessionRef) string {
return ref.Workspace
}
-// readGrokSummary re-reads summary.json from disk. The store nils Summary when the three display
-// fields are empty, but the handoff list needs session_kind and head_branch which may still be set.
-func readGrokSummary(sourcePath string) groksession.Summary {
- data, err := os.ReadFile(filepath.Join(sourcePath, "summary.json"))
- if err != nil {
- return groksession.Summary{}
- }
- var s groksession.Summary
- if json.Unmarshal(data, &s) != nil {
- return groksession.Summary{}
- }
- return s
-}
-
// readGrokFirstPrompt returns the first thing a person typed in a Grok chat history.
func readGrokFirstPrompt(path string) string {
var prompt string