fix tool output format; bump kde

This commit is contained in:
Ollie Agent 2026-08-02 23:48:15 +02:00
parent b2fe5f1b4e
commit 53ecbe249b
2 changed files with 11 additions and 2 deletions

View File

@ -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
}

2
kde

@ -1 +1 @@
Subproject commit 6e7245dd993f7db2f3a0dd51fb77391f9fa72664
Subproject commit b50a2e01b259bbed6a21b34d1ccca59b2c45e33d