fix: escape ansi sequences (#1139)
This commit is contained in:
parent
76bd702992
commit
97d9c851e6
2 changed files with 3 additions and 2 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue