Skip to content

WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。

fix: keep workspace picker tooltip hit area transparent

[email protected]d34d4d11e914
diff --git a/scripts/daemon.js b/scripts/daemon.js
index 31004e0..7769c8e 100644
--- a/scripts/daemon.js
+++ b/scripts/daemon.js
@@ -535,8 +535,8 @@ const primaryAccountStore = createPrimaryAccountStore(DATA_DIR, (uid) => fs.exis
// 1.2.65:兼容空会话同步、自定义模型和重定向备份目录,工作目录恢复退避重试。
// 1.2.66:刷新凭据按原信封加密保存,同账号刷新去重,过期账号保留手动切换。
// 1.2.67:Windows 重启 GUI 客户端时不再请求隐藏主窗口,与冷启动保持一致。
-const DAEMON_VERSION = '1.2.76';
-const DAEMON_BUILD_ID = 'release-1.2.76-fork-runtime-identity';
+const DAEMON_VERSION = '1.2.77';
+const DAEMON_BUILD_ID = 'release-1.2.77-workspace-picker-hit-area';
const usageReporter = createUsageReporter({ profile: PROFILE.id, version: DAEMON_VERSION });
configureAutomationRuntime({version: DAEMON_VERSION, profileId: PROFILE.id, platform: process.platform});
const automationDiscovery = createAutomationDiscovery({
diff --git a/scripts/theme-patches.js b/scripts/theme-patches.js
index a189e6e..312fda8 100644
--- a/scripts/theme-patches.js
+++ b/scripts/theme-patches.js
@@ -521,6 +521,11 @@ module.exports = [
desc: '毛玻璃主题下新版 teams 输入工具条的语音、上下文用量和增强按钮触发器去掉背景色,避免右侧出现多余色块。',
css: ':is(html.cb-dark,html[data-theme="dark"]) body[data-vscode-theme-name] .teams-container .cr-input-toolbar__right>span:is(.cr-voice-trigger-tooltip,.cr-context-usage-tooltip-trigger,.cr-enhance-button-tooltip),:is(html.cb-dark,html[data-theme="dark"]) body[data-vscode-theme-name] .teams-container .cr-input-toolbar__right>span.cr-voice-trigger-wrap>span.cr-voice-trigger-tooltip,body[data-vscode-theme-name="IDE Night"] .teams-container .cr-input-toolbar__right>span:is(.cr-voice-trigger-tooltip,.cr-context-usage-tooltip-trigger,.cr-enhance-button-tooltip),body[data-vscode-theme-name="IDE Night"] .teams-container .cr-input-toolbar__right>span.cr-voice-trigger-wrap>span.cr-voice-trigger-tooltip{background:transparent !important;background-color:transparent !important;box-shadow:none !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}',
},
+ {
+ id: 'patch-108',
+ desc: '工作空间列表的 reason-hit 是覆盖整行的透明提示触发区;通用 dropdown 背景和悬浮规则会将它涂黑并遮住名称。仅清除该触发区的底色、边框色和阴影,保留原生提示、点击、键盘及列表状态。',
+ css: 'html[data-wbs-theme-id] body[data-vscode-theme-name] .wb-popover.wb-dropdown.cr-workspace-picker-dropdown .wb-dropdown__item>.wb-dropdown__item-reason-hit{background:transparent !important;border-color:transparent !important;box-shadow:none !important;}',
+ },
/* 原 patch-82(AI 端快捷短语弹层 z-index 抬升)已移入 inject.js 常驻样式:
theme-patches 仅在非默认主题时注入,默认浅色主题下会失效;层级修复不依赖主题,随注入脚本常驻更可靠。 */
];
diff --git a/test/theme-patches.test.js b/test/theme-patches.test.js
index 438e470..d971db1 100644
--- a/test/theme-patches.test.js
+++ b/test/theme-patches.test.js
@@ -122,3 +122,17 @@ test('generic dark popup text repair excludes the WorkDaddy status popover', ()
assert.match(patch.css, /color:var\(--wb-color-text-primary\) !important/,
'official tooltip/dropdown text still needs the dark-theme repair');
});
+
+test('workspace picker reason hit area stays transparent without disabling its interactions', () => {
+ const patch = patches.find(item => item.id === 'patch-108');
+ assert.ok(patch, 'workspace names must not be covered by the absolute reason-tooltip hit area');
+ assert.equal(patch.themeId, undefined, 'all custom themes use the generic dropdown patches');
+ assert.match(patch.css, /html\[data-wbs-theme-id\] body\[data-vscode-theme-name\] \.wb-popover\.wb-dropdown\.cr-workspace-picker-dropdown \.wb-dropdown__item>\.wb-dropdown__item-reason-hit\{/);
+ assert.match(patch.css, /background:transparent !important/);
+ assert.match(patch.css, /box-shadow:none !important/);
+ assert.match(patch.css, /border-color:transparent !important/);
+ assert.doesNotMatch(patch.css, /pointer-events|display:|visibility:|opacity:|position:|z-index:|color:var/,
+ 'fix the covering surface, not native hit testing, positioning, or text colors');
+ assert.ok(patches.indexOf(patch) > patches.findIndex(item => item.id === 'patch-44'),
+ 'keep the hit-area repair after the generic popup and hover patches');
+});