fix: quiet noisy store poll and skill-resolver info logs

Raise checkForChanges slow-poll warn threshold from 100ms to 750ms so
warnings only fire when cycles approach the 1s poll interval, and route
skill-resolver info diagnostics through log() instead of warn().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-05 14:16:30 -07:00
parent 7d569670c1
commit d253e01b3f
3 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Reduce log noise: bump `checkForChanges` slow-poll warn threshold from 100ms to 750ms (the 1s poll interval + multiple SQLite queries routinely exceed 100ms without indicating a real problem), and route skill-resolver `info` diagnostics (e.g. "Requested skill: …") through `log()` instead of `warn()` so informational messages no longer surface as warnings.

View File

@@ -4580,10 +4580,10 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
}
const elapsed = Date.now() - startTime;
if (elapsed > 100) {
if (elapsed > 750) {
storeLog.warn("checkForChanges took longer than expected", {
elapsedMs: elapsed,
thresholdMs: 100,
thresholdMs: 750,
});
}
} catch (err) {

View File

@@ -471,7 +471,10 @@ export function createSkillsOverrideFromSelection(
if (newDiagnostics.length > 0) {
const _purpose = sessionPurpose ? `[${sessionPurpose}]` : "skills";
for (const diag of newDiagnostics) {
piLog.warn(`[skills] ${diag.type}: ${diag.message}`);
const msg = `[skills] ${diag.type}: ${diag.message}`;
if (diag.type === "error") piLog.error(msg);
else if (diag.type === "warning") piLog.warn(msg);
else piLog.log(msg);
}
}