desktop: make chat work in SKIP_ENV_VALIDATION mode#2967
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis change introduces a desktop dev-chat feature that allows testing chat and streaming functionality without cloud API dependencies when environment validation is disabled. It adds a new dev-chat helper module, integrates dev-mode checks throughout chat components and session management, and enables local fallback behavior for models, file uploads, and sessions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
🚀 Preview Deployment🔗 Preview Links
Preview updates automatically with new commits |
Summary
Testing
Summary by cubic
Enables desktop chat to run offline in
SKIP_ENV_VALIDATIONmode. In this mode, chat boots locally, uses local model options, and avoids cloud APIs so you can test chat/streaming without signing in.renderer/lib/dev-chathelpers: dev-mode detection,MOCK_ORG_IDresolution, session readiness, and fallback model options.chat.getModelsfetch.apps/desktop/BUILDING.mdto note local-only chat bootstrap in this mode.Written for commit 9bcb5e6. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
New Features
Documentation