tabbit 0.1.2: send a fresh unique-uuid on every call, so web.tabbit.ai's sign-in gate lets chat turns through (#837)
web.tabbit.ai answers a chat turn's runs call with 429, code 492 ("Welcome
to Tabbit Browser...") unless the request carries a unique-uuid header.
Tabbit Browser sends a fresh uuid on every API call (a net-export capture
showed four different values across runs, two joins and usage), and the
gate accepts any well-formed one. headersFor now adds
crypto.randomUUID() as unique-uuid to every request, on both sites.
Version 0.1.2; the README's international-site note describes the gate
instead of saying turns are refused (#834).
Test: tests/unique-uuid.test.mjs posts two runs on each site through a
mocked fetch and asserts a v4 uuid that differs per call. No network.
Run at 1bffccd6 merged onto main d34785ae (mote, Bun 1.4.2 / Node 22,
temp HOME): packages/tabbit node --test 72 pass / 0 fail, bun test 72 / 0;
bun scripts/check.mjs tabbit and whole repo ok; repo-root bun test 6827 pass / 0 fail (6847 run, 314s).
Broken by hand: main's api.mjs under the head's tests turns both new tests
red (0 pass / 2 fail). CI run 42380909152 green.
0.1.2 is not on dist (0.1.0, 0.1.1) or npm.
Not tried: any real call to web.tabbit.ai or web.tabbit.com.
This commit is contained in:
@@ -158,6 +158,12 @@ function headersFor(creds, site, extra) {
|
||||
cookie: creds.header,
|
||||
accept: "application/json",
|
||||
"user-agent": UA,
|
||||
// web.tabbit.ai's browser sign-in gate (429 code 492 "Welcome to Tabbit
|
||||
// Browser") refuses a turn whose request carries no `unique-uuid`: the
|
||||
// browser sends a fresh uuid on every API call, and the gate accepts any
|
||||
// well-formed one. Measured against a live signed-in session on .ai;
|
||||
// .com ignores the header.
|
||||
"unique-uuid": crypto.randomUUID(),
|
||||
origin: site,
|
||||
referer: `${site}/newtab`,
|
||||
...extra,
|
||||
|
||||
Reference in New Issue
Block a user