* fix nanobanana
* add types
* 完成 fetch sse 和 google ai 侧转换
* thinking
* ui for part render
* support image in thinking
* fix issue
* support convert content part
* support nano banana pro image generation
* fix tests
* fix tests
* ✨ feat: refactor TopicItem to use Link for navigation and improve URL handling
* 🐛 fix: remove enabled property from Gemini 3 Pro model definition
* ✨ feat: add link to session chat in pinned agent list
* fix(operation): isolate loading state to current active topic
- Modified isMainWindowAgentRuntimeRunning to only check operations in current active topic
- Prevents loading state from other topics affecting the send button
- Added comprehensive test case to verify topic isolation
- Fixes issue where switching topics would still show loading state from previous topic
* test: fix isMainWindowAgentRuntimeRunning tests to set active context
- Added activeId and activeTopicId setup in test cases
- Ensured operation context matches active context for proper filtering
- Fixed tests to align with new getCurrentContextOperations-based implementation
* fix: change activeTopicId from null to undefined in tests
- Fixed TypeScript type error where null is not assignable to string | undefined
- Changed all activeTopicId: null to activeTopicId: undefined
* fix: check if operation's message is in current displayed messages
- Changed from using getCurrentContextOperations to checking message presence
- Prevents loading state from showing when switching back to default topic
- Operation's context topicId is captured at creation time and doesn't update
- Now checks if operation's message is in activeDisplayMessages instead
* refactor
* refactor to fix
* try to fix stylelint ci issue
* fix tests
* fix tests
Add comprehensive unit tests for the core parsing phases:
- indexing.ts: Phase 1 helper map building
- structuring.ts: Phase 2 tree construction
Tests cover:
- messageMap, childrenMap, threadMap, messageGroupMap building
- Tree building with branches, threads, and edge cases
- Performance testing for large datasets
- Integration scenarios
32 new test cases added, all passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
* use operation
* add integration tests
* refactor context to operation id
* refactor to support cancel ai streaming
* refactor to support to cancel tools calling
* add finish type
* 初步实现 agent runtime 的中断逻辑
* refactor agent runtime config
* debug cancel
* 完成 tool operation 调用重构
* add tests
* fix tests
* fix tests
* refactor state to isAgentRuntimeRunning
* fix loading state
* add more tests
* ✅ test: add test for human_abort extractAbortInfo path
- Add test for unified abort check with human_abort phase
- Covers extractAbortInfo lines 140-145
- Improves GeneralChatAgent coverage to 100% statements
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix
* auto clean up
* 🐛 fix: prevent showing success status when tool execution is cancelled
- Add abort check after tool execution completes
- Skip completion and success logging if operation was cancelled during execution
- Prevents race condition where success message shows before abort status
- Add test for tool execution cancelled during execution scenario
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix thread send
---------
Co-authored-by: Claude <noreply@anthropic.com>
Added comprehensive unit tests for database query builder utilities in src/utils/genWhere.ts covering:
- genWhere: SQL condition combination logic
- genStartDateWhere: Start date filtering with validation
- genEndDateWhere: End date filtering with date increment
- genRangeWhere: Date range filtering with edge cases
All 32 test cases pass successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
* ✨ feat: implement unified operation state management (Phase 1)
Implement RFC-Operation-Runtime-Integration Phase 1:
- Add Operation type system with 17 operation types
- Implement Operation CRUD actions (start, complete, cancel, fail)
- Add Operation selectors for querying and status checks
- Integrate Operation state into ChatStore
- Add comprehensive unit tests (22 tests, 100% pass)
- Update AgentRuntimeContext to include operationId
This provides foundation for eliminating redundant context passing
and achieving zero-redundancy operation management.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor
* fix test
---------
Co-authored-by: Claude <noreply@anthropic.com>
Added comprehensive unit tests for convertAlphaToSolid function covering:
- Fully opaque and transparent colors
- Various opacity levels (25%, 50%, 75%, 99%)
- Different color formats (hex, rgba, named colors)
- Complex color blending scenarios
- Edge cases with very low/high alpha values
- Complementary colors blending
- Grayscale blending
- Input format consistency
Total: 21 test cases, all passing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
feat: Enhance LobeMinimaxAI with interleaved thinking and message processing
- Updated LobeMinimaxAI to handle new message structure including reasoning details.
- Added logic to process messages for reasoning content and signatures.
- Resolved parameters with constraints and included reasoning_split in the payload.
test: Update snapshots for NovitaAI, OpenAI, and PPIO models
- Added new models and updated existing model descriptions in snapshots for NovitaAI.
- Updated OpenAI model snapshots to reflect new model additions and descriptions.
- Included new DeepSeek models in PPIO snapshots with detailed descriptions.
fix: Improve error messages for quota and permission issues
- Enhanced error messages for quota limits and permissions to improve clarity and user experience.