Part of #1541. Cleanup after #1542 and #1543.
Remove taskHistory from the GlobalState zod schema so the compiler enforces that nothing new can accidentally read the key. Also removes the now-redundant destructure omissions in the lightweight state-post helpers.
Changes
packages/types/src/global-settings.ts line 113: remove taskHistory field from GlobalState schema
ClineProvider.ts lines 2719, 2758: remove { taskHistory: _omit, ...rest } destructures in postChatStateToWebview / postTaskStateToWebview (become no-ops once the key is gone)
ClineProvider.ts lines ~704–715: remove or guard the legacy migration block that reads globalState.get<HistoryItem[]>("taskHistory") (can be kept for one release cycle to drain old installs, then deleted)
Safety
Land last, after #1542 and #1543. The type removal makes the compiler catch any future accidental reads at build time.
Part of #1541. Cleanup after #1542 and #1543.
Remove
taskHistoryfrom theGlobalStatezod schema so the compiler enforces that nothing new can accidentally read the key. Also removes the now-redundant destructure omissions in the lightweight state-post helpers.Changes
packages/types/src/global-settings.tsline 113: removetaskHistoryfield fromGlobalStateschemaClineProvider.tslines 2719, 2758: remove{ taskHistory: _omit, ...rest }destructures inpostChatStateToWebview/postTaskStateToWebview(become no-ops once the key is gone)ClineProvider.tslines ~704–715: remove or guard the legacy migration block that readsglobalState.get<HistoryItem[]>("taskHistory")(can be kept for one release cycle to drain old installs, then deleted)Safety
Land last, after #1542 and #1543. The type removal makes the compiler catch any future accidental reads at build time.