diff --git a/packages/accounting_automation/src/mcp-ui.ts b/packages/accounting_automation/src/mcp-ui.ts index c303f6d..3ebf647 100644 --- a/packages/accounting_automation/src/mcp-ui.ts +++ b/packages/accounting_automation/src/mcp-ui.ts @@ -159,7 +159,7 @@ document.addEventListener("click",function(e){ if(t.id==="done")run(selIds(),"done"); if(t.id==="deleg")run(selIds(),"handoff"); if(t.id==="snz")run(selIds(),"snooze"); - if(t.id==="ask")req("ui/message",{role:"user",content:{type:"text",text:selText()+" Расскажи подробнее про эти задачи и предложи, что с ними сделать."}}).catch(function(e){status("Не удалось отправить в чат: "+((e&&e.message)||e));}); + if(t.id==="ask")req("ui/message",{role:"user",content:[{type:"text",text:selText()+" Расскажи подробнее про эти задачи и предложи, что с ними сделать."}]}).catch(function(e){status("Не удалось отправить в чат: "+((e&&e.message)||e));}); }); document.addEventListener("change",function(e){var t=e.target;if(t&&t.dataset&&t.dataset.sel){sel[t.dataset.sel]=t.checked;updBtns();pushCtx();}}); window.addEventListener("message",function(e){