Skip to content

feat(desktop): add chat panel UI - #316

Merged
Kitenite merged 11 commits into
mainfrom
feat/chat-ui
Jan 3, 2026
Merged

Kitenite merged 11 commits into
mainfrom
feat/chat-ui

Conversation

@Badaboom1995

@Badaboom1995 Badaboom1995 commented Dec 10, 2025 •

Copy link
Copy Markdown
Contributor
  • Add ChatPanel component with input, messages, and toolbar
  • Add ChatPanelResizable wrapper with resizable panel
  • Add ChatInput component with model selector and action buttons
  • Add chat-panel-state Zustand store for panel visibility
  • Add chat toggle button to TabPane toolbar

🤖 Generated with Claude Code

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

  • Bug Fixes

    • Enhanced sidebar toggle button accessibility with clearer state indicators.
  • Style

    • Adjusted spacing between top bar controls for improved visual layout.

✏️ Tip: You can customize this high-level summary in your review settings.

- Add ChatPanel component with input, messages, and toolbar
- Add ChatPanelResizable wrapper with resizable panel
- Add ChatInput component with model selector and action buttons
- Add chat-panel-state Zustand store for panel visibility
- Add chat toggle button to TabPane toolbar

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 10, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
website Ready Ready Preview Comment Dec 10, 2025 11:50pm

@coderabbitai

coderabbitai Bot commented Dec 10, 2025 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@Kitenite has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 38 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 05055ab and e34da08.

📒 Files selected for processing (10)
  • apps/desktop/docs/CHAT_PANEL_FEATURE.md
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
📝 Walkthrough

Walkthrough

Two UI adjustments to the TopBar component: the SidebarControl button's aria-label was made conditional to reflect sidebar state (showing "Hide sidebar" or "Show sidebar"), and the TopBar's inner container gap class was reduced from gap-4 to gap-1 for tighter horizontal spacing between flex items.

Changes

Cohort / File(s) Summary
Accessibility & Layout Refinements
apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx, apps/desktop/src/renderer/screens/main/components/TopBar/index.tsx
SidebarControl button aria-label changed from static "Toggle sidebar" to conditional display based on sidebar state ("Hide sidebar" or "Show sidebar"). TopBar container gap reduced from gap-4 to gap-1 for reduced horizontal spacing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • New desktop UI #102: Main PR tweaks TopBar/Sidebar UI with aria label and spacing adjustments in the same component files.

Poem

🐰 A sidebar that whispers its state so clear,
"Hide me" or "Show me"—the label draws near,
And gaps grow snugger, more space to share,
Accessibility hops with the utmost care! ✨

Pre-merge checks and finishing touches

❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title 'feat(desktop): add chat panel UI' is directly related to the PR objectives of adding ChatPanel components, but conflicts with the actual raw_summary which only shows sidebar control and spacing changes. Update the title to accurately reflect the actual changes shown in the raw_summary, such as 'fix(desktop): improve sidebar control accessibility and TopBar spacing' or clarify what chat panel UI changes were actually made.
Description check ⚠️ Warning The description contains required template sections but most are incomplete: Description is empty, Related Issues is empty, Testing is empty, Screenshots is empty, and Additional Notes is empty. Only Type of Change is filled (New feature checked). Complete the empty template sections: add a detailed description, link related issues, describe testing performed, add screenshots if applicable, and include any relevant additional context.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🧹 Nitpick comments (3)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx (1)

139-149: Remove trailing whitespace on line 149.

There's an empty line with whitespace between the chat toggle button and the close button. Consider removing it for cleaner formatting.

 					</button>
-					
 					<button
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1)

39-72: Placeholder buttons lack functionality and accessibility attributes.

The model selector, Auto dropdown, and action buttons (at-sign, globe, image) have no onClick handlers. This is acceptable for initial UI scaffolding, but consider adding aria-label attributes for accessibility and TODO comments to track implementation.

 <button
   type="button"
+  aria-label="Select model"
   className="flex items-center gap-1 px-2 py-1 rounded-md bg-muted text-muted-foreground hover:text-foreground transition-colors"
 >
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1)

21-23: Inefficient array operations on every render.

Creating reversed copies with [...messages].reverse() runs on every render, even when messages haven't changed. For a chat with many messages, this could impact performance.

