Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/app/src/lib/system-config-atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const unavailableSystemConfig: SystemConfigResponse = {
appearance: defaultAppTheme,
customThemes: [],
pluginThemes: [],
featureFlags: { placeholder: false, timelineWindowEventBudget: 1_500 },
featureFlags: { placeholder: false, timelineWindowEventBudget: 400 },
hostDaemonPort: null,
localHelperPorts: [],
serverUrl: "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe("timeline event budget", () => {
page,
};
expect(
buildThreadTimeline(db, thread, { ...options, eventBudget: 1_500 }),
buildThreadTimeline(db, thread, { ...options, eventBudget: 400 }),
).toEqual(
buildThreadTimeline(db, thread, {
...options,
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ is synchronous, so it blocked the server's event loop — which also delayed
dynamic tool call and before registering every interactive request. One slow
thread therefore slowed agent work on _every_ thread on the host.

A window is capped at `BB_FF_TIMELINE_WINDOW_EVENT_BUDGET` events (default 1500) and returns however many whole turns fit. Older turns load automatically
A window is capped at `BB_FF_TIMELINE_WINDOW_EVENT_BUDGET` events (default 400) and returns however many whole turns fit. Older turns load automatically
as you scroll toward the top of the loaded window; a manual "Load older
messages" button remains on surfaces that render no scroll body, and after a
failed page so a broken fetch is retried on request rather than in a loop.
Expand Down
2 changes: 1 addition & 1 deletion packages/config/test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe("consumer-specific config", () => {
expect(serverConfig.OPENAI_API_KEY).toBe("test-openai-key");
expect(serverConfig.featureFlags).toEqual({
placeholder: false,
timelineWindowEventBudget: 1_500,
timelineWindowEventBudget: 400,
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/domain/src/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export type FeatureFlags = z.infer<typeof featureFlagsSchema>;

export const defaultFeatureFlags: FeatureFlags = {
placeholder: false,
timelineWindowEventBudget: 1_500,
timelineWindowEventBudget: 400,
};
2 changes: 1 addition & 1 deletion packages/templates/src/templates/bb-guide-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ timelines and large expanded timeline details. Enable it with
`bb settings experiment timelineWindowing true`.

Thread timeline windows are bounded by event count as well as user-message
count (`BB_FF_TIMELINE_WINDOW_EVENT_BUDGET`, default 1500), so a long thread
count (`BB_FF_TIMELINE_WINDOW_EVENT_BUDGET`, default 400), so a long thread
stops reprojecting its whole history — and blocking the server event loop — on
every update. A turn still running is cut at the budget too, so a very long
turn costs the budget per update instead of growing without limit. Older
Expand Down