feat: add fusion for multi-run sessions

Adds Run fusion for multi-run-like sessions
Combines sibling outputs into a new fusion session
Adds configurable Fusion prompts in Magic Prompts settings
This commit is contained in:
Bohdan Triapitsyn
2026-05-15 13:26:46 +03:00
parent 713bb6dfb1
commit 3e53d7e071
24 changed files with 548 additions and 13 deletions
@@ -22,6 +22,8 @@ export interface AgentSelectorProps {
disabled?: boolean;
/** ID for accessibility */
id?: string;
/** Portal menu to body instead of nearest dialog. */
portalToBody?: boolean;
}
/**
@@ -34,6 +36,7 @@ export const AgentSelector: React.FC<AgentSelectorProps> = ({
className,
disabled,
id,
portalToBody,
}) => {
const { t } = useI18n();
const getVisibleAgents = useConfigStore((state) => state.getVisibleAgents);
@@ -95,7 +98,7 @@ export const AgentSelector: React.FC<AgentSelectorProps> = ({
>
<SelectValue placeholder={t('multirun.agentSelector.placeholder')} />
</SelectTrigger>
<SelectContent fitContent>
<SelectContent fitContent portalToBody={portalToBody}>
{selectableAgents.length > 0 && (
<SelectGroup>
{selectableAgents.map((agent) => (