DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
fix(diagnostics): improve hang signal quality / 提升卡顿诊断信号质量
Summary
- make diagnostics 7d and 30d filters apply consistently to report groups, source facets, and overview counts while labeling occurrence totals as lifetime values
- derive the latest stable release only from independent installation pings, and add deduplicated affected-install counts to Agent Health
- reduce virtual-list measurement render churn, reset watchdog epochs after sleep, tier heap-pressure groups, and enrich throttled WebView2 reports with runtime and same-process occurrence context
Issues
Refs #6748
Follow-up to #6900.
Verification
cd desktop && go test ./...cd desktop && go test -race .cd desktop && go vet ./...cd desktop && GOOS=windows GOARCH=amd64 go test -c -o /tmp/reasonix-windows-compile/desktop.test.exe ./- frontend crash-reporting and line-number viewer tests: 164 passed
cd desktop/frontend && pnpm run typecheckcd workers/crash-report && npm test: 83 passedcd workers/crash-report && npm run typecheck./scripts/cache-guard.shgit diff --check origin/main-v2...HEAD
Compatibility
| Change | Old-data / old-version behavior | Conclusion |
|---|---|---|
| Diagnostic window filters | Existing group rows and schema are unchanged; groups are selected by the existing last_seen field |
Backward-safe |
| Latest release baseline | Read-only dashboard logic now ignores diagnostic-only and prerelease values | Backward-safe |
| WebView2 report context | Uses the existing report schema and adds bounded text context only | Backward-safe |
| Heap pressure tiers | Uses the already-optional fingerprintHint; old clients continue grouping as before |
Backward-safe |
| Virtualizer and watchdog state | No persisted or Wails JSON contract changes | Backward-safe |
Concurrency audit
- VERIFIED SAFE: WebView2 per-process counters and cooldown timestamps share one mutex.
- VERIFIED SAFE: Windows Runtime version lookup is guarded by
sync.Once. - VERIFIED SAFE: watchdog heartbeat state continues to use the existing atomics; wake reset writes through the same helper.
- No session, controller, lease, or persisted-state ownership path is changed.
Cache impact
Cache-impact: none — no provider-visible prompt, tool schema or order, memory prefix, compaction, or request serialization changes.
Cache-guard: ./scripts/cache-guard.sh passed all scenarios.
System-prompt-review: N/A