Skip to content

Commit 1aeab98

Browse files
committed
Handle old backend result
1 parent 59a0e48 commit 1aeab98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/src/hooks/use-freebuff-session.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ async function callSession(
4444
headers,
4545
signal: opts.signal,
4646
})
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+
}
4753
if (!resp.ok) {
4854
const text = await resp.text().catch(() => '')
4955
throw new Error(

0 commit comments

Comments
 (0)