You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Refactor] Extract webview message handling & state posting into WebviewBridge from ClineProvider.ts #26
Extract the webview message dispatch and state posting cluster from src/core/webview/ClineProvider.ts into a dedicated WebviewBridge module, and address the O(n²) state update performance issue.
Scope
Methods to extract:
postMessageToWebview()
postStateToWebview() (and variants without task history / cline messages)
getStateToPostToWebview()
broadcastTaskHistoryUpdate()
Code index status update logic
State owned:
view?: vscode.WebviewView | vscode.WebviewPanel
webviewDisposables: vscode.Disposable[]
isViewLaunched: boolean
codeIndexManager?
codeIndexStatusSubscription?
Estimated size: ~600–700 lines
Performance improvement opportunity
Once extracted, WebviewBridge can be updated to send incremental diffs rather than the full conversation state on each update, resolving the O(n²) degradation described in RooCodeInc/Roo-Code#6513.
Activity