Skip to content

Commit 0177869

Browse files
committed
Increase timeout via fluctuation
1 parent 8062086 commit 0177869

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

webapp/_webapp/src/components/loading-indicator.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const LoadingIndicator = ({ text = "Thinking", estimatedSeconds = 0, erro
7777

7878
// Calculate progress with natural fluctuation
7979
const baseIncrement = (deltaTime / (estimatedSeconds * 1000)) * 100;
80-
const fluctuation = (Math.random() - 0.5) * 5;
80+
const fluctuation = (Math.random() - 0.5) * 4;
8181
const increment = Math.max(0, baseIncrement + fluctuation);
8282
currentProgress = Math.max(currentProgress, currentProgress + increment);
8383

@@ -113,9 +113,9 @@ export const LoadingIndicator = ({ text = "Thinking", estimatedSeconds = 0, erro
113113

114114
// Get status message based on phase
115115
const getStatusMessage = () => {
116-
if (isTimeout) return "Request timed out";
117-
if (phase === "orange") return "Taking longer than expected";
118-
if (phase === "red") return "Last try";
116+
if (isTimeout) return "Sorry — this request took too long to complete. We're working on improving reliability. You can try waiting a bit longer or refreshing the page. Thanks for your patience.";
117+
if (phase === "orange") return "Synthesizing...";
118+
if (phase === "red") return "Just a moment...";
119119
if (errorMessage && errorMessage.length > 0) return errorMessage;
120120
return text;
121121
};

0 commit comments

Comments
 (0)