Skip to content

Commit c5439a3

Browse files
Merge branch 'main' into brendan/scim-user-provisioning
2 parents 5648957 + 4ec4de1 commit c5439a3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Fixed
1919
- Validated that `SOURCEBOT_ENCRYPTION_KEY` is exactly 32 characters at startup, failing fast with an actionable message instead of a runtime encryption error. [#1305](https://github.com/sourcebot-dev/sourcebot/pull/1305)
20+
- Fixed the web UI crashing when anonymous access is enabled and a request omits the `User-Agent` header (e.g. proxy or health-check probes). [#1309](https://github.com/sourcebot-dev/sourcebot/pull/1309)
2021

2122
## [5.0.2] - 2026-06-11
2223

packages/web/src/app/(app)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default async function Layout(props: LayoutProps) {
148148
const headersList = await headers();
149149
const cookieStore = await cookies()
150150
const userAgent = headersList.get('user-agent');
151-
const { isMobile } = getSelectorsByUserAgent(userAgent ?? '');
151+
const { isMobile } = userAgent ? getSelectorsByUserAgent(userAgent) : { isMobile: false };
152152

153153
if (isMobile && !cookieStore.has(MOBILE_UNSUPPORTED_SPLASH_SCREEN_DISMISSED_COOKIE_NAME)) {
154154
return (

0 commit comments

Comments
 (0)