Repository navigation
feat(web): 引用终端日志并修正终端标题与状态显示 - #473
Merged
Merged
Conversation
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
手动运行命令后,选中终端日志并点击“引用选中日志”,片段会追加到当前聊天的已有草稿,保留真实来源执行和终端会话。可以连续收集片段,再返回输入框编辑;不会自动发送或授予 Agent 控制权限。
本 PR 已以 main 为底座,包含 #472 的文件引用和 #500 的终端复制粘贴依赖。此次还修正了反馈中的标题挤压:移除覆盖终端的通用抽屉样式,标题与工作区分成两行,长路径省略;收起面板与结束进程各保留一个明确入口。原始 RUNNING 改为“终端已连接”,通过提示说明它描述的是 shell 进程;执行状态分别显示连接不支持、同步中和读取失败。
真实引用操作 · 深色窄窗 · 验收记录
验证:5 个相关前端测试文件、148 项测试通过,类型检查和生产构建通过;Go 执行状态与 CSP 相关测试通过。Windows Edge 使用真实 Go DesktopBridge、SQLite、ConPTY 和 PowerShell 5.1,验证了日志引用保留原草稿、会话来源、480px 和 1280px 布局、明暗主题。仅 Wails JavaScript transport 由本地适配器替代;未宣称原生窗口或 macOS 实测。最新 main 的 CSP nonce 修复在这里正常工作,没有 securitypolicyviolation;旧 Linux 截图记录的 CSP 限制已被本轮 Windows 验证补充。
终端授权偏好与 shell 选择已另行提交 #504,以本 PR 为底座。本 PR 截图显示修改设置前的 5 分钟手动授权。
CI:
542dac6832fe43314f8726ff6b39e5645c0d2a6f的全部检查通过,包括 Full CI verification、Windows 和 macOS 桌面检查。Surface governance
Audit