Skip to content

Conversation

Kylejeong2
Copy link
Member

what

Session routing, edge config, better prompts, remove search param parsing,

miguelg719 and others added 30 commits September 28, 2025 12:38
* update urls, ts ignore fix (#8)

* feat: add query param parsing (#9)

* update urls, ts ignore fix

* added query param parsing to instatiate chatfeed with query params

* disable captcha solving if query params are passed in (#10)

* update gemini model

* update model tag (#12)

* add region routing

* more precise region & probability dist routing

* no inline import

* add dep

---------

Co-authored-by: Kyle Jeong <77771518+Kylejeong2@users.noreply.github.com>
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
* update urls, ts ignore fix (#8)

* feat: add query param parsing (#9)

* update urls, ts ignore fix

* added query param parsing to instatiate chatfeed with query params

* disable captcha solving if query params are passed in (#10)

* update gemini model

* update model tag (#12)

* add region routing

* more precise region & probability dist routing

* no inline import

* add dep

---------

Co-authored-by: Kyle Jeong <77771518+Kylejeong2@users.noreply.github.com>
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
priv-gemini-browser Ready Ready Preview Comment Oct 7, 2025 6:39pm

Comment on lines +144 to +150
return "PDT"; // Server-side fallback
}

const abbr = moment.tz(moment.tz.guess()).format("z");
return abbr;
} catch {
return "PDT"; // Fallback
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return "PDT"; // Server-side fallback
}
const abbr = moment.tz(moment.tz.guess()).format("z");
return abbr;
} catch {
return "PDT"; // Fallback
return "GMT"; // Server-side fallback - more globally neutral
}
const abbr = moment.tz(moment.tz.guess()).format("z");
return abbr;
} catch {
return "GMT"; // Fallback - more globally neutral than PDT

The timezone detection fallback is hardcoded to "PDT" (Pacific Daylight Time) for both server-side rendering and error cases, causing users worldwide to be incorrectly routed to US West Coast servers.

View Details

Analysis

Hardcoded PDT timezone fallback routes global users to US West Coast servers

What fails: getTimezoneAbbreviation() in app/hooks/useAgentStream.ts returns hardcoded "PDT" for server-side rendering and error cases, causing non-US users to be routed to us-west-2 region instead of geographically closer servers

How to reproduce:

// Server-side rendering scenario:
typeof window === "undefined" // returns "PDT"
// Error scenario:
moment.tz operations fail // returns "PDT" 
// Both cases map PDT -> "us-west-2" via timezoneAbbreviationMap

Result: European and Asian users get routed to US West Coast servers (us-west-2) instead of eu-central-1 or ap-southeast-1, causing increased latency

Expected: Fallback should use a more globally neutral timezone like GMT which maps to eu-central-1, providing better geographic distribution for international users

Fix: Changed both fallback cases from "PDT" to "GMT" to route fallback users to eu-central-1 instead of us-west-2

@Kylejeong2 Kylejeong2 merged commit b2ed160 into main Oct 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants