yiyan-browser-agent 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/browser.js +2 -2
package/package.json
CHANGED
package/src/browser.js
CHANGED
|
@@ -300,7 +300,7 @@ class YiyanBrowser {
|
|
|
300
300
|
// 条件: dialogCardBottom 出现 + 连续两次内容稳定
|
|
301
301
|
let lastText = '';
|
|
302
302
|
let stableCount = 0;
|
|
303
|
-
let lastCheckTime = Date.now();
|
|
303
|
+
let lastCheckTime = Date.now(); // 在 Phase 2 开始时重新设置
|
|
304
304
|
let dotCount = 0;
|
|
305
305
|
let hasCompletionMarker = false;
|
|
306
306
|
|
|
@@ -586,7 +586,7 @@ class YiyanBrowser {
|
|
|
586
586
|
|
|
587
587
|
// 如果有响应内容但没有完成标记 → 还在生成
|
|
588
588
|
const answerArea = document.querySelector('[class*="answer"], [class*="response"], [class*="markdown"]');
|
|
589
|
-
if (answerArea && answerArea.innerText && answerArea.innerText.length >
|
|
589
|
+
if (answerArea && answerArea.innerText && answerArea.innerText.length > 5) {
|
|
590
590
|
if (!hasCompletionMarker) {
|
|
591
591
|
return true;
|
|
592
592
|
}
|