[Bug] zcode中长命令被自动截断,长文本段自动被整理成pasted-text-*文件且无法打开、编辑
Open
Nobody has claimed this yet.
priority: P2
status: 待评估
type: Bug
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
提交前确认 · Pre-submission checklist
- 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
- 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category
UI / 界面体验 · UI / UX
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
影响体验 · Major (功能可用但体验受损 / works but degraded)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
- 问题1 长命令被自动截断
在"Ask before change“模式下,当模型请求长命令时,会自动被截断,影响用户判断命令的正确性及影响 - 问题2 当复制长文本到user input中,长文本被自动整理成一个pasted-text文件,且这个文件无法再次被阅读、编辑,同时影响session title的生成
复现步骤 · Steps to reproduce
- 打开zcode
- 若要复现问题1,打开"Ask before change“模式,输出一个代码相关问题,当模型请求权限的命令过长时会被自动截断
- 若要复现问题2,复制一段比较长的分段文本,粘贴到对话栏中,长文本被自动整理成一个pasted-text文件,且这个文件无法再次被阅读、编辑;点击发送后你会发现session的标题为untitled session
期望表现 · Expected behavior
= 问题1: 截断改成滚动,让用户能看到完整代码
- 问题1: 整理成文件没问题,但是用户需要可以再次查看、编辑,同时session title的生成不应该受到影响;可以参考claude code的做法
实际表现 · Actual behavior
- 问题1 命令行被截断
- 问题2 长文本被变成一个pasted-text文件图标,无法点击查看、编辑,同时session title的生成失效
ZCode 版本 · ZCode version
v3.9.1
设备 / 系统 / 浏览器 · Device / OS / Browser
macOS Tahoe 26.5.2
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
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
Reproduce both cases in ZCode v3.9.1 on macOS, then trace the command-approval display and pasted-text/session-title entry points. Verify the long command remains fully viewable and that pasted text can be opened and edited without causing an untitled session.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100