Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(desktop): refresh qr every 30s

Jiayuan Zhangeee6cf13418d
diff --git a/apps/desktop/src/components/qr-code.tsx b/apps/desktop/src/components/qr-code.tsx
index f70f8ed2a6..1562dfd1e2 100644
--- a/apps/desktop/src/components/qr-code.tsx
+++ b/apps/desktop/src/components/qr-code.tsx
@@ -21,7 +21,7 @@ export interface ConnectionQRCodeProps {
gateway: string
hubId: string
agentId: string
- /** QR code expiry time in seconds (default: 300 = 5 minutes) */
+ /** QR code expiry time in seconds (default: 30) */
expirySeconds?: number
/** Size of the QR code in pixels (default: 180) */
size?: number
@@ -50,7 +50,7 @@ export function ConnectionQRCode({
gateway,
hubId,
agentId,
- expirySeconds = 300,
+ expirySeconds = 30,
size = 180,
onRefresh,
}: ConnectionQRCodeProps) {
diff --git a/apps/desktop/src/pages/home.tsx b/apps/desktop/src/pages/home.tsx
index 31cddf40fa..029bff946d 100644
--- a/apps/desktop/src/pages/home.tsx
+++ b/apps/desktop/src/pages/home.tsx
@@ -53,13 +53,13 @@ export default function HomePage() {
<div className="flex-1 flex gap-8 p-2">
{/* Left: QR Code */}
<div className="flex-1 flex flex-col items-center justify-center">
- <ConnectionQRCode
- gateway={hubInfo?.url ?? 'http://localhost:3000'}
- hubId={hubInfo?.hubId ?? 'unknown'}
- agentId={primaryAgent?.id}
- expirySeconds={300}
- size={180}
- />
+ <ConnectionQRCode
+ gateway={hubInfo?.url ?? 'http://localhost:3000'}
+ hubId={hubInfo?.hubId ?? 'unknown'}
+ agentId={primaryAgent?.id}
+ expirySeconds={30}
+ size={180}
+ />
</div>
{/* Right: Hub Status */}