dsh-long-message-fold:把 DSH Web 裏的超長用戶消息摺疊起來

constraint21 維護的客戶端插件 dsh-long-message-fold,遮罩 shipped 的 PlainUserText 渲染器,把超長 user 消息正文摺疊成 360px 預覽高度、底部 mask-image 漸隱,並給出「展開全文 · N 行 / 收起」切換;短消息佈局不變。摺疊與否靠 useLayoutEffect + ResizeObserver 實測溢出(內聯態取 getBoundingClientRect().height,塊態取 scrollHeight),避免誤傷 QueueDock 預覽與 submission echo 的單行 nowrap 場景。裝上即生效,無開關;參數爲 client.js 頂部的 MAX_HEIGHT(360)、FADE_HEIGHT(48)、REMEMBER_LIMIT(400)、OBSERVE_MIN_CHARS(120)。安裝走 DSH Plugin Manager 的 install_bundle,target 爲 github:constraint21/dsh-long-message-fold,或在 git clone 後指向本地絕對路徑,也可用 plugin_manager action: remove_bundle 卸載。依賴 slot conversation.user.text.node 與 Client 包 @deepseek-ai/dsh-client-ui-conversation,僅在 web 平臺註冊,MIT 許可,包名 @local/dsh-long-message-fold,private: true。

閱讀全文