Commit Graph

413 Commits

Author SHA1 Message Date
LobeHub Bot
6924b81a38 test: add unit tests for headersToRecord function (#10412)
🤖 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>
2025-11-26 01:27:14 +08:00
YuTengjing
20ca43cc4f 🔨 chore: remove useless const file (#10425) 2025-11-26 00:51:17 +08:00
YuTengjing
8b41638755 feat: bedrock claude model thinking support (#10422) 2025-11-26 00:42:36 +08:00
Arvin Xu
a93cfcd703 feat: support nano banana pro (#10413)
* 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
2025-11-26 00:16:44 +08:00
sxjeru
042005a5ea feat: Add Claude Opus 4.5 model (#10406) 2025-11-25 14:33:11 +08:00
YuTengjing
cf28c87d3e ♻️ refactor: optimize files schema definition (#10403) 2025-11-24 23:03:09 +08:00
bbbugg
bd2e8387dc 💄 style: add Kimi K2 Thinking to Qwen Provider (#10287)
* 💄 style: add GLM-4.6 and Kimi K2 Thinking to Qwen

* 💄 style: update Qwen model configurations and extend reasoning capabilities
2025-11-24 22:55:58 +08:00
Arvin Xu
760105adb2 🐛 fix: fix db migration snapshot not align with db schema (#10399)
* fix db sql

* clean
2025-11-24 21:15:25 +08:00
Arvin Xu
e1c813a301 🐛 fix: Separate agent file injection from knowledge base RAG search (#10398)
* only search kb

* support inject files

* support files

* fix search

* fix kb search

* clean console.log

* add tests
2025-11-24 21:14:21 +08:00
Neko
9caacde1c1 🔨 chore(database): added user memory db model (#10062)
* feat(database): added user memory db model

* fix: types, omit vector columsn

* test: adding more tests

* test: missing tests

* chore: circular dependency

* test: missing tests

* test: missing tests

* chore: use merge(...) for merging fields & properties, added tests
2025-11-24 19:30:05 +08:00
sxjeru
63e4b3d731 💄 style: Add hyperlink to each topic & pinned agent (#10367)
*  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
2025-11-24 15:20:24 +08:00
Shinji-Li
27c1154210 💄 style: support ContextMenu on ChatItem (#9034)
* feat: add chatitem right click contextMenu

* fix: soft key fixed

* feat: add contextMenu used box

* feat: add commons contextMenuMode settings config

* feat: add i18n

* feat: update contextmenu use

* fix: add lost merge files

* fix: add lost className

* fix: lint fixed

* feat: add expand & collapse fc in contextMenu

* fix: delete the onShare callback

* fix: refactor contextMenu

* feat: update i18n
2025-11-24 15:19:15 +08:00
LobeHub Bot
f8a24d22e3 🌐 chore: translate non-English comments to English in packages/model-bank (#10373)
🤖 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>
2025-11-23 22:09:49 +08:00
YuTengjing
cb34757743 💄 style: optimize nana banana pro error message (#10378) 2025-11-23 21:51:00 +08:00
YuTengjing
5349bdcabf feat: Add nano-banana-pro model support and optimization (#10376) 2025-11-23 20:19:51 +08:00
Arvin Xu
c568369c69 🐛 fix(operation): isolate loading state to current active topic (#10360)
* 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
2025-11-23 19:24:40 +08:00
sxjeru
9f20ec4135 🔨 chore: Support Interleaved thinking in kimi-k2-thinking (#10256)
 feat(moonshot): 添加 Kimi K2 思考模型及其高速版本,增强聊天模型功能
2025-11-23 00:16:52 +08:00
LobeHub Bot
89a0fa5337 🌐 chore: translate non-English comments to English in packages/utils (#10351)
🤖 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>
2025-11-22 23:18:55 +08:00
YuTengjing
40751393d1 feat: add release date for multiple AI chat models (#10357) 2025-11-22 17:42:30 +08:00
YuTengjing
5b1a9340fa chore: add new badge for image model list (#10356) 2025-11-22 14:40:12 +08:00
sxjeru
f2291e4fc8 feat: Add new provider ZenMux & Gemini 3 Pro Image Preview (#10310)
Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
2025-11-22 13:36:05 +08:00
YuTengjing
beb9471e15 feat: support bedrok prompt cache and usage compute (#10337) 2025-11-22 13:09:07 +08:00
sxjeru
89e296a1c3 🐛 fix: Gemini 3 Pro does not display thought summaries (#10345)
* 💄 style: update filter logic to retain thoughtSignature metadata in Google stream processing

* add tests
2025-11-22 00:02:23 +08:00
Arvin Xu
291ff3cc42 feat: refactor to use kb search tool (#10340)
* fix all render

* add kb builtin tool

* 完成知识库搜索功能

* 初步完成知识库读取实现

* finish display

* fix

* fix

* fix

* fix server api mode

* update i18n
2025-11-21 22:05:41 +08:00
René Wang
eea41dcb82 👷 build: Add slug to documents table (#10299)
* feat: Add SLUG

* fix: CI

* feat: Update constairnt

* fix: Remove slug from files

* fix: Test error
2025-11-21 17:56:08 +08:00
Shinji-Li
871d1416cc 🐛 fix: fixed changelog pages and open again (#10285)
* feat: fixed  changelog pages and open again

* fix: add discover use dynamic import

* fix: update the routers

* fix: change the pre build mts
2025-11-21 17:47:13 +08:00
renovate[bot]
6d96dec672 Update opentelemetry-js-contrib monorepo (#10254)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 14:20:04 +08:00
LobeHub Bot
1ed9424166 🌐 chore: translate non-English comments to English in services and desktop modules (#10339)
🤖 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>
2025-11-21 11:43:09 +08:00
René Wang
a9aed0bc44 feat: support Command Menu (CMD + J) (#10271)
* feat: Init

* feat: Add more commands

* opti: Use lazy load

* feat: More command

* fix: CMDK position

* style: Add shortkey hint

* feat: Add entry

* feat: Add About entries

* feat: Add shortcut hint

* feat: Create agent in CMDK

* feat: Ues cmd + J temproraily

* fix: Add missing translation
2025-11-20 23:27:08 +08:00
LobeHub Bot
9472001461 test: add unit tests for conversation-flow indexing and structuring (#10322)
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>
2025-11-20 22:29:02 +08:00
Arvin Xu
deab4d0386 feat: add Security Blacklist for agent runtime (#10325) 2025-11-20 17:57:45 +08:00
sxjeru
e025fec9f0 🐛 fix: provider settings button unable to redirect (#10319)
* 🔧 refactor: replace Next.js router with React Router for navigation in ModelSwitchPanel

* 🔧 feat: 添加新多模态模型 Grok 4.1 Fast 和 Grok 4.1 Fast (Non-Reasoning) 到 xai.ts
2025-11-20 13:08:09 +08:00
LobeHub Bot
02d2121355 🌐 chore: translate non-English comments to English in packages/database (#10318)
🤖 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>
2025-11-20 11:34:31 +08:00
Arvin Xu
b5ae53ab30 💄 style: extract StatusIndicator component and improve tools display (#10311)
improve
2025-11-19 22:24:01 +08:00
YuTengjing
474af231b5 🔧 chore: sync cloud changes (#10307) 2025-11-19 19:05:38 +08:00
Arvin Xu
7114fc10c4 feat: support gemini 3.0 tools calling (#10301)
* fix error display

* 完整支持 gemini 的 Function calling 机制

* add fetchsse

* fix continue mode

* improve

* refactor

* fix
2025-11-19 17:24:46 +08:00
sxjeru
6545ef863c 💄 style: Fully support Gemini 3.0 model (#10292)
* feat: 添加 Gemini 3 Pro 模型并移除 Gemini 2.0 Flash 预览模型

* feat: 添加思考水平功能,更新相关模型和配置

* feat: 添加 Gemini 3 Pro 模型并移除旧版 Gemini 2.5 Flash 和 Flash-Lite 模型

* feat: 添加 Gemini 3 Pro 预览模型及其相关配置

* fix: 调整 ThinkingLevelSlider 组件的最小宽度为 130

* fix: 修正对 3.0 模型的思考级别判断条件
2025-11-19 13:57:52 +08:00
Arvin Xu
092506906a feat: support user abort in the agent runtime (#10289)
* 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>
2025-11-19 11:48:51 +08:00
泠音
25c43587de 💄 style: add Gemini 3.0 Pro Preview to Google Provider (#10290)
* 💄 style: add Gemini 3.0 Pro Preview Thinking to Google Provider

* Update google.ts

* fix model id
2025-11-19 09:59:36 +08:00
sxjeru
d0ee3df579 feat: New API support switch Responses API mode (#9776)
*  feat: 添加对新API和路由类型的支持,更新相关配置以启用Responses API

* fix: 更新测试文件中的console.error和console.debug实现,确保输出格式一致;在CreateNewProvider组件中调整provider图标映射逻辑

*  feat: 更新novita和qwen模型,调整定价策略,添加新模型及其功能

* 🐛 fix: OIDC error when connecting to self-host instance (#9916)

fix: oidc/consent redirect header

*  feat: 添加 MiniMax M2 和 Qwen3 VL 235B Instruct 模型,更新模型属性
🔧 fix: 修复免费标识逻辑,确保正确判断模型是否免费

*  feat: 添加 MiniMax-M2 模型,更新 SiliconCloud 和 Vercel AI Gateway 模型信息,调整 Kimi K2 的上下文窗口大小

* fix test

* 📝 docs: update ComfyUI documentation cover image URL (#9997)

* 🔖 chore(release): v1.142.9 [skip ci]

### [Version&nbsp;1.142.9](https://github.com/lobehub/lobe-chat/compare/v1.142.8...v1.142.9)
<sup>Released on **2025-11-02**</sup>

#### 🐛 Bug Fixes

- **misc**: OIDC error when connecting to self-host instance.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/lobehub/lobe-chat/issues/9916) ([2e2b9c4](https://github.com/lobehub/lobe-chat/commit/2e2b9c4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

* 📝 docs(bot): Auto sync agents & plugin to readme

* 优化 Responses API 处理逻辑,优化错误处理和流数据转换

---------

Co-authored-by: Aloxaf <bailong104@gmail.com>
2025-11-19 00:53:18 +08:00
René Wang
10e44dfb6b 👷 build: Update schema for incoming folder (#10217)
* feat: Update schema

* fix: Circular deps

* feat: Add more validate

* fix: Vercel build error

* fix: Duplicated import

* fix: Circular deps

* feat: Set varchar from 30 to 255

* feat: Regenerate migration file

* feat: Regenerate migration

* feat: Regenerate migration
2025-11-18 16:42:13 +08:00
LobeHub Bot
be096eb9ff test: add unit tests for genWhere utilities (#10281)
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>
2025-11-18 14:51:43 +08:00
Arvin Xu
c5e0ecd31e 🔨 chore: implement unified operation state management (#10275)
*  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>
2025-11-18 13:01:20 +08:00
LobeHub Bot
992f4e5ad7 test: add unit tests for colorUtils (#10268)
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>
2025-11-18 11:20:11 +08:00
sxjeru
13ca8e18c8 feat: Support Interleaved thinking in MiniMax (#10255)
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.
2025-11-18 11:19:53 +08:00
Arvin Xu
3785a7109a feat: edit local file render & intervention (#10269)
* support editFile render

* clean and add tests

* improve hover state

* support edit local file

* fix tests

* fix desktop build

* fix desktop build

* Revert "fix desktop build"

This reverts commit 6ce58b2eeb.
2025-11-18 02:07:58 +08:00
yliu7949
06af7939e4 💄 style: Add model information for the Qiniu provider (#10270)
style(): update qiniu.ts
2025-11-17 19:43:13 +08:00
renovate[bot]
cec034721f Update opentelemetry-js monorepo to ^0.208.0 (#10253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 13:08:48 +08:00
LobeHub Bot
4e4933d861 🌐 chore: translate non-English comments to English in packages/types and packages/web-crawler (#10267)
🤖 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>
2025-11-17 12:01:06 +08:00
renovate[bot]
b76e3c85b9 Update all non-major dependencies (#10177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 09:56:56 +08:00