wip: still working on agentic UI

This commit is contained in:
2026-02-25 23:14:43 +01:00
parent 7808ce74ac
commit 021cddefa3
7 changed files with 362 additions and 67 deletions

View File

@@ -82,10 +82,10 @@ export function dispatchAssistantAction(
return { handled: true };
}
if (input.action === 'switchView') {
if (input.action === 'switchView' || input.action === 'setActiveView') {
const parsed = switchViewPayloadSchema.safeParse(payload);
if (!parsed.success) {
return invalidPayloadError('switchView');
return invalidPayloadError(input.action);
}
const { view } = parsed.data;
@@ -120,6 +120,11 @@ export function dispatchAssistantAction(
return { handled: true };
}
if (input.action === 'openPanel') {
dependencies.togglePanel();
return { handled: true };
}
if (input.action === 'toggleAssistantSidebar') {
dependencies.toggleAssistantSidebar();
return { handled: true };