Skip to content

Commit 243368a

Browse files
committed
cleanup: remove debug code from call-chain command
Debug code was temporarily added to investigate reverse call-chain behavior. The reverse functionality is working correctly - PrepareMemoryContext simply has no callers in the codebase.
1 parent 19a1757 commit 243368a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

engine/mcp/handlers.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,12 @@ func (s *Server) HandleTraceCallChainInternal(ctx context.Context, input map[str
912912
var responseText string
913913
if reverse {
914914
if toFunction != "" {
915-
responseText = fmt.Sprintf("Found %d reverse call chains from %s to %s", len(results), fromFunction, toFunction)
915+
responseText = fmt.Sprintf(
916+
"Found %d reverse call chains from %s to %s",
917+
len(results),
918+
fromFunction,
919+
toFunction,
920+
)
916921
} else {
917922
responseText = fmt.Sprintf("Found %d functions that call %s", len(results), fromFunction)
918923
}

0 commit comments

Comments
 (0)