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 task history persistence from ClineProvider.ts #23
Extract the task history persistence, caching, and sync cluster from src/core/webview/ClineProvider.ts into a dedicated module.
Scope
Methods to extract:
initializeTaskHistoryStore()
updateTaskHistory()
scheduleGlobalStateWriteThrough()
flushGlobalStateWriteThrough()
broadcastTaskHistoryUpdate()
getRecentTasks()
getTaskWithId()
showTaskWithId()
State owned:
taskHistoryStore: TaskHistoryStore
taskHistoryStoreInitialized: boolean
recentTasksCache?: string[]
globalStateWriteThroughTimer?: NodeJS.Timeout
GLOBAL_STATE_WRITE_THROUGH_DEBOUNCE_MS = 5000
Estimated size: ~300–350 lines
Notes
Currently mixes caching strategy, debounced write-through, and broadcast concerns in one place. Extracting gives each a clear owner and makes the debounce/sync logic independently testable.
Activity