mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +08:00
fix(AgentSessionInputbar): add agent model to dependency array
Ensure the component re-renders when agent model changes to maintain consistency with session data
This commit is contained in:
parent
0be2177937
commit
4b1f7db506
@ -210,12 +210,12 @@ const AgentSessionInputbar: FC<Props> = ({ agentId, sessionId }) => {
|
|||||||
logger.warn('Failed to send message:', error as Error)
|
logger.warn('Failed to send message:', error as Error)
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
|
agent?.model,
|
||||||
agentId,
|
agentId,
|
||||||
dispatch,
|
dispatch,
|
||||||
sendDisabled,
|
sendDisabled,
|
||||||
session?.agent_id,
|
session?.agent_id,
|
||||||
session?.instructions,
|
session?.instructions,
|
||||||
session?.model,
|
|
||||||
session?.name,
|
session?.name,
|
||||||
sessionId,
|
sessionId,
|
||||||
sessionTopicId,
|
sessionTopicId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user