Skip to content

♻️ Reactoring agent is new diplay logic#2384

Merged
WMC001 merged 3 commits intodevelopfrom
xyq/bugfix_agent_new_display
Feb 2, 2026
Merged

♻️ Reactoring agent is new diplay logic#2384
WMC001 merged 3 commits intodevelopfrom
xyq/bugfix_agent_new_display

Conversation

@xuyaqist
Copy link
Copy Markdown
Contributor

@xuyaqist xuyaqist commented Jan 31, 2026

修改内容:

  1. chat页面中使用的Agent类型统一修改为定义在agentConfig中的Agent类型。
  2. 在有需要的时候才获取AgentList,而非在chatInterface获取数据之后,层层往下传递,直至某个组件使用它
    chatInterface.tsx (定义/加载)
    ↓ prop: cachedAgents
    ChatStreamMain.tsx (传递)
    ↓ prop: cachedAgents (x2)
    ChatInput.tsx (接收)
    ↓ prop: agents
    ChatAgentSelector.tsx (实际使用)
  3. 修改agent is_new标识的展示和消失逻辑。当用户选中agent成功后,调用clearAgentNewMark接口处理is_new字段数据,并且令agentList数据失效,当重新拉取数据之后,会自然渲染成没有is_new的样式的。

@xuyaqist xuyaqist changed the title reactoring agent is new diplay logic ♻️Reactoring agent is new diplay logic Jan 31, 2026
@xuyaqist xuyaqist changed the title ♻️Reactoring agent is new diplay logic ♻️ Reactoring agent is new diplay logic Jan 31, 2026
@WMC001 WMC001 merged commit b84e702 into develop Feb 2, 2026
7 checks passed
@xuyaqist xuyaqist deleted the xyq/bugfix_agent_new_display branch February 24, 2026 01:45
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.

2 participants