wip: still working on agentic UI
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user