feat: 添加 Agent 任务列表面板#432
Merged
Merged
Conversation
- 新增 AgentTaskPanel 组件,显示所有 Agent 会话的任务状态 - 支持实时追踪任务状态(运行中、等待中、空闲、已完成) - 任务描述从用户输入自动提取并持久化到 localStorage - 点击任务可快速导航到对应会话 - 工具栏按钮显示活跃任务数量徽章
Contributor
|
I'll analyze this and get back to you. |
Contributor
|
I'll analyze this and get back to you. |
Contributor
|
I'll analyze this and get back to you. |
5c144ef to
a69e1ea
Compare
Contributor
|
I'll analyze this and get back to you. |
- AgentTaskPanel 改为浮动窗口,支持拖拽移动和八方向调整大小 - 面板位置与尺寸持久化到 localStorage,重启后恢复 - 新增重置按钮恢复默认位置和大小 - 优化 session 匹配逻辑,支持通过 cwd 路径匹配 - 提取 loadJSON/saveJSON 通用 localStorage 工具函数
Contributor
|
I'll analyze this and get back to you. |
Contributor
Author
目的是为了方便多个项目,同时开启了agent执行任务,可以方便的看到各个agent执行的状态,比如显示waiting状态时,说明对应的任务需要向用户澄清,需要手动介入。 |
- 将 Agent Task Panel 从内嵌面板重构为独立 BrowserWindow - 支持窗口拖拽、调整大小及位置持久化 - 修复独立窗口在 Windows 下缺少关闭按钮的问题 - 修复独立窗口与主窗口状态同步问题 - 修复 AskUserQuestion 回复后任务状态无法恢复为 running - 添加 release workflow 支持自动构建与发布 - 修复 CI 构建兼容性问题(mac/Windows runner、shell)
Contributor
|
I'll analyze this and get back to you. |
- 回滚 .github/workflows/build.yml 至原始版本 - 删除 .github/workflows/release.yml - 移除 handleNavigateToTask useCallback 中不必要的 t 依赖
Contributor
|
I'll analyze this and get back to you. |
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.

Summary
新增文件
src/shared/types/agentTask.ts— AgentTask 类型定义src/renderer/stores/agentTasks.ts— Zustand store,管理任务状态、描述缓存、多 store 同步src/renderer/components/agent-tasks/— UI 组件(Panel、List、Item、StatusBadge)修改文件
ClaudeIdeBridge.ts— 新增 UserPromptSubmit IPC 通知preload/index.ts— 新增 onUserPrompt 监听器App.tsx— 集成 AgentTaskPanel + initAgentTasksListenerMainContent.tsx— 新增任务列表按钮 + 活跃计数徽章AgentPanel.tsx— 关闭会话时清理任务数据ipc.ts/i18n.ts/types/index.ts— 新增 IPC 通道、翻译、类型导出Test plan