Skip to content

Commit bea6a0f

Browse files
Merge branch 'main' into brendan/release-setup-sourcebot-action
2 parents c4babfd + 67a88fe commit bea6a0f

15 files changed

Lines changed: 210 additions & 99 deletions

File tree

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [5.0.1] - 2026-06-04
11+
12+
### Fixed
13+
- Guest users will now be prompted to login when trying to view their connects on the Ask Sourcebot page. [#1274](https://github.com/sourcebot-dev/sourcebot/pull/1274)
14+
1015
## [5.0.0] - 2026-06-04
1116

1217
Checkout the [migration guide](https://docs.sourcebot.dev/docs/upgrade/v4-to-v5-guide) for details on upgrading your instance to v5.

docs/api-reference/sourcebot-public.openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.3",
33
"info": {
44
"title": "Sourcebot Public API",
5-
"version": "v5.0.0",
5+
"version": "v5.0.1",
66
"description": "OpenAPI description for the public Sourcebot REST endpoints used for search, repository listing, and file browsing. Authentication is instance-dependent: API keys are the standard integration mechanism, OAuth bearer tokens are EE-only, and some instances may allow anonymous access."
77
},
88
"tags": [

docs/docs.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"group": "Subscribe",
128128
"pages": [
129129
"docs/activating-a-subscription",
130-
"docs/billing",
130+
"docs/seat-reconciliation",
131131
"docs/free-trial"
132132
]
133133
},
@@ -273,6 +273,10 @@
273273
{
274274
"source": "/docs/license-key",
275275
"destination": "/docs/activating-a-subscription"
276+
},
277+
{
278+
"source": "/docs/billing",
279+
"destination": "/docs/seat-reconciliation"
276280
}
277281
]
278282
}
File renamed without changes.

packages/shared/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This file is auto-generated by .github/workflows/release-sourcebot.yml
2-
export const SOURCEBOT_VERSION = "v5.0.0";
2+
export const SOURCEBOT_VERSION = "v5.0.1";

packages/web/src/app/(app)/askgh/[owner]/[repo]/components/landingPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export const LandingPage = ({
9595
onContextSelectorOpenChanged={setIsContextSelectorOpen}
9696
disabledMcpServerIds={disabledMcpServerIds}
9797
onDisabledMcpServerIdsChange={setDisabledMcpServerIds}
98+
isAuthenticated={isAuthenticated}
9899
/>
99100
<SearchModeSelector
100101
searchMode="agentic"

packages/web/src/app/(app)/chat/components/landingPageChatBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const LandingPageChatBox = ({
6262
onContextSelectorOpenChanged={setIsContextSelectorOpen}
6363
disabledMcpServerIds={disabledMcpServerIds}
6464
onDisabledMcpServerIdsChange={setDisabledMcpServerIds}
65+
isAuthenticated={isAuthenticated}
6566
/>
6667
<SearchModeSelector
6768
searchMode="agentic"

packages/web/src/app/(app)/settings/license/yearlyTermSeatsUsageCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { cn, isServiceError } from "@/lib/utils";
1212
import { SettingsCard } from "../components/settingsCard";
1313
import { YearlyTermStatus } from "./types";
1414

15-
const DOCS_URL = "https://docs.sourcebot.dev/docs/billing";
15+
const DOCS_URL = "https://docs.sourcebot.dev/docs/seat-reconciliation";
1616

1717

1818
interface YearlyTermSeatsUsageCardProps {

packages/web/src/ee/features/chat/components/chatThread/chatThread.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ export const ChatThread = ({
496496
onContextSelectorOpenChanged={setIsContextSelectorOpen}
497497
disabledMcpServerIds={disabledMcpServerIds}
498498
onDisabledMcpServerIdsChange={onDisabledMcpServerIdsChange}
499+
isAuthenticated={isAuthenticated}
499500
/>
500501
</div>
501502
</CustomSlateEditor>

packages/web/src/ee/features/chat/mcp/components/connectorsMenu.test.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, expect, test } from 'vitest';
2-
import { splitMcpServersForChatMenu } from './connectorsMenu';
2+
import { ErrorCode } from '@/lib/errorCodes';
3+
import { McpServersLoadError, shouldRetryMcpServersLoad, splitMcpServersForChatMenu } from './connectorsMenu';
34

45
describe('splitMcpServersForChatMenu', () => {
56
test('keeps connected and expired servers separate from connectable approved servers', () => {
@@ -15,3 +16,23 @@ describe('splitMcpServersForChatMenu', () => {
1516
expect(connectableServers.map((server) => server.id)).toEqual(['approved']);
1617
});
1718
});
19+
20+
describe('shouldRetryMcpServersLoad', () => {
21+
test('does not retry authentication failures', () => {
22+
const error = new McpServersLoadError({
23+
statusCode: 401,
24+
errorCode: ErrorCode.NOT_AUTHENTICATED,
25+
message: 'Not authenticated',
26+
});
27+
28+
expect(shouldRetryMcpServersLoad(0, error)).toBe(false);
29+
});
30+
31+
test('retries other failures up to the default react-query cap', () => {
32+
const error = new Error('network down');
33+
34+
expect(shouldRetryMcpServersLoad(0, error)).toBe(true);
35+
expect(shouldRetryMcpServersLoad(2, error)).toBe(true);
36+
expect(shouldRetryMcpServersLoad(3, error)).toBe(false);
37+
});
38+
});

0 commit comments

Comments
 (0)