Skip to content

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

Fix notebook_path missing from diff resolvers in parseClaudeCopilotInput and FromToolResponse

Cursor Agent9dba36e69ca4
diff --git a/cli/beacon-hooks/cmd/post_tool.go b/cli/beacon-hooks/cmd/post_tool.go
index 8f2531f6..99e44c42 100644
--- a/cli/beacon-hooks/cmd/post_tool.go
+++ b/cli/beacon-hooks/cmd/post_tool.go
@@ -183,6 +183,9 @@ func parseClaudeCopilotInput(input map[string]interface{}, logger *logging.Logge
if filePath == "" {
filePath = diff.GetStringFromMaps("absolute_path", toolInput, toolResponse)
}
+ if filePath == "" {
+ filePath = diff.GetStringFromMaps("notebook_path", toolInput, toolResponse)
+ }
filePath = diff.NormalizePath(filePath)
if (sessionID == "" && !isDevinLikePlatform(platformFlag)) || toolName == "" || filePath == "" {
diff --git a/cli/beacon-hooks/internal/diff/diff.go b/cli/beacon-hooks/internal/diff/diff.go
index 8a513bd8..d70fd206 100644
--- a/cli/beacon-hooks/internal/diff/diff.go
+++ b/cli/beacon-hooks/internal/diff/diff.go
@@ -24,6 +24,9 @@ func FromToolResponse(toolName string, toolInput, toolResponse map[string]interf
if filePath == "" {
filePath = GetStringFromMaps("absolute_path", toolInput, toolResponse)
}
+ if filePath == "" {
+ filePath = GetStringFromMaps("notebook_path", toolInput, toolResponse)
+ }
filePath = NormalizePath(filePath)
if filePath == "" {
return ""