Skip to content

Commit 246b504

Browse files
committed
cp dines
1 parent ae7fcf5 commit 246b504

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/Breadcrumb.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ interface BreadcrumbProps {
1212
}
1313

1414
export const Breadcrumb: React.FC<BreadcrumbProps> = React.memo(({ items }) => {
15+
const baseUrl = process.env.RUNLOOP_BASE_URL;
16+
const isDevEnvironment = baseUrl && baseUrl !== 'https://api.runloop.ai';
17+
1518
return (
1619
<Box marginBottom={1} paddingX={1} paddingY={0}>
17-
<Text color="green" dimColor bold>RL </Text>
20+
<Text color="green" dimColor bold>RL</Text>
21+
{isDevEnvironment && <Text color="redBright" bold> (dev)</Text>}
22+
<Text> </Text>
1823
<Text color="gray" dimColor>{figures.arrowRight} </Text>
1924
{items.map((item, index) => (
2025
<React.Fragment key={index}>

src/utils/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ export function getClient(): Runloop {
1010

1111
return new Runloop({
1212
bearerToken: config.apiKey,
13+
timeout: 10000, // 10 seconds instead of default 30 seconds
14+
maxRetries: 2, // 2 retries instead of default 5 (only for retryable errors)
1315
});
1416
}

0 commit comments

Comments
 (0)