feat: Agent handoff UI

This commit is contained in:
Danny Avila 2025-09-04 03:21:20 -04:00
parent 6e0e47d5dd
commit e6baecb985
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
8 changed files with 118 additions and 9 deletions

View file

@ -11,8 +11,8 @@ interface AgentUpdateProps {
const AgentUpdate: React.FC<AgentUpdateProps> = ({ currentAgentId }) => {
const localize = useLocalize();
const agentsMap = useAgentsMapContext() || {};
const currentAgent = useMemo(() => agentsMap[currentAgentId], [agentsMap, currentAgentId]);
const agentsMap = useAgentsMapContext();
const currentAgent = useMemo(() => agentsMap?.[currentAgentId], [agentsMap, currentAgentId]);
if (!currentAgentId) {
return null;
}