Skip to content

feat: Surfare chat errors#2164

Merged
tlgimenes merged 3 commits intomainfrom
chore/chat-errors
Jan 6, 2026
Merged

feat: Surfare chat errors#2164
tlgimenes merged 3 commits intomainfrom
chore/chat-errors

Conversation

@tlgimenes
Copy link
Copy Markdown
Contributor

@tlgimenes tlgimenes commented Jan 6, 2026

This PR surfaces chat errors/warnigns and info

…tems

- Added `findOrFirst` helper function to retrieve stored items or fallback to the first item in the array.
- Introduced `useStoredSelection` hook to manage selected models and gateways using local storage.
- Refactored `ChatPanelContent` to utilize the new hook for improved state management of selected items.
- Enhanced dynamic system prompt generation based on selected gateway.
…mponents

- Added error handling capabilities with `ChatErrorBanner` to display errors and provide options to fix them directly in the chat interface.
- Introduced `limits` property in model configuration to manage context window and output token limits.
- Updated `ChatBranchPreview` to utilize a reusable `ChatHighlight` component for better UI consistency.
- Refactored `ChatPanelContent` to include error handling and model limits in the request payload.
- Enhanced `usePersistedChat` hook to manage chat errors and provide a clear error state.
…r handling

- Introduced `ChatFinishReasonWarning` component to inform users about incomplete responses and provide options to continue.
- Updated `Chat` component to include the new warning feature.
- Enhanced `ChatPanelContent` and `AssistantChatPanelContent` to display the finish reason warning alongside error handling.
- Modified `usePersistedChat` hook to manage finish reason state, improving user experience during chat interactions.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 6, 2026

🧪 Benchmark

Should we run the MCP Gateway benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 6, 2026

Release Options

Should a new version be published when this PR is merged?

React with an emoji to vote on the release type:

Reaction Type Next Version
👍 Prerelease 1.1.2-alpha.1
🎉 Patch 1.1.2
❤️ Minor 1.2.0
🚀 Major 2.0.0

Current version: 1.1.1

Deployment

  • Deploy to production (triggers ArgoCD sync after Docker image is published)

@tlgimenes tlgimenes changed the title Chore/chat errors feat: Surfare chat errors Jan 6, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 8 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/mesh/src/web/components/chat/index.tsx">

<violation number="1" location="apps/mesh/src/web/components/chat/index.tsx:246">
P2: Icon-only button needs `aria-label` for screen reader accessibility. The `title` attribute alone is not reliably announced by assistive technologies.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread apps/mesh/src/web/components/chat/index.tsx
@tlgimenes tlgimenes merged commit 550b499 into main Jan 6, 2026
11 checks passed
@tlgimenes tlgimenes deleted the chore/chat-errors branch January 6, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant