Skip to content

fix(desktop): ignore resume lag false positives#6138

Open
GTC2080 wants to merge 1 commit into
esengine:main-v2from
GTC2080:GTC/fix-performance-resume-lag
Open

fix(desktop): ignore resume lag false positives#6138
GTC2080 wants to merge 1 commit into
esengine:main-v2from
GTC2080:GTC/fix-performance-resume-lag

Conversation

@GTC2080

@GTC2080 GTC2080 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reset desktop performance-pressure sampling on window focus and blur, not just visibility changes.
  • Require the event-loop lag monitor to pass both visibility-resume and focus-resume grace windows before prompting.
  • Add regression coverage for lag samples immediately after focus resumes.
  • Fixes [Bug]: Reasonix 检测到响应卡顿 #5909.

Verification

  • corepack pnpm -C desktop/frontend --ignore-workspace exec tsx src/__tests__/crash-reporting.test.ts
  • corepack pnpm -C desktop/frontend --ignore-workspace run test:typecheck
  • git diff --check

Cache impact

Cache-impact: none - frontend performance-pressure prompt gating only; no provider-visible prompt, tool schema, MCP registration, or provider request serialization changes.
Cache-guard: corepack pnpm -C desktop/frontend --ignore-workspace exec tsx src/__tests__/crash-reporting.test.ts; corepack pnpm -C desktop/frontend --ignore-workspace run test:typecheck; git diff --check
System-prompt-review: N/A

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jul 7, 2026
@GTC2080 GTC2080 marked this pull request as ready for review July 7, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Reasonix 检测到响应卡顿

1 participant