profileShare

rasmusjy / roundtable

Read-only snapshot

No repository description.

main default branch 181 files Expires Sep 13, 2026, 9:06 AM

Commit

fix cli config parse and error page link

commit 644f48e

2 changed files with +9 and −4

Jump to a changed file
  1. scripts/debate-cli.ts +2 −2
  2. src/app/error.tsx +7 −2
modified scripts/debate-cli.ts +2 −2
@@ -9,7 +9,7 @@
9 9 * here against the deterministic mock client. Swap MockLlmClient for the
10 10 * OpenRouter client to run it for real.
11 11 */
12 -import { resolveDebateConfig } from '@/core/config';
12 +import { parseDebateConfig } from '@/core/config';
13 13 import { MockLlmClient } from '@/core/mock-client';
14 14 import { runDebate } from '@/core/orchestrator';
15 15 import { displayNameForModel } from '@/core/types';
@@ -18,7 +18,7 @@const question =
18 18 process.argv.slice(2).join(' ').trim() ||
19 19 'Is a modular monolith better than microservices for a four-person startup?';
20 20
21 -const config = resolveDebateConfig({
21 +const config = parseDebateConfig({
22 22 question,
23 23 models: ['openai/gpt-4o', 'anthropic/claude-3.5-sonnet', 'google/gemini-pro-1.5'],
24 24 chairmanModel: 'x-ai/grok-2-1212',
modified src/app/error.tsx +7 −2
@@ -19,8 +19,13 @@export default function Error({ error, reset }: { error: Error & { digest?: stri
19 19 <Button onClick={reset}>
20 20 <RotateCcw className="h-4 w-4" /> Try again
21 21 </Button>
22 - <Button variant="ghost" asChild>
23 - <a href="/">Back home</a>
22 + <Button
23 + variant="ghost"
24 + onClick={() => {
25 + window.location.href = '/';
26 + }}
27 + >
28 + Back home
24 29 </Button>
25 30 </div>
26 31 </div>