Consider using useMemo:

+import { useState, useMemo } from "react";
 
-const lastUserMessage = [...messages].reverse().find((m) => m.role === "user");
-const lastAssistantMessage = [...messages].reverse().find((m) => m.role === "assistant");
+const lastUserMessage = useMemo(
+  () => [...messages].reverse().find((m) => m.role === "user"),
+  [messages]
+);
+const lastAssistantMessage = useMemo(
+  () => [...messages].reverse().find((m) => m.role === "assistant"),
+  [messages]
+);

Or iterate once from the end:

const lastUserMessage = useMemo(() => {
  for (let i = messages.length - 1; i >= 0; i--) {
    if (messages[i].role === "user") return messages[i];
  }
  return undefined;
}, [messages]);
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 26c3650 and 7ca90fa.

📒 Files selected for processing (10)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx (3 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx (2 hunks)
  • apps/desktop/src/renderer/stores/chat-panel-state.ts (1 hunks)
  • apps/desktop/src/renderer/stores/index.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
apps/desktop/**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

For Electron interprocess communication, ALWAYS use tRPC as defined in src/lib/trpc

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/stores/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
apps/desktop/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

apps/desktop/**/*.{ts,tsx}: Please use alias as defined in tsconfig.json when possible
Prefer zustand for state management if it makes sense. Do not use effect unless absolutely necessary

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/stores/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Maintain type safety and avoid using any unless absolutely necessary in TypeScript code

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/stores/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
apps/desktop/src/renderer/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Never import Node.js modules in renderer process or shared code - only in src/main/

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/stores/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
**/components/**/[A-Z]*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Use one folder per component with structure ComponentName/ComponentName.tsx + index.ts barrel export

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
🧠 Learnings (7)
📚 Learning: 2025-12-08T23:32:32.232Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-08T23:32:32.232Z
Learning: Applies to apps/desktop/src/main/lib/*{workspace,worktree}-*.ts : Use git worktree-based workspace management in the desktop app through workspace-manager.ts and worktree-manager.ts

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts
📚 Learning: 2025-11-24T21:33:13.267Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: apps/desktop/AGENTS.md:0-0
Timestamp: 2025-11-24T21:33:13.267Z
Learning: Applies to apps/desktop/**/*.{ts,tsx} : Please use alias as defined in `tsconfig.json` when possible

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
📚 Learning: 2025-11-24T21:33:13.267Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: apps/desktop/AGENTS.md:0-0
Timestamp: 2025-11-24T21:33:13.267Z
Learning: Applies to apps/desktop/**/*.{ts,tsx} : Prefer zustand for state management if it makes sense. Do not use effect unless absolutely necessary

Applied to files:

  • apps/desktop/src/renderer/stores/index.ts
  • apps/desktop/src/renderer/stores/chat-panel-state.ts
📚 Learning: 2025-12-08T23:32:32.232Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-08T23:32:32.232Z
Learning: Applies to apps/desktop/src/renderer/**/*.{ts,tsx} : Never import Node.js modules in renderer process or shared code - only in src/main/

Applied to files:

  • apps/desktop/src/renderer/stores/index.ts
📚 Learning: 2025-12-08T23:32:32.232Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-08T23:32:32.232Z
Learning: Applies to apps/desktop/src/lib/**/*.{ts,tsx} : Never import Node.js modules like node:fs, node:path, node:os in src/lib/electron-router-dom.ts or similar shared code

Applied to files:

  • apps/desktop/src/renderer/stores/index.ts
📚 Learning: 2025-12-08T23:32:32.232Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-08T23:32:32.232Z
Learning: Use React + TailwindCSS v4 + shadcn/ui for UI components

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
📚 Learning: 2025-12-08T23:32:32.232Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-08T23:32:32.232Z
Learning: Applies to src/components/{ui,ai-elements,react-flow}/**/*.tsx : Use kebab-case single files for shadcn/ui components in src/components/ui/, src/components/ai-elements, and src/components/react-flow/

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
🧬 Code graph analysis (4)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (2)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts (1)
  • ChatPanel (1-1)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1)
  • ChatInput (13-94)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx (3)
