summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-10-24 19:29:16 +0900
committerAdam Malczewski <[email protected]>2026-10-24 19:29:16 +0900
commite0fd88e90192b1a07b8fe2f5cfb84309c12c43ea (patch)
tree28ff0498edb247f1b8d063212ca23312cbbd9c97 /src
parent34526ff48985643bed532b102e8943fa69e77a79 (diff)
downloaddispatch-web-e0fd88e90192b1a07b8fe2f5cfb84309c12c43ea.tar.gz
dispatch-web-e0fd88e90192b1a07b8fe2f5cfb84309c12c43ea.zip
chore: remove private machine and network details from frontend
Diffstat (limited to 'src')
-rw-r--r--src/app/resolve-http-url.test.ts8
-rw-r--r--src/app/resolve-ws-url.test.ts8
-rw-r--r--src/features/chat/ui/ChatView.test.ts4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/app/resolve-http-url.test.ts b/src/app/resolve-http-url.test.ts
index e544255..c556812 100644
--- a/src/app/resolve-http-url.test.ts
+++ b/src/app/resolve-http-url.test.ts
@@ -19,13 +19,13 @@ describe("resolveHttpUrl", () => {
});
it("derives http://<hostname>:24203 from http location", () => {
- const result = resolveHttpUrl({}, { protocol: "http:", hostname: "PII_REDACTED_DEV_IPV4_01" });
- expect(result).toBe("http://PII_REDACTED_DEV_IPV4_01:24203");
+ const result = resolveHttpUrl({}, { protocol: "http:", hostname: "192.0.2.10" });
+ expect(result).toBe("http://192.0.2.10:24203");
});
it("derives https://<hostname>:24203 from https location", () => {
- const result = resolveHttpUrl({}, { protocol: "https:", hostname: "PII_REDACTED_DEVICE_01" });
- expect(result).toBe("https://PII_REDACTED_DEVICE_01:24203");
+ const result = resolveHttpUrl({}, { protocol: "https:", hostname: "dev-node" });
+ expect(result).toBe("https://dev-node:24203");
});
it("uses VITE_HTTP_PORT when set", () => {
diff --git a/src/app/resolve-ws-url.test.ts b/src/app/resolve-ws-url.test.ts
index ab3a379..be1ab12 100644
--- a/src/app/resolve-ws-url.test.ts
+++ b/src/app/resolve-ws-url.test.ts
@@ -19,13 +19,13 @@ describe("resolveWsUrl", () => {
});
it("derives ws://<hostname>:24205 from http location", () => {
- const result = resolveWsUrl({}, { protocol: "http:", hostname: "PII_REDACTED_DEV_IPV4_01" });
- expect(result).toBe("ws://PII_REDACTED_DEV_IPV4_01:24205");
+ const result = resolveWsUrl({}, { protocol: "http:", hostname: "192.0.2.10" });
+ expect(result).toBe("ws://192.0.2.10:24205");
});
it("derives wss://<hostname>:24205 from https location", () => {
- const result = resolveWsUrl({}, { protocol: "https:", hostname: "PII_REDACTED_DEVICE_01" });
- expect(result).toBe("wss://PII_REDACTED_DEVICE_01:24205");
+ const result = resolveWsUrl({}, { protocol: "https:", hostname: "dev-node" });
+ expect(result).toBe("wss://dev-node:24205");
});
it("uses VITE_WS_PORT when set", () => {
diff --git a/src/features/chat/ui/ChatView.test.ts b/src/features/chat/ui/ChatView.test.ts
index a6bd8ac..157ccac 100644
--- a/src/features/chat/ui/ChatView.test.ts
+++ b/src/features/chat/ui/ChatView.test.ts
@@ -14,7 +14,7 @@ async function openAllCollapses(container: HTMLElement): Promise<void> {
}
// Defensive rendering: a conversation transcript can contain duplicate
-// `toolCallId`s (provider double-emission, persisted — e.g. PII_REDACTED_CONVERSATION_SHORT_01). The
+// `toolCallId`s (persisted provider double-emission). The
// grouped render path MUST dedupe them so the keyed {#each} never throws
// Svelte `each_key_duplicate` (which aborts the reactive flush and makes the
// tab appear dead). See fix-toolcall-duplicate-keys plan Part 1.
@@ -45,7 +45,7 @@ describe("ChatView — duplicate toolCallIds", () => {
},
provisional: false,
},
- // The PII_REDACTED_CONVERSATION_SHORT_01 pattern: the same ids re-emitted immediately after.
+ // The duplicate-emission pattern: the same ids re-emitted immediately after.
{
seq: 3,
role: "assistant",