MCP-таблица: ui/message с content массивом блоков (хост отклонял объект)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user