packages/ui/src/components/resizable.tsx (2)
  • ResizablePanelGroup (54-54)
  • ResizablePanel (54-54)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx (1)
  • ChatPanelResizable (8-28)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts (1)
  • ChatPanelResizable (2-2)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx (1)
apps/desktop/src/renderer/stores/chat-panel-state.ts (1)
  • useChatPanelStore (14-52)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts (1)
  • ChatInput (1-1)
🔇 Additional comments (14)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/index.ts (1)

1-1: LGTM!

Correct barrel export following the project's component folder structure convention.

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/index.ts (1)

1-1: LGTM!

Correct barrel export following the component folder structure convention.

apps/desktop/src/renderer/stores/index.ts (1)

8-8: LGTM!

The new chat-panel-state export follows the existing pattern and maintains alphabetical ordering. As per coding guidelines, Zustand is the preferred state management solution.

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx (3)

3-3: LGTM!

Appropriate icon import for the chat toggle button.


7-7: LGTM!

Correctly uses the tsconfig alias renderer/stores as per coding guidelines.


115-116: LGTM!

Clean destructuring with clear aliasing (isOpen → isChatOpen, togglePanel → toggleChatPanel) improves readability in the context of this component.

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/index.tsx (2)

1-1: LGTM!

Correct imports from the @superset/ui/resizable package.


5-5: LGTM!

Clean import of ChatPanelResizable using relative path.

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/index.ts (1)

1-2: LGTM!

Proper barrel exports aggregating the ChatPanel and ChatPanelResizable components for clean imports from the parent module.

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx (3)

1-6: LGTM!

Correct imports using the tsconfig alias for the store and appropriate relative import for the sibling ChatPanel component.


8-13: LGTM!

Clean early return pattern when the panel is closed, preventing unnecessary DOM rendering.


15-27: [rewritten comment]
[classification tag]

apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1)

1-4: LGTM on imports structure.

The imports are well-organized. Note that RiStopFill can be removed if the duplicate stop button (lines 82-89) is eliminated.

apps/desktop/src/renderer/stores/chat-panel-state.ts (1)

14-52: Well-designed Zustand store following project guidelines.

The store correctly uses Zustand with devtools and persist middleware. The logic for togglePanel, setOpen, and setSize handles edge cases like restoring default size when opening from zero. The derived isOpen state from size > 0 in setSize enables natural resize-to-close behavior.

Based on learnings, this aligns with the project preference for Zustand state management.

Comment on lines +73 to +79
{isLoading ? (
<button
type="button"
className="group relative size-5 rounded-full bg-accent-foreground/80 flex items-center justify-center hover:bg-muted transition-colors shrink-0"
>
<RiStopFill className="size-3 transition-opacity" color="#000" />
</button>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Stop button is non-functional.

The stop button renders when isLoading is true but has no onClick handler, so users cannot actually cancel the operation. Consider adding an onStop callback prop or disabling the button until the feature is implemented.

 interface ChatInputProps {
   value: string;
   onChange: (value: string) => void;
   onSubmit: () => void;
   placeholder: string;
   isLoading?: boolean;
+  onStop?: () => void;
 }

Then wire it up:

 <button
   type="button"
+  onClick={onStop}
+  disabled={!onStop}
   className="group relative size-5 rounded-full bg-accent-foreground/80 flex items-center justify-center hover:bg-muted transition-colors shrink-0"
 >

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
around lines 73-79, the Stop button rendered when isLoading is true has no
onClick handler so it cannot cancel operations; add an onStop callback prop to
the ChatInput component (prop name e.g. onStop: () => void), pass the callback
from parent where cancellation logic exists, and wire it to the button as its
onClick handler; if cancellation is not yet implemented, disable the button or
call a noop and add a TODO comment linking to the cancellation task.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add useEffect cleanup for setTimeout in ChatPanel
- Add explicit id to ResizablePanel for stable layout
- Remove unused RiStopFill import
- Fix formatting issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1)

29-34: Consider memoizing derived state to avoid repeated array operations.

The spread and reverse operations create new arrays on every render. While this works fine for small message lists, you could optimize with useMemo:

+	const lastUserMessage = useMemo(
+		() => [...messages].reverse().find((m) => m.role === "user"),
+		[messages]
+	);
+	const lastAssistantMessage = useMemo(
+		() => [...messages].reverse().find((m) => m.role === "assistant"),
+		[messages]
+	);
-	const lastUserMessage = [...messages]
-		.reverse()
-		.find((m) => m.role === "user");
-	const lastAssistantMessage = [...messages]
-		.reverse()
-		.find((m) => m.role === "assistant");
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be5616a and 5da5b9f.

📒 Files selected for processing (4)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx (1 hunks)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanelResizable/ChatPanelResizable.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx
🧰 Additional context used
📓 Path-based instructions (5)
apps/desktop/**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

For Electron interprocess communication, ALWAYS use tRPC as defined in src/lib/trpc

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
apps/desktop/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

apps/desktop/**/*.{ts,tsx}: Please use alias as defined in tsconfig.json when possible
Prefer zustand for state management if it makes sense. Do not use effect unless absolutely necessary

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Maintain type safety and avoid using any unless absolutely necessary in TypeScript code

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
**/components/**/[A-Z]*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Use one folder per component with structure ComponentName/ComponentName.tsx + index.ts barrel export

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
apps/desktop/src/renderer/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Never import Node.js modules in renderer process or shared code - only in src/main/

Files:

  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx
🧬 Code graph analysis (1)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (1)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatInput/ChatInput.tsx (1)
  • ChatInput (13-94)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build
🔇 Additional comments (5)
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/ChatPanel/ChatPanel.tsx (5)

1-3: LGTM!

Imports are clean and appropriate for a renderer component.


5-13: LGTM!

Type definitions are clear and maintain type safety.


21-27: LGTM!

The cleanup logic properly addresses the previous review comment about potential state updates on unmounted components.


62-73: LGTM!

Header implementation is clean with proper close button wiring.


75-116: LGTM!

The render logic cleanly handles both empty and conversation states. The duplicate stop button mentioned in previous reviews has been successfully removed.

Comment on lines +37 to +60
const handleSubmit = () => {
if (!input.trim() || isLoading) return;

const userMessage: Message = {
id: crypto.randomUUID(),
role: "user",
content: input.trim(),
};

setMessages((prev) => [...prev, userMessage]);
setInput("");
setIsLoading(true);

// Mock assistant response - TODO: replace with actual AI integration
timeoutRef.current = setTimeout(() => {
const assistantMessage: Message = {
id: crypto.randomUUID(),
role: "assistant",
content: "This is a placeholder response. AI integration coming soon.",
};
setMessages((prev) => [...prev, assistantMessage]);
setIsLoading(false);
}, 1500);
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Add stop handler for the loading state.

The stop button rendered by ChatInput (when isLoading={true}) has no onClick handler, so it's non-functional. Users see a clickable stop button but clicking it does nothing.

Add a stop handler and pass it to ChatInput:

+	const handleStop = () => {
+		if (timeoutRef.current) {
+			clearTimeout(timeoutRef.current);
+			timeoutRef.current = null;
+		}
+		setIsLoading(false);
+	};
+
 	const handleSubmit = () => {
 		if (!input.trim() || isLoading) return;

Then update ChatInput to accept and use onStop:

// In ChatInput component interface
interface ChatInputProps {
	// ... existing props
	onStop?: () => void;
}

// In ChatInput render, update the stop button:
<button
	type="button"
	onClick={onStop}
	// ... rest of props
>

And pass it when rendering:

 <ChatInput
 	value={input}
 	onChange={setInput}
 	onSubmit={handleSubmit}
+	onStop={handleStop}
 	placeholder="Type a message..."
 	isLoading={isLoading}
 />

Kitenite and others added 2 commits December 26, 2025 19:41
Resolved conflicts:
- TabPane.tsx: Merged chat toggle with tooltips and DirectoryNavigator
- TabsContent/index.tsx: Kept chat panel integration
- stores/index.ts: Exported all stores (chat-panel, ports, ringtone)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx (1)

1-40: Filename no longer matches exported component name.

The file SidebarControl.tsx now exports ChatPanelControl, creating a mismatch between the filename and its contents. Additionally, this implementation duplicates the code in ChatPanelControl/ChatPanelControl.tsx with only a minor difference in the tooltip text (line 30: "Toggle chat sidebar" vs "Toggle chat").

This issue was detailed in the review of ChatPanelControl/ChatPanelControl.tsx. Please consolidate these two files to eliminate the duplication.

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5da5b9f and 50b8ca4.

📒 Files selected for processing (3)
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
🧰 Additional context used
📓 Path-based instructions (9)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Avoid using any type in TypeScript - maintain type safety unless absolutely necessary

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Run Biome for formatting, linting, import organization, and safe fixes at the root level using bun run lint:fix

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
**/{components,features}/**/[!.]*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Organize project structure with one folder per component: ComponentName/ComponentName.tsx with index.ts barrel export

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
**/{components,features}/**/*.{ts,tsx,test.ts,test.tsx,stories.tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Co-locate component dependencies (utils, hooks, constants, config, tests, stories) next to the file using them

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
apps/desktop/src/renderer/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Never import Node.js modules in renderer process or shared code - use only in main process (src/main/)

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
apps/desktop/src/{main,renderer,preload}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use type-safe IPC communication - define channel types in apps/desktop/src/shared/ipc-channels.ts before implementing handlers

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
**/*.{tsx,css}

📄 CodeRabbit inference engine (AGENTS.md)

Use React + TailwindCSS v4 + shadcn/ui for UI development

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
**/{components,features}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

**/{components,features}/**/*.tsx: Nest components in parent's components/ folder if used only once, promote to highest shared parent's components/ if used 2+ times
Use one component per file - do not combine multiple components in a single file

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
apps/desktop/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

apps/desktop/**/*.{ts,tsx}: For Electron interprocess communication, ALWAYS use tRPC as defined in src/lib/trpc
Use alias as defined in tsconfig.json when possible
Prefer zustand for state management if it makes sense. Do not use effect unless absolutely necessary.
For tRPC subscriptions with trpc-electron, ALWAYS use the observable pattern from @trpc/server/observable instead of async generators, as the library explicitly checks isObservable(result) and throws an error otherwise

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
🧠 Learnings (1)
📚 Learning: 2025-12-18T23:19:10.415Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-18T23:19:10.415Z
Learning: Applies to apps/desktop/src/{main,renderer,preload}/**/*.{ts,tsx} : Use type-safe IPC communication - define channel types in apps/desktop/src/shared/ipc-channels.ts before implementing handlers

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts
🧬 Code graph analysis (1)
apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx (3)
apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx (1)
  • ChatPanelControl (8-40)
apps/desktop/src/renderer/stores/chat-panel-state.ts (1)
  • useChatPanelStore (14-52)
apps/desktop/src/shared/hotkeys.ts (1)
  • HOTKEYS (65-222)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build
🔇 Additional comments (2)
apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/index.ts (1)

1-1: LGTM! Barrel export follows project conventions.

The barrel export is properly structured according to the coding guideline for component organization.

apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx (1)

1-6: LGTM! Imports are well-organized.

All imports properly use path aliases and follow the project structure guidelines. No Node.js modules in renderer process.

Comment on lines +8 to +40
export function ChatPanelControl() {
const { isOpen, togglePanel } = useChatPanelStore();

return (
<Tooltip>
<TooltipTrigger asChild>
<Button
variant="ghost"
size="icon"
onClick={togglePanel}
aria-label={isOpen ? "Hide chat" : "Show chat"}
className="no-drag"
>
{isOpen ? (
<LuPanelRightClose className="size-4" />
) : (
<LuPanelRight className="size-4" />
)}
</Button>
</TooltipTrigger>
<TooltipContent side="bottom" showArrow={false}>
<span className="flex items-center gap-2">
Toggle chat
<KbdGroup>
{HOTKEYS.TOGGLE_CHAT_PANEL.display.map((key) => (
<Kbd key={key}>{key}</Kbd>
))}
</KbdGroup>
</span>
</TooltipContent>
</Tooltip>
);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for SidebarControl imports and usages
echo "=== Searching for SidebarControl imports ==="
rg -n --type=ts --type=tsx "import.*SidebarControl" -C2

echo -e "\n=== Searching for SidebarControl component usage ==="
rg -n --type=ts --type=tsx "<SidebarControl" -C2

echo -e "\n=== Searching for from.*SidebarControl ==="
rg -n --type=ts --type=tsx "from.*SidebarControl" -C2

echo -e "\n=== Locating SidebarControl.tsx file ==="
find . -name "SidebarControl.tsx" -type f

Repository: superset-sh/superset

Length of output: 427


🏁 Script executed:

#!/bin/bash
# Read both files to compare implementations
echo "=== SidebarControl.tsx content ==="
cat -n ./apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx

echo -e "\n=== ChatPanelControl.tsx content ==="
cat -n ./apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx

Repository: superset-sh/superset

Length of output: 2908


Delete orphaned file SidebarControl.tsx.

SidebarControl.tsx is dead code that duplicates ChatPanelControl.tsx exactly, except for differing tooltip text ("Toggle chat sidebar" vs "Toggle chat"). The file is not imported anywhere in the codebase and serves no purpose. Remove it entirely—it creates confusion through its misleading filename and maintains unnecessary duplication.

If ChatPanelControl's tooltip text needs adjustment, decide on a single standard ("Toggle chat" or "Toggle chat sidebar") and apply it consistently in the kept version.

🤖 Prompt for AI Agents
In
apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
lines 8-40: there is a duplicate component file SidebarControl.tsx elsewhere
that is orphaned and duplicates ChatPanelControl with only the tooltip text
differing; delete the redundant SidebarControl.tsx file from the repository,
update ChatPanelControl.tsx to use the chosen consistent tooltip text (pick
either "Toggle chat" or "Toggle chat sidebar") across the project, and verify no
imports reference SidebarControl.tsx (remove or update any if found) so only
ChatPanelControl remains as the single implementation.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e8918b9 and cf05da7.

📒 Files selected for processing (2)
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/desktop/src/renderer/screens/main/components/TopBar/ChatPanelControl/ChatPanelControl.tsx
🧰 Additional context used
📓 Path-based instructions (6)
apps/desktop/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)

apps/desktop/**/*.{ts,tsx}: For Electron interprocess communication, ALWAYS use tRPC as defined in src/lib/trpc
Use alias as defined in tsconfig.json when possible
Prefer zustand for state management if it makes sense. Do not use effect unless absolutely necessary.
For tRPC subscriptions with trpc-electron, ALWAYS use the observable pattern from @trpc/server/observable instead of async generators, as the library explicitly checks isObservable(result) and throws an error otherwise

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Use object parameters for functions with 2+ parameters instead of positional arguments
Functions with 2+ parameters should accept a single params object with named properties for self-documentation and extensibility
Use prefixed console logging with context pattern: [domain/operation] message
Extract magic numbers and hardcoded values to named constants at module top
Use lookup objects/maps instead of repeated if (type === ...) conditionals
Avoid using any type - maintain type safety in TypeScript code
Never swallow errors silently - at minimum log them with context
Import from concrete files directly when possible - avoid barrel file abuse that creates circular dependencies
Avoid deep nesting (4+ levels) - use early returns, extract functions, and invert conditions
Use named properties in options objects instead of boolean parameters to avoid boolean blindness

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
apps/desktop/src/renderer/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Never import Node.js modules (fs, path, os, net) in renderer process or shared code - they are externalized for browser compatibility

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

One component per file - do not create multi-component files

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
apps/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use Drizzle ORM for all database operations - never use raw SQL

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use Biome for formatting and linting - run at root level with bun run lint:fix or biome check --write

Files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
🧠 Learnings (1)
📚 Learning: 2026-01-02T06:50:28.662Z
Learnt from: CR
Repo: superset-sh/superset PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-02T06:50:28.662Z
Learning: Applies to apps/*/src/components/{ui,ai-elements,react-flow}/*.tsx : Use kebab-case single files for shadcn/ui components (e.g., button.tsx, base-node.tsx) in src/components/ui/, src/components/ai-elements, and src/components/react-flow/

Applied to files:

  • apps/desktop/src/renderer/screens/main/components/TopBar/SidebarControl.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build

@Kitenite
Kitenite merged commit 6a803a1 into main Jan 3, 2026
5 checks passed
@Kitenite
Kitenite deleted the feat/chat-ui branch January 3, 2026 20:00
@github-actions

github-actions Bot commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ⚠️ Neon database branch
  • ⚠️ Electric Fly.io app

Thank you for your contribution! 🎉

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