We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59a0e48 commit 1aeab98Copy full SHA for 1aeab98
cli/src/hooks/use-freebuff-session.ts
@@ -44,6 +44,12 @@ async function callSession(
44
headers,
45
signal: opts.signal,
46
})
47
+ // 404 = endpoint not deployed on this server (older web build). Treat as
48
+ // "waiting room disabled" so a newer CLI against an older server still
49
+ // works, rather than stranding users in a waiting room forever.
50
+ if (resp.status === 404) {
51
+ return { status: 'disabled' }
52
+ }
53
if (!resp.ok) {
54
const text = await resp.text().catch(() => '')
55
throw new Error(
0 commit comments