From 53ecbe249bbd19e6c8ca02914a14b4be19cf369c Mon Sep 17 00:00:00 2001 From: Ollie Agent Date: Sun, 2 Aug 2026 23:48:15 +0200 Subject: [PATCH] fix tool output format; bump kde --- agent/build_runtime.go | 11 ++++++++++- kde | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/agent/build_runtime.go b/agent/build_runtime.go index eb72726..676845a 100644 --- a/agent/build_runtime.go +++ b/agent/build_runtime.go @@ -89,7 +89,16 @@ func BuildRuntime(cfg *AgentConfig, srv toolsrv.Runner, cwd string, env []string classify = pc.IsParallelRead } - var outputFormat func(string) string + // Capture output formats from the same tool listing used to build the + // backend tool definitions. Remote runners expose ToolInfo through + // ListTools, but do not necessarily implement OutputFormatClassifier. + outputFormats := make(map[string]string, len(allToolInfos)) + for _, ti := range allToolInfos { + outputFormats[ti.Name] = ti.OutputFormat + } + outputFormat := func(name string) string { + return outputFormats[name] + } if oc, ok := srv.(toolsrv.OutputFormatClassifier); ok { outputFormat = oc.OutputFormat } diff --git a/kde b/kde index 6e7245d..b50a2e0 160000 --- a/kde +++ b/kde @@ -1 +1 @@ -Subproject commit 6e7245dd993f7db2f3a0dd51fb77391f9fa72664 +Subproject commit b50a2e01b259bbed6a21b34d1ccca59b2c45e33d