Skip to content

[BUG] - write file tool uses \n instead of newlines #99

@cmrigney

Description

@cmrigney

Describe the bug

Sometimes the file writing tool writes \n instead of actual newlines.

Version affected

cagent version v1.0.2
Build time: 2025-09-03T15:46:35Z
Commit: a2c9336

How To Reproduce

Detailed steps to reproduce the behavior:

  1. Run the golang_developer.yaml agent
  2. Tell it to write some new documentation
  3. It might include \ns

Expectation

All the \ns should be newlines.

Screenshots

Image

OS and Terminal type

Mac OS
Warp

Additional context

Any other info you consider useful can be included here

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions