Repository navigation
Conversation
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: Mark the PR ready. Required CI must pass before CodeRabbit starts. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
This PR has been awaiting author changes for 14 days and will be automatically closed in 7 days. Please address the review comments or leave a comment if you need more time. |
…y-optimization-0lkgswz0njjgl # Conflicts: # webview-ui/src/__tests__/App.spec.tsx # webview-ui/src/context/ExtensionStateContext.tsx # webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx
What changed
Why this change was made
Long-running webview sessions repeatedly deserialize the same message and history strings, while old React closures can retain prior task state. This implements the linked optimization proof of concept with stricter lifecycle handling and regression coverage suitable for production.
Impact
Chat behavior and appearance are unchanged. The webview can release prior-task message data more reliably and avoid retaining duplicate completed-message and history strings, reducing memory pressure during long sessions.