Skip to content

Conversation

@tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Jan 2, 2026

What is this contribution about?

Describe your changes and why they're needed.

Screenshots/Demonstration

Add screenshots or a Loom video if your changes affect the UI.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes

Summary by cubic

Adds auto-refresh to chat and collection lists, and lets users pin the current view to the sidebar. Also simplifies message rendering and switches sidebar pins to use URLs instead of connection IDs.

  • New Features

    • Auto-refresh chat threads using @ai-sdk/react useChat, and auto-update connection collections after chat tool calls.
    • Pin current view to the sidebar; added Pin button to Assistant, Gateway, Connection tabs (Collections, Prompts, Resources, Settings), Prompt detail, Tool detail, and Workflow editor.
  • Refactors

    • SidebarItem and schema now use URL-based pins; removed connectionId.
    • Streamlined assistant message rendering; MessageTextPart now accepts TextUIPart and supports tool/dynamic-tool/reasoning parts.
    • Reworked collection query keys to include org scope and unified invalidation.
    • Minor UI polish with accessible icon buttons and tooltips.

Written for commit 7c4a6af. Summary will update on new commits.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 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
Contributor

github-actions bot commented Jan 2, 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.0.11-alpha.1
🎉 Patch 1.0.11
❤️ Minor 1.1.0
🚀 Major 2.0.0

Current version: 1.0.10

Deployment

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

Copy link
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.

2 issues found across 17 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/details/assistant/index.tsx">

<violation number="1" location="apps/mesh/src/web/components/details/assistant/index.tsx:548">
P2: Remove the `title` attribute since `TooltipContent` already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.</violation>

<violation number="2" location="apps/mesh/src/web/components/details/assistant/index.tsx:566">
P2: Remove the `title` attribute since `TooltipContent` already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.</violation>
</file>

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

<Button
type="button"
onClick={() => setMode("edit")}
title="Edit"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 2, 2026

Choose a reason for hiding this comment

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

P2: Remove the title attribute since TooltipContent already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/mesh/src/web/components/details/assistant/index.tsx, line 566:

<comment>Remove the `title` attribute since `TooltipContent` already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.</comment>

<file context>
@@ -523,30 +532,49 @@ function AssistantDetailContent({
+                      &lt;Button
+                        type=&quot;button&quot;
+                        onClick={() =&gt; setMode(&quot;edit&quot;)}
+                        title=&quot;Edit&quot;
+                        aria-label=&quot;Edit&quot;
+                        variant=&quot;outline&quot;
</file context>

✅ Addressed in d7665a4

<Button
type="button"
onClick={() => setActiveThreadId(crypto.randomUUID())}
title="New thread"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 2, 2026

Choose a reason for hiding this comment

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

P2: Remove the title attribute since TooltipContent already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/mesh/src/web/components/details/assistant/index.tsx, line 548:

<comment>Remove the `title` attribute since `TooltipContent` already provides the tooltip. Having both causes duplicate tooltips (native browser + custom) on hover.</comment>

<file context>
@@ -523,30 +532,49 @@ function AssistantDetailContent({
+                      &lt;Button
+                        type=&quot;button&quot;
+                        onClick={() =&gt; setActiveThreadId(crypto.randomUUID())}
+                        title=&quot;New thread&quot;
+                        aria-label=&quot;New thread&quot;
+                        variant=&quot;outline&quot;
</file context>

✅ Addressed in d7665a4

@tlgimenes tlgimenes force-pushed the feat/chat-autorefresh branch from d7665a4 to 32e0f48 Compare January 2, 2026 17:49
… logic. Updated imports and adjusted MessageTextPart to accept a part prop instead of text. Enhanced MessagePart function for better clarity and maintainability.
…ionId optional for backward compatibility. Updated PinToSidebarButton to use URL instead of connectionId across various components, enhancing consistency and usability.
…proved UI consistency. Updated button titles and styles, integrated ViewLayout in WorkflowDetails, and enhanced WorkflowEditorHeader with new components and layout adjustments.
…, and WorkflowEditorHeader components by integrating tooltips for action buttons. Updated button imports and styles for improved accessibility and user experience.
…improve type usage. Introduced useInvalidateCollectionsOnToolCall hook for automatic query invalidation during tool calls in chat. Updated useCollectionItem and useCollectionList to include organization context in query keys, ensuring better data management and UI responsiveness.
…y and enhance data handling. Updated onUpdate method to accept Partial<Workflow> for better type management. Removed unnecessary imports and console logs, and integrated EmptyState for improved user feedback when workflows are not found.
@tlgimenes tlgimenes force-pushed the feat/chat-autorefresh branch from 8c99b45 to c0828a1 Compare January 2, 2026 21:07
@tlgimenes
Copy link
Contributor Author

@cubic-dev-ai

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Jan 2, 2026

@cubic-dev-ai

@tlgimenes I have started the AI code review. It will take a few minutes to complete.

Copy link
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 26 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/details/workflow/index.tsx">

<violation number="1" location="apps/mesh/src/web/components/details/workflow/index.tsx:35">
P2: The `onUpdate` prop is declared as required in `WorkflowDetailsViewProps` but is never used in the component implementation. Either remove it from the interface or use the prop instead of the locally created `update` function.</violation>
</file>

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

@tlgimenes tlgimenes merged commit 5f87a13 into main Jan 2, 2026
5 checks passed
@tlgimenes tlgimenes deleted the feat/chat-autorefresh branch January 2, 2026 21:25
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.

2 participants