Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.
This repository was archived by the owner on May 9, 2026. It is now read-only.

Strip ANSI from toolResults #1

Description

@ctjlewis

Same for examples.

{"role":"tool","content":[{"type":"tool-result","toolCallId":"toolu_01ADFAUfs5KStsS1zZQvtK76","toolName":"terminal","args":{"command":"bun test"},"result":"\u001b[0m\u001b[1mbun test \u001b[0m\u001b[2mv1.1.29 (6d43b366)\u001b[0m\n\u001b[0m\ntest/terminal.test.ts:\n\u001b[0m\u001b[33m»\u001b[2m\u001b[0m\u001b[2m terminal\u001b[0m\n\u001b[0m\ntest/fs.test.ts:\n\u001b[0m\u001b[32m✓\u001b[0m \u001b[0mServer API\u001b[2m >\u001b[0m\u001b[1m POST /edit - edit file lines\u001b[0m \u001b[0m\u001b[2m[\u001b[1m10.69ms\u001b[0m\u001b[2m]\u001b[0m\n\u001b[0m\u001b[32m✓\u001b[0m \u001b[0mServer API\u001b[2m >\u001b[0m\u001b[1m POST /read /write - write and read file\u001b[0m \u001b[0m\u001b[2m[2.05ms\u001b[0m\u001b[2m]\u001b[0m\n\u001b[0m\u001b[32m✓\u001b[0m \u001b[0mServer API\u001b[2m >\u001b[0m\u001b[1m...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions