Skip to content

feat/acp#8

Merged
kooksee merged 76 commits intomainfrom
feat/acp
Mar 27, 2026
Merged

feat/acp#8
kooksee merged 76 commits intomainfrom
feat/acp

Conversation

@kooksee
Copy link
Copy Markdown
Contributor

@kooksee kooksee commented Mar 25, 2026

  • feat: 升级 Bubble Tea 和相关依赖,优化命令行交互体验
  • Add unit tests for agentline command handling and user interactions
  • feat: 增强 agentline 模式支持,新增命令元数据处理与路由机制
  • feat: 优化 agentline 命令处理,隐藏别名以减少候选噪音
  • feat: 增强命令补全功能,支持命令标志的建议与前缀匹配
  • feat: 增加对 Ctrl+C 退出的双重确认支持,优化 readline 错误处理逻辑及单元测试
  • feat: 增加对空输入时固定初始建议的支持,优化建议处理逻辑及单元测试
  • feat: 增加历史命令查看功能,支持通过 /history 命令查看输入历史及限制条数
  • feat: 更新命令提示信息,增加滚轮滚动指令;添加鼠标模式在输出聚焦时的测试
  • feat: 移除不再支持的 /ask 和 /plan 命令,更新命令提示信息,增强命令补全功能
  • feat: 添加 WebTTY 命令,支持通过 WebSocket 交互终端
  • feat: 添加文件上传功能,支持通过 POST 请求上传文件并处理目录遍历攻击
  • feat: add file upload and download functionality with directory support
  • feat(webtty): introduce minimal local Web terminal with file upload/download capabilities
  • chore: quick update feat/copilot at 2026-03-24 15:41:41
  • feat: 增强会话管理功能,支持会话摘要恢复与自动执行恢复命令
  • feat: 更新 agentline 命令元数据,简化命令标记方式并增强交互体验
  • feat: 添加 GitShell 模块,支持 Git 命令执行和分支检测功能
  • feat: 移除鼠标功能相关代码,简化交互体验并优化复制操作
  • feat: 添加续聊功能,支持恢复会话并优化命令行输入体验
  • Refactor and enhance agentline command handling and UI
  • chore: quick update feat/copilot at 2026-03-24 23:13:14
  • feat: 更新 agentline 相关命令,增强交互体验与可读性
  • feat: Implement ACP Client and Permission Management
  • feat: 增强 ACP 交互能力,新增权限审批命令与会话恢复功能
  • feat: 增强聊天模式支持,添加命令建议与错误提示功能
  • feat: 增强聊天命令的补全功能,添加命令标志建议与前缀处理
  • Refactor code structure for improved readability and maintainability
  • Implement feature X to enhance user experience and optimize performance
  • feat: 添加 .local 目录到 .gitignore 文件
  • feat: 增强 ACP 观测能力,新增事件时间线、统计摘要与导出功能
  • feat: 新增 Go 编码、发布前变更与测试开发约束文档
  • feat: add question handling commands and interaction protocol
  • refactor: remove agentline module and related metadata from commands
  • feat: 精简仓库结构,将 agentline 和 copilot-demo 迁移至独立项目,更新文档以反映变更
  • feat: 增强 Richline 交互终端体验,新增状态提示与焦点切换功能
  • feat: 更新 Richline 交互终端样式,增强输入输出区域的可视化提示与焦点状态

kooksee and others added 30 commits March 14, 2026 21:26
- Implement tests for slash command completions and input handling.
- Validate mouse interactions for scrolling and selecting history.
- Test command execution for /ask, /plan, and /run commands.
- Ensure proper state management during command execution and history navigation.
- Verify rendering behavior for output lines with folded details.
- Check initial state for suggestions on empty input.
- 在 Command 结构中添加 Metadata 字段,用于存储命令的扩展注解。
- 实现命令调度钩子,支持将特定命令自动重定向到 agentline。
- 增加 agentline 命令的初始化参数支持,允许直接执行命令。
- 更新相关测试用例,确保新功能的正确性。
- 添加示例文档,展示如何使用新功能。
@kooksee kooksee marked this pull request as ready for review March 25, 2026 23:58
kooksee and others added 8 commits March 26, 2026 08:11
- Introduced JavaScript/TypeScript and Shell PR review supplementary guidelines to enhance code review processes.
- Established a general PR review guideline document to standardize feedback and comment resolution in pull requests.
- Updated PR review round prompt to support automatic identification of PRs and execution of full review rounds.
- Created a documentation catalog for easier navigation of project documents.
- Added a detailed code review guide in Chinese, outlining best practices and issue classification for effective code reviews.
- Implemented a unified PR comment template to streamline issue reporting in GitHub PRs.
- Developed a PR review rubric to guide Copilot in conducting structured, round-based reviews.
Copy link
Copy Markdown
Contributor Author

@kooksee kooksee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充一条新增兼容性问题(已按行级定位并去重后发布)。

Copy link
Copy Markdown
Contributor Author

@kooksee kooksee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Round 0-4 审查结论(自动全量)

已完成 Round 0 -> Round 4 审查。当前 PR 规模较大(77 files, +15675/-391),核心风险仍集中在命令分发前的环境预加载兼容性;此外发现一项测试覆盖缺口会降低后续回归保护能力。

主要风险

  1. 已存在未解决 Blocker:Invocation.Run 在命令定位前无条件预解析 --env/-e,可能劫持业务子命令本地 -e 语义(见现有讨论线程)。
  2. 测试覆盖未覆盖该兼容性边界,回归风险仍高。

Review Conclusion

  • Statistics: Blocker=1(沿用现有未决), Major=1(本次新增), Minor=0, Nit=0
  • Risks: 子命令 flag 语义兼容性回归,可能导致 CLI 行为在发布后出现非预期变更。
  • Verdict: ⚠️ 需要修改

Copy link
Copy Markdown
Contributor Author

@kooksee kooksee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复审结论(针对最新提交 37da31adca4b8124c7ba1d86184c1f584caa5fe8):

  1. 本次新增提交仅涉及审查规范与文档模板(5 files, +13/-31),未触及 command.go / env_preload.go 等运行时逻辑。
  2. 复审未发现新的行级问题,因此未新增行级评论。
  3. 仍需关注既有兼容性与补测问题(复用已有评论链接):
    • command.go 兼容性风险(命令定位前预解析 env):#8 (comment)
    • command_test.go 补测建议(子命令本地 -e 不被劫持):#8 (comment)

建议在上述两项闭环后再考虑合入。

Copy link
Copy Markdown
Contributor Author

@kooksee kooksee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充“整个 PR”模块深审结果:

本轮新增覆盖模块:cmds/webttycmdinternal/webuiinternal/mcpservercmds/readlinecmdcmds/richlinecmdinternal/gitshell

新增发现 2 条安全问题(均为本地服务被跨站页面驱动的风险):

  1. webtty 未对 /ws 与文件管理接口做来源校验或最小鉴权;
  2. webui 两个 WebSocket 入口同样未做来源校验或会话令牌校验。

其余模块本轮未发现可稳定复现的新阻断问题。

@kooksee kooksee merged commit 7206162 into main Mar 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant