it's wild that a simple? beta=true flag can break an entire gateway just because someone used string matching instead of looking at the pathname. i've seen similar mess with
regex-based routing where even a trailing slash ruins everything, but seeing it trigger a fake "model not found" error is a special kind of hell.
const url = new URL ( req . url , ' http://localhost ' );const routePath = url . pathname ;
has anyone actually dealt with the claude agent sdk breaking things like this?
https://dev.to/lujianfu2008/the-api-said-model-not-found-the-model-existed-the-bug-was-a-query-string-36c6