+ {(instance) => {
+ const isActiveInstance = () => activeInstanceId() === instance.id
+ return (
+
+ handleCloseSession(instance.id, sessionId)}
+ onNewSession={() => handleNewSession(instance.id)}
+ handleSidebarAgentChange={(sessionId, agent) => handleSidebarAgentChange(instance.id, sessionId, agent)}
+ handleSidebarModelChange={(sessionId, model) => handleSidebarModelChange(instance.id, sessionId, model)}
+ onExecuteCommand={executeCommand}
+ />
+
+ )
+ }}
+
-