From aa7ad6edff7fafa987c26da97c94c0faffe60c78 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sat, 3 Jan 2026 19:16:20 -0700 Subject: [PATCH] feat(acp): include path in view tool results Assisted-by: Claude Sonnet 4 via Crush --- internal/acp/sink.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/acp/sink.go b/internal/acp/sink.go index 1b31f689e4ff0f495fae219782abb4eeac76ee6b..89134c3814e38cd84a873d2b18c00b54b1d38632 100644 --- a/internal/acp/sink.go +++ b/internal/acp/sink.go @@ -352,6 +352,13 @@ func (s *Sink) translateToolResult(tr message.ToolResult) *acp.SessionUpdate { acp.ToolDiffContent(meta.FilePath, meta.NewContent, meta.OldContent), } } + case "view": + var meta struct { + FilePath string `json:"file_path"` + } + if err := json.Unmarshal([]byte(tr.Metadata), &meta); err == nil && meta.FilePath != "" { + locations = []acp.ToolCallLocation{{Path: meta.FilePath}} + } case "ls": var meta struct { Path string `json:"path"`