mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 01:14:52 +01:00
fix: escape ansi sequences (#1139)
This commit is contained in:
@@ -378,7 +378,8 @@ func renderToolDetails(
|
||||
stdout := metadata["stdout"]
|
||||
if stdout != nil {
|
||||
command := toolInputMap["command"].(string)
|
||||
body = fmt.Sprintf("```console\n> %s\n%s```", command, stdout)
|
||||
out := ansi.Strip(fmt.Sprintf("%s", stdout))
|
||||
body = fmt.Sprintf("```console\n> %s\n%s```", command, out)
|
||||
body = util.ToMarkdown(body, width, backgroundColor)
|
||||
}
|
||||
case "webfetch":
|
||||
|
||||
Reference in New Issue
Block a user