feat(quick-run): 添加快速运行配置#296
Conversation
|
@lizhian 辛苦提供一批完整的截图~ |
|
@lizhian 运行应该和会话是无关的~, 他可能气很多的会话,但是只运行一个 run dev~ |
|
单个项目多会话处理过的时候,这个功能是非常有用的 |
|
是与会话绑定的,快速运行的目的就是快速地跨会话运行项目实例 同时处理ABC三个功能/bug,起了三个会话以及对应的工作树 A会话agent处理完成,点运行,快速启动项目实例,验证完成效果 此时B会话agent也处理完成,点运行,会把A会话起的终端进程(A会话项目实例)停止, 启动B会话的项目实例,验证B会话agent的完成效果 如此在agent并行开发的时候,快速跨会话启动项目实例,验证不同会话的完成情况 |
会话关闭了终端会自动关闭么? |
不会 |
849b83a to
c387547
Compare
Add project-level quick run commands that launch predefined shell terminals in the current project workspace. Implementation: - Persist quick run commands in project configuration and expose controls in project settings. - Add a quick-run hook that opens a shell and sends the configured command after terminal readiness. - Thread launch state through ProjectPage, RunningView, and ShellTerminalPanel using existing terminal styles.



变更内容
quick_run.script,可在项目设置里配置快速运行的 Shell 脚本。ShellTerminalPanel的复杂度。open_shell支持启动后写入初始输入,用于自动执行快速运行脚本。影响
配置了快速运行脚本的项目,会在活跃任务上展示“运行”按钮;未配置脚本时界面保持不变。快速运行命令在独立终端中执行,不改变任务本身的 agent 进程。
验证
pnpm lintpnpm testpnpm buildcargo check构建通过,Vite 仍输出现有的 chunk size warning。