You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "frontends/desktop_bridge.py", line 1144, in _patch_chat_for_images
backend.ask = patched_ask
File "llmcore.py", line 1018, in __setattr__
raise AttributeError(f"MixinSession.{name} is node-specific and read-only")
AttributeError: MixinSession.ask is node-specific and read-only
Activity
wangyanjie332 commentedon Nov 24, 2026
补充:渠道消息带图同样会炸,不只是桌面端粘贴
在 main @
a0521ab(2026-11-23)上仍可复现,影响面比标题更大:任何带图消息都会触发,不只是桌面端粘贴。线上表现(GA-Harness 0.0.76 + 飞书渠道)
status=error, error="Worker failed (AttributeError)",同一会话去掉图片重发即成功;前端只能看到
Worker failed (AttributeError),堆栈被吞,定位成本很高。纯 GA 复现(不经过任何前端)
另一个隐藏爆点:补丁装不上,也卸不掉
desktop_bridge.py:1122-1126:对
MixinSession这类__setattr__/__delattr__都拒绝的 facade,异常会推迟到调用期才炸,堆栈更难读。建议
put_task(..., images=...),首轮构造多模态 content,不再 monkey-patchask。顺带解决NativeToolClient.chat过滤空白文本块时把图片块一起丢掉的问题。该 PR 目前mergeable=false,需要 rebase。llmcore.MixinSession允许覆盖ask(纳入 facade 可写集合,或__setattr__放行 callable 覆盖);object.__setattr__/object.__delattr__(backend, "ask")绕开只读守卫。MixinSessionbackend + 单图注入,断言包装后可正常调用、调用后恢复原样。