Skip to content

Commit f80e944

Browse files
committed
fix(window-recognition): MEDIUM_CONFIDENCE_MIN 修正为 70(设计规格)
1 parent 03eef25 commit f80e944

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎client/electron/windowRules.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('scoreWindow — 系统信号', () => {
6161
describe('scoreWindow — 置信度分级', () => {
6262
it('score>=130 为 high,>=70 为 medium,否则 low', () => {
6363
expect(scoreWindow({ title: '腾讯会议 - 网课课堂', processName: 'wemeet.exe', isForeground: true }).confidence).toBe('high');
64-
expect(scoreWindow({ title: '随便看看', processName: 'chrome.exe' }).confidence).toBe('medium');
64+
expect(scoreWindow({ title: '随便看看', processName: 'chrome.exe' }).confidence).toBe('low');
6565
expect(scoreWindow({ title: '随便看看' }).confidence).toBe('low');
6666
// 边界常量存在且顺序正确
6767
expect(HIGH_CONFIDENCE_MIN).toBeGreaterThan(MEDIUM_CONFIDENCE_MIN);

‎client/electron/windowRules.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface WindowScoreResult {
5050

5151
/** 置信度分级阈值 */
5252
export const HIGH_CONFIDENCE_MIN = 130;
53-
export const MEDIUM_CONFIDENCE_MIN = 25;
53+
export const MEDIUM_CONFIDENCE_MIN = 70;
5454

5555
/** 标题高优先级词(原 windowScorer 迁移,+40/词可叠加) */
5656
const HIGH_PRIORITY_WORDS = [

0 commit comments

Comments
 (0)