Skip to content

feat: add remark field to AI agent list#12269

Open
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:feat/agent-remark-field-12191
Open

feat: add remark field to AI agent list#12269
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:feat/agent-remark-field-12191

Conversation

@jakub961241
Copy link

Summary

Closes #12191 - Add a remark/note field to the AI agent list so users can annotate what each agent is for.

Changes

Full stack implementation:

Layer File Change
Model agent/app/model/agent.go Add Remark field
DTO agent/app/dto/agents.go Add AgentRemarkUpdateReq, Remark to AgentItem
Service agent/app/service/agents.go Add UpdateRemark() method
Utils agent/app/service/agents_utils.go Map Remark in buildAgentItem()
API agent/app/api/v2/agents.go Add UpdateAgentRemark handler
Router agent/router/ro_ai.go Add POST /ai/agents/remark/update
Migration agent/init/migration/ Auto-migrate for new column
Frontend frontend/src/views/ai/agents/agent/index.vue Inline editable remark column
Frontend API frontend/src/api/modules/ai.ts Add updateAgentRemark()
i18n en.ts, zh.ts Add commons.table.remark key

The remark column uses an inline el-input that auto-saves on change.

feat: Add remark/note field to AI agent list for easier identification (#12191)

Add a remark/note field to AI agents so users can annotate what each
agent is used for. This helps when managing many agents.

Changes:
- Model: add Remark field to Agent
- DTO: add AgentRemarkUpdateReq, Remark to AgentItem
- Service: add UpdateRemark method
- API: POST /ai/agents/remark/update endpoint
- Frontend: inline editable remark column in agent table
- Migration: auto-migrate to add remark column
- i18n: commons.table.remark key (en + zh)

Closes 1Panel-dev#12191
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 22, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zhengkunwang223 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Should the agent list support a remark field?

1 participant