Skip to content

[Bug]: 写入文件编码错误 #4432

@ldfmagic

Description

@ldfmagic

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.17.0

What happened?

使用对skill的文件进行优化的过程中涉及到更新文件不知道会在哪一轮写入错误的编码导致不可逆的破坏,原因应该是 在Windows的终端使用非UTF-8的编码。

Steps to reproduce

默认写入文件强制使用UTF-8的编码

OS / platform

Windows11

Relevant logs or output

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentCore agent loop (internal/agent, internal/control)bugSomething isn't workingdata-lossData loss (sessions, config, history)skillsSkill system (internal/skill, internal/tool)v2Go rewrite (1.x) — main-v2 branch, active developmentwindowsWindows-specific

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions