From 928c3ece8acd0ebfd52c9a57628a0735117576e1 Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Mon, 27 Jul 2026 17:29:02 -0700 Subject: [PATCH] Fix duplicate snipsync IDs shared with hello-world The empty and sleep-for-days samples were scaffolded from hello-world and kept its snippet IDs, so typescript-hello-worker and typescript-hello-client were each defined in three files. Snipsync resolves duplicates silently, so a doc referencing typescript-hello-worker got sleep-for-days rather than hello-world. Renames the copies so both IDs are unique to hello-world. --- empty/src/client.ts | 2 +- empty/src/worker.ts | 2 +- sleep-for-days/src/client.ts | 2 +- sleep-for-days/src/worker.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/empty/src/client.ts b/empty/src/client.ts index 0a97f8fc2..f4c17e7eb 100644 --- a/empty/src/client.ts +++ b/empty/src/client.ts @@ -1,4 +1,4 @@ -// @@@SNIPSTART typescript-hello-client +// @@@SNIPSTART typescript-empty-client import { Connection, Client } from '@temporalio/client'; import { loadClientConnectConfig } from '@temporalio/envconfig'; import { nanoid } from 'nanoid'; diff --git a/empty/src/worker.ts b/empty/src/worker.ts index ece007e5a..955cc4496 100644 --- a/empty/src/worker.ts +++ b/empty/src/worker.ts @@ -1,4 +1,4 @@ -// @@@SNIPSTART typescript-hello-worker +// @@@SNIPSTART typescript-empty-worker import { NativeConnection, Worker } from '@temporalio/worker'; import * as activities from './activities'; import { TASK_QUEUE_NAME } from './shared'; diff --git a/sleep-for-days/src/client.ts b/sleep-for-days/src/client.ts index 190d00856..a0d5f2bc1 100644 --- a/sleep-for-days/src/client.ts +++ b/sleep-for-days/src/client.ts @@ -1,4 +1,4 @@ -// @@@SNIPSTART typescript-hello-client +// @@@SNIPSTART typescript-sleep-for-days-client import { Connection, Client } from '@temporalio/client'; import { loadClientConnectConfig } from '@temporalio/envconfig'; import { sleepForDays } from './workflows'; diff --git a/sleep-for-days/src/worker.ts b/sleep-for-days/src/worker.ts index 91da6ddeb..b3f9df9b6 100644 --- a/sleep-for-days/src/worker.ts +++ b/sleep-for-days/src/worker.ts @@ -1,4 +1,4 @@ -// @@@SNIPSTART typescript-hello-worker +// @@@SNIPSTART typescript-sleep-for-days-worker import { NativeConnection, Worker } from '@temporalio/worker'; import * as activities from './activities';