MCPcopy
hub / github.com/coder/mux / pushSnapshot

Method pushSnapshot

src/node/services/workspaceGoalService.ts:710–718  ·  view source on GitHub ↗
(
    workspaceId: string,
    goal: GoalRecordV1 | null
  )

Source from the content-addressed store, hash-verified

708 }
709
710 private async pushSnapshot(
711 workspaceId: string,
712 goal: GoalRecordV1 | null
713 ): Promise<GoalSnapshot | null> {
714 const snapshot = goal ? toGoalSnapshot(goal) : null;
715 const activity = await this.extensionMetadata.setGoal(workspaceId, snapshot);
716 this.onActivityChange?.(workspaceId, activity);
717 return snapshot;
718 }
719
720 private async pushTransientGoalSnapshot(
721 workspaceId: string,

Callers 15

renameCorruptGoalMethod · 0.95
pushGoalReadSnapshotMethod · 0.95
inheritFromForkMethod · 0.95
setGoalImmediatelyMethod · 0.95
acknowledgeUserMethod · 0.95

Calls 3

toGoalSnapshotFunction · 0.90
onActivityChangeMethod · 0.80
setGoalMethod · 0.45

Tested by

no test coverage detected