Skip to content

refactor: Agent 设置页重构为 Tabs + Skills Master-Detail 布局#367

Merged
ErlichLiu merged 2 commits intomainfrom
feature/agent-settings-tabs
May 3, 2026
Merged

refactor: Agent 设置页重构为 Tabs + Skills Master-Detail 布局#367
ErlichLiu merged 2 commits intomainfrom
feature/agent-settings-tabs

Conversation

@ErlichLiu
Copy link
Copy Markdown
Owner

@ErlichLiu ErlichLiu commented May 3, 2026

Summary

  • 移除 AgentAdvancedSettings(思考模式、推理深度、预算、轮次设置)
  • Agent 配置页改为三 Tab 布局:Skills | MCP | 内置工具
  • Skills Tab 升级为左列列表 + 右列详情的 Master-Detail 视图,支持元数据内联编辑和 SKILL.md Markdown 渲染
  • 新增 readSkillContent / writeSkillContent IPC API
  • AI 配置按钮移至顶部 action 区域并添加 Tooltip 说明
  • 修复 AssistantTurnRenderer 中 early-return 违反 React hooks 规则的问题

Test plan

  • 三个 Tab 正常切换,状态持久
  • Skills Tab:列表展示、选中高亮、详情加载、元数据编辑保存、Markdown 渲染
  • Skills Tab:从其他工作区导入、删除、启禁用、打开目录
  • MCP Tab:列表/添加/编辑/删除/启禁用,表单返回后停留在 MCP Tab
  • 内置工具 Tab:工具状态展示、"配置"跳转到外层工具设置页
  • AI 配置按钮 Tooltip 正常显示,点击后跳转 Agent 对话
  • TypeScript 类型检查零错误

🤖 Generated with Claude Code

ErlichLiu and others added 2 commits May 3, 2026 15:59
- 移除 AgentAdvancedSettings(思考模式、推理深度、预算、轮次)
- 改为三 Tab 布局:Skills | MCP | 内置工具
- Skills Tab 升级为左列列表 + 右列详情的 Master-Detail 视图
- 支持 Skill 元数据内联编辑和 SKILL.md 全文 Markdown 渲染
- 新增 readSkillContent / writeSkillContent IPC API
- AI 配置按钮移至顶部 action 区域并添加 Tooltip 说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
将错误消息和空内容的 early-return 移到所有 useMemo hooks 之后,
避免条件渲染导致 hooks 调用顺序不一致。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ErlichLiu ErlichLiu merged commit c63e656 into main May 3, 2026
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