Skip to content

Commit be5e34c

Browse files
committed
refactor: remove dead getCancelledCompactionKey storage helper
The getCancelledCompactionKey function and its entry in the EPHEMERAL_WORKSPACE_KEY_FUNCTIONS array became dead code when useResumeManager.ts (its only consumer) was deleted. Remove both the function definition and the ephemeral-keys array reference.
1 parent 8c91a71 commit be5e34c

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/common/constants/storage.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,6 @@ export function getAutoRetryKey(workspaceId: string): string {
248248
return `${workspaceId}-autoRetry`;
249249
}
250250

251-
/**
252-
* Get storage key for cancelled compaction tracking.
253-
* Stores compaction-request user message ID to verify freshness across reloads.
254-
*/
255-
export function getCancelledCompactionKey(workspaceId: string): string {
256-
return `workspace:${workspaceId}:cancelled-compaction`;
257-
}
258-
259251
/**
260252
* Get the localStorage key for the selected agent definition id for a scope.
261253
* Format: "agentId:{scopeId}"
@@ -673,7 +665,6 @@ export function getPostCompactionStateKey(workspaceId: string): string {
673665
* Additional ephemeral keys to delete on workspace removal (not copied on fork)
674666
*/
675667
const EPHEMERAL_WORKSPACE_KEY_FUNCTIONS: Array<(workspaceId: string) => string> = [
676-
getCancelledCompactionKey,
677668
getPendingWorkspaceSendErrorKey,
678669
getPlanContentKey, // Cache only, no need to preserve on fork
679670
getPostCompactionStateKey, // Cache only, no need to preserve on fork

0 commit comments

Comments
 (0)