模型修改json的时候漏输出末尾结束逗号以及修改的时候出现换行符解析的问题
Open
Nobody has claimed this yet.
status/need-information
type/bug
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 3.1k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 702
Description
What happened?
问题1:目前qwen-code在修改json的时候如果只是修改中间的某行json内容则有概率在修改后不会自动添加换行逗号。
问题2:输出json修改内容的时候有时候会将换行符当成实际内容插入到json内。
What did you expect to happen?
正常修改json内容
Client information
$ qwen /about
# paste output here
Login information
No response
Anything else we need to know?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue through the qwen CLI while editing a JSON file, using the reported cases of a middle-line change and embedded newline characters. Trace the TypeScript path responsible for applying and emitting JSON edits. Done means both cases preserve valid JSON formatting and content, with regression coverage added where the relevant tests are found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100