feat: 恢复「开启Agent自定义气泡主题」全局开关 - #185
Closed
Lutra23 wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
本 PR 报的 |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
0137f925移除了全局设置中的「开启Agent自定义气泡主题」开关,同时删掉了渲染与注入侧的条件判断,该功能变为强制开启且用户没有任何关闭入口。实际上社区用户对此有真实的关闭需求(例如不需要 Agent 输出 DIV 气泡、不希望 system prompt 被注入{{VarDivRender}}规范、或希望停用气泡内脚本/动画执行)。本 PR 将该开关连同其完整控制链路按
0137f925之前的原样恢复,用户可在 设置 → 聊天字体与气泡 小节自行开关。改动内容
main.htmlmodules/utils/appSettingsManager.jsenableAgentBubbleTheme: falsemodules/global-settings-manager.jsmodules/renderer/mainChatSettingsPresentationOwner.jsmodules/messageRenderer.jsmodules/renderer/streamManager.jsprocessAnimationsInContent)modules/ipc/chatHandlers.js{{VarDivRender}}输出规范Groupmodules/groupchat.js默认值与删除前一致(
false);已有 settings.json 中存留enableAgentBubbleTheme键的老用户升级后直接按原值生效。验证
node --check通过;备注
保存全局设置时还有一个与本 PR 无关的
applyUserMessageLayoutState is not defined报错,见 #184,两个 PR 相互独立、可分别合并。