Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Adds inline edit capability to the persona selector dialog in chatui by reusing the PersonaForm component from persona management.

Changes

  • BaseFolderItemSelector: Added showEditButton prop and edit button UI (pencil icon) in item append slot. Emits edit event when clicked, hidden for default items.

  • PersonaSelector: Unified dialog state management (showPersonaDialog replaces showCreateDialog). Added editingPersona ref to track edit vs create mode. Handles edit event to open PersonaForm with selected persona.

  • types.ts: Extended FolderItemSelectorLabels with editButton label.

Implementation

Edit button appears next to each persona item (except default):

<v-btn v-if="showEditButton && !isDefaultItem(item)"
  icon="mdi-pencil"
  size="small"
  variant="text"
  @click.stop="handleEditItem(item)"
/>

PersonaForm automatically handles edit mode when editingPersona prop is provided, maintaining consistency with the persona management page UX.

Original prompt

在chatui选择人格的dialog加一个编辑某个人格的功能。复用人格管理页面的编辑对话框。


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@astrbot-doc-agent
Copy link

已为该 PR 生成文档更新 PR(待人工审核):
AstrBotDevs/AstrBot-docs#119


AI 改动摘要:

  • 更新了 zh/use/webui.md,新增在聊天界面(ChatUI)中通过对话框编辑人格的功能说明。
  • 同步更新了 en/use/webui.md,已完成 i18n 对应更新。
  • 聚焦于 WebUI 用户界面的交互变更,指导用户如何直接在聊天窗口调整人格配置。

Copilot AI and others added 2 commits February 2, 2026 17:55
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
…istency

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
astrbot-doc-agent bot pushed a commit to AstrBotDevs/AstrBot-docs that referenced this pull request Feb 2, 2026
@astrbot-doc-agent
Copy link

已为该 PR 生成文档更新 PR(待人工审核):
AstrBotDevs/AstrBot-docs#119


AI 改动摘要:

  • 更新 zh/use/webui.md,新增在 ChatUI 中通过对话框编辑人格的功能说明。
  • 同步更新 en/use/webui.md 英文文档,完成 i18n 对应更新。
  • 明确了用户可以直接在 Web 界面调整机器人人格设定的操作路径。

Copilot AI changed the title [WIP] Add edit personality dialog in chatui feat: add edit button to persona selector dialog Feb 2, 2026
Copilot AI requested a review from Soulter February 2, 2026 18:03
@astrbot-doc-agent
Copy link

本次运行未生成文档变更(文档仓库无改动)。

Docs repo: AstrBotDevs/AstrBot-docs


AI 改动摘要(未提交,仅供参考):

  • 更新 zh/use/webui.mden/use/webui.md,新增“对话” (Chat) 章节。
  • 介绍了 Web 聊天界面的基本功能,包括人格切换操作。
  • 重点说明了在人格选择弹窗中新增的编辑按钮(铅笔图标),支持直接跳转修改人格配置。
  • 已同步更新中文 (zh) 与英文 (en) 对应文档。

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 3, 2026
@Soulter Soulter marked this pull request as ready for review February 3, 2026 02:32
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 3, 2026
@Soulter Soulter merged commit de1304d into master Feb 3, 2026
5 checks passed
@Soulter Soulter deleted the copilot/add-edit-personality-dialog branch February 3, 2026 02:32
@dosubot
Copy link

dosubot bot commented Feb 3, 2026

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@dosubot dosubot bot added the feature:persona The bug / feature is about astrbot AI persona system (system prompt) label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:persona The bug / feature is about astrbot AI persona system (system prompt) lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants