Skip to content

fix(insights): complete long-running report generation - #4001

Merged
kev1n77 merged 2 commits into
openBitFun:mainfrom
kev1n77:fmy/insights
Nov 19, 2026
Merged

kev1n77 merged 2 commits into
openBitFun:mainfrom
kev1n77:fmy/insights

Conversation

@kev1n77

@kev1n77 kev1n77 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keep Desktop Insights waiting for long-running report generation and correlate progress and cancellation by generation ID.
  • Deduplicate worktree histories by session storage, fail when model analysis produces no usable report, and label partial reports with coverage and failed section counts.
  • Scope facet cache reuse to the resolved model and rendered prompt. Render exported copy buttons from escaped text and convert time-of-day charts from UTC minute buckets while still loading legacy reports.

Verification

  • A macOS Desktop build with packaged frontend assets called the configured real claude-opus-5-5 endpoint on five synthetic sessions. The UI was still generating at 31.092 seconds and the report view mounted at 96.561 seconds. All five sessions and all report sections completed. All 13 model calls reported usage, and both JSON and HTML were saved.
  • 19 focused Core tests, 10 Desktop command and routing tests, and 143 frontend tests passed. check:web, i18n:audit, the packaged frontend build, and the native Desktop build passed.
  • SSH storage and Peer Device routing were exercised with fixtures. Live remote hosts and foreground window paint were outside this verification. An earlier k3.1-pro run was stopped after the gateway returned HTTP 504.

AI-assisted change with focused regression tests and a real-model Desktop workflow check.

@kev1n77
kev1n77 merged commit 9392590 into openBitFun:main Nov 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant