From cba424c86ac4f31214d70c73174a29dda001e858 Mon Sep 17 00:00:00 2001 From: Yuri Yaryshev Date: Wed, 18 Nov 2026 20:22:27 +0300 Subject: [PATCH] =?UTF-8?q?MCP-=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B0:?= =?UTF-8?q?=20ui/message=20=D1=81=20content=20=D0=BC=D0=B0=D1=81=D1=81?= =?UTF-8?q?=D0=B8=D0=B2=D0=BE=D0=BC=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=BE=D0=B2?= =?UTF-8?q?=20(=D1=85=D0=BE=D1=81=D1=82=20=D0=BE=D1=82=D0=BA=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD=D1=8F=D0=BB=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/accounting_automation/src/mcp-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){