From 92d730e5fdad931f0ec4b9c899148d4fe0f4ca2a Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Mon, 6 Apr 2026 10:05:35 -0500 Subject: [PATCH] fix dashboard build (#1167) --- .github/workflows/ci.yml | 25 +++++++++++++++++++ .../dashboard/src/components/chat-panel.tsx | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84bd228..b45a617 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,31 @@ jobs: - name: Run Rust tests run: cargo test --profile ci --manifest-path cli/Cargo.toml + dashboard: + name: Dashboard + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Install dependencies + run: pnpm install --filter dashboard + working-directory: packages/dashboard + + - name: Build dashboard + run: pnpm build + working-directory: packages/dashboard + rust-cross: name: Rust (${{ matrix.os }} - ${{ matrix.target }}) if: github.event_name != 'pull_request' diff --git a/packages/dashboard/src/components/chat-panel.tsx b/packages/dashboard/src/components/chat-panel.tsx index 6eedf6e..0a4a98e 100644 --- a/packages/dashboard/src/components/chat-panel.tsx +++ b/packages/dashboard/src/components/chat-panel.tsx @@ -342,7 +342,7 @@ export function ChatPanel() { ).current; const { messages, sendMessage, stop, status, setMessages, error } = useChat({ - chatId, + id: chatId, transport, onError: () => setErrorDismissed(false), });