Skip to content

Commit ccf112f

Browse files
drfarrellclaude
andcommitted
fix: reduce timeout detection to 5 seconds for faster user feedback
- Changed from 30s to 5s timeout for amber indicator - Users see 502 errors almost instantly, 30s was too long - 5 seconds is enough to avoid false positives during normal load - But quick enough to guide users when there's an actual 502 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5d7cc0e commit ccf112f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/client/src/app/project/[id]/_components/bottom-bar/terminal-area.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ export const TerminalArea = observer(({ children }: { children: React.ReactNode
8686
connectionStartTimeRef.current = Date.now();
8787
}
8888

89-
// Check if we've been connecting for too long (30 seconds like frame component)
89+
// Check if we've been connecting for too long (5 seconds - users see 502 quickly)
9090
const connectionDuration = Date.now() - connectionStartTimeRef.current;
91-
const TIMEOUT_MS = 30000; // 30 seconds to match frame timeout
91+
const TIMEOUT_MS = 5000; // 5 seconds - enough to avoid false positives but quick enough for 502s
9292

9393
if (connectionDuration >= TIMEOUT_MS) {
9494
// This is a real timeout/502 - show amber

0 commit comments

Comments
 (0)