Repository navigation
Commit 19a1fdb
easonLiangWorldedtech
fix(webview): satisfy the merged ClineProvider contract
The merge with main made the focus tracker a required constructor argument and made getTaskHistoryItem() return
undefined, which the compile job caught:
- ClineProvider.spec.ts: every branch-added ClineProvider construction now passes a WebviewFocusTracker.
- handleModeSwitchUnlocked: the history-write compensation now runs only when a history item existed before the
switch, and re-reads the item before restoring the pre-switch mode. Previously it dereferenced a possibly undefined
item both when capturing the previous mode and when spreading it into updateTaskHistory.
Local: core/webview suite 699/699 green; eslint clean on both files with no suppression-count growth.1 parent 5107d70 commit 19a1fdb
2 files changed
Lines changed: 540 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2117 | 2117 | | |
2118 | 2118 | | |
2119 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
2120 | 2126 | | |
2121 | 2127 | | |
2122 | 2128 | | |
2123 | 2129 | | |
2124 | | - | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
2125 | 2135 | | |
2126 | 2136 | | |
2127 | 2137 | | |
| |||
0 commit comments