Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
WalkthroughThe update removes the second and third arguments ("inbox" and an empty string) from all calls to the Changes
Sequence Diagram(s)sequenceDiagram
participant TestCase
participant AiChatPrompt
TestCase->>AiChatPrompt: AiChatPrompt("test-thread-id")
Note right of AiChatPrompt: (No longer receives "inbox" or "")
AiChatPrompt-->>TestCase: Returns prompt result
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
cubic analysis
No issues found across 1 file. Review in cubic
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (8)
apps/server/evals/ai-chat-basic.eval.ts (8)
127-129: Same duplication concern – see earlier comment
Nothing further; change is correct.
139-141: Same duplication concern – see earlier comment
151-153: Same duplication concern – see earlier comment
163-165: Same duplication concern – see earlier comment
175-177: Same duplication concern – see earlier comment
187-189: Same duplication concern – see earlier comment
199-201: Same duplication concern – see earlier comment
211-213: Same duplication concern – see earlier comment
🧹 Nitpick comments (1)
apps/server/evals/ai-chat-basic.eval.ts (1)
101-105: Removed extra args – good, but extract the hard-coded thread idEliminating the stale
"inbox", ""parameters aligns with the updatedAiChatPromptsignature – nice catch.
However,"test-thread-id"is now duplicated nine times below. Consider a small constant to avoid drift and make the intent explicit:@@ line 12 @@ const baseModel = openai("gpt-4o-mini"); +// Re-use across all AI-chat evals +const TEST_THREAD_ID = "test-thread-id" as const; + @@ - system: AiChatPrompt("test-thread-id"), + system: AiChatPrompt(TEST_THREAD_ID),
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/server/evals/ai-chat-basic.eval.ts(9 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: retrogtx
PR: Mail-0/Zero#1354
File: apps/mail/components/ui/prompts-dialog.tsx:148-159
Timestamp: 2025-06-20T05:34:41.297Z
Learning: In the prompt management system, users should be allowed to save empty prompts as this gives them the choice to disable certain AI functionality or start fresh. Validation should not prevent empty prompts from being saved.
apps/server/evals/ai-chat-basic.eval.ts (1)
Learnt from: retrogtx
PR: Mail-0/Zero#1354
File: apps/mail/components/ui/prompts-dialog.tsx:148-159
Timestamp: 2025-06-20T05:34:41.297Z
Learning: In the prompt management system, users should be allowed to save empty prompts as this gives them the choice to disable certain AI functionality or start fresh. Validation should not prevent empty prompts from being saved.
⏰ 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: Analyze (javascript-typescript)
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
apps/server/src/pipelines.effect.ts (1)
21-24: Remove unused imports to fix pipeline failures.The pipeline failures indicate that
generateAutomaticDraft,shouldGenerateDraft, andanalyzeEmailIntentare imported but never used, as they were part of the commented-out draft generation code.Apply this diff to remove the unused imports:
-import { - generateAutomaticDraft, - shouldGenerateDraft, - analyzeEmailIntent, -} from './thread-workflow-utils';This will resolve the ESLint warnings and clean up the import statements.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/server/src/pipelines.effect.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: retrogtx
PR: Mail-0/Zero#1354
File: apps/mail/components/ui/prompts-dialog.tsx:148-159
Timestamp: 2025-06-20T05:34:41.297Z
Learning: In the prompt management system, users should be allowed to save empty prompts as this gives them the choice to disable certain AI functionality or start fresh. Validation should not prevent empty prompts from being saved.
🪛 GitHub Actions: autofix.ci
apps/server/src/pipelines.effect.ts
[warning] 21-21: ESLint (no-unused-vars): Identifier 'generateAutomaticDraft' is imported but never used. Consider removing this import.
[warning] 22-22: ESLint (no-unused-vars): Identifier 'shouldGenerateDraft' is imported but never used. Consider removing this import.
[warning] 23-23: ESLint (no-unused-vars): Identifier 'analyzeEmailIntent' is imported but never used. Consider removing this import.
⏰ 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: Analyze (javascript-typescript)
|
looks good, waiting for @MrgSub |
fixes eval check script error due to extra arguments from past code.
Summary by cubic
Fixed eval script errors by removing extra arguments from AiChatPrompt calls in all eval tasks.
Summary by CodeRabbit