mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-11 13:37:47 +08:00
refactor(workspace): omit unchanged registry state fields
This commit is contained in:
@@ -459,8 +459,6 @@ export class WorkspaceRegistry extends Service {
|
||||
initialized: true,
|
||||
...(firstUse ? { defaultWorkspaceId: id } : {}),
|
||||
workspaceIds: [id, ...state.workspaceIds],
|
||||
archivedSessionIds: state.archivedSessionIds,
|
||||
pinnedSessionIds: state.pinnedSessionIds,
|
||||
})
|
||||
} catch (error) {
|
||||
this.entities.delete(id)
|
||||
@@ -494,8 +492,6 @@ export class WorkspaceRegistry extends Service {
|
||||
pendingMutation: undefined,
|
||||
initialized: true,
|
||||
workspaceIds: state.workspaceIds.filter(workspaceId => workspaceId !== id),
|
||||
archivedSessionIds: state.archivedSessionIds,
|
||||
pinnedSessionIds: state.pinnedSessionIds,
|
||||
}
|
||||
await this.setState({
|
||||
...nextState,
|
||||
@@ -549,14 +545,7 @@ export class WorkspaceRegistry extends Service {
|
||||
)
|
||||
}
|
||||
await this.requireTable().delete(pending.workspaceId)
|
||||
await this.setState({
|
||||
...state,
|
||||
pendingMutation: undefined,
|
||||
initialized: state.initialized,
|
||||
workspaceIds: state.workspaceIds,
|
||||
archivedSessionIds: state.archivedSessionIds,
|
||||
pinnedSessionIds: state.pinnedSessionIds,
|
||||
})
|
||||
await this.setState({ ...state, pendingMutation: undefined })
|
||||
}
|
||||
|
||||
private async bootstrap(headers: readonly SessionHeader[]): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user