π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π release: sync main branch to canary (#19435)
LobeHub Bot189bd0abe576
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 72f52e31ebe..606baa3efc2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,43 @@# Changelog+### [Version 2.2.17](https://github.com/lobehub/lobe-chat/compare/v2.2.17-canary.30...v2.2.17)++<sup>Released on **2026-09-11**</sup>++#### π Bug Fixes++- **portal**: repair weekly HTML publish imports.+- **ci**: restore release metadata sync and dispatch on main.+- **misc**: preserve flat JSON provider errors.++#### π Styles++- **acceptance**: always show the comment reaction button.++<br/>++<details>+<summary><kbd>Improvements and Fixes</kbd></summary>++#### What's fixed++- **portal**: repair weekly HTML publish imports, closes [#19433](https://github.com/lobehub/lobe-chat/issues/19433) ([f339e48](https://github.com/lobehub/lobe-chat/commit/f339e48))+- **ci**: restore release metadata sync and dispatch on main, closes [#19424](https://github.com/lobehub/lobe-chat/issues/19424) ([3bb887c](https://github.com/lobehub/lobe-chat/commit/3bb887c))+- **misc**: preserve flat JSON provider errors, closes [#19404](https://github.com/lobehub/lobe-chat/issues/19404) ([8a3e849](https://github.com/lobehub/lobe-chat/commit/8a3e849))++#### Styles++- **acceptance**: always show the comment reaction button, closes [#19417](https://github.com/lobehub/lobe-chat/issues/19417) ([6b56504](https://github.com/lobehub/lobe-chat/commit/6b56504))++</details>++<div align="right">++[](#readme-top)++</div>+## [Version 2.2.16](https://github.com/lobehub/lobe-chat/compare/v2.2.16-canary.28...v2.2.16)<sup>Released on **2026-09-04**</sup>diff --git a/changelog/v2.json b/changelog/v2.jsonindex aaa87c304cc..c90713df25d 100644--- a/changelog/v2.json+++ b/changelog/v2.json@@ -1,4 +1,11 @@[+ {+ "children": {+ "fixes": ["preserve flat JSON provider errors."]+ },+ "date": "2026-09-11",+ "version": "2.2.17"+ },{"children": {"features": ["relax workspace resource management."]diff --git a/package.json b/package.jsonindex 7f81f0cebef..0a00512c11a 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "@lobehub/lobehub",- "version": "2.2.16",+ "version": "2.2.17","description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.","keywords": ["framework",diff --git a/packages/agent-runtime/examples/tools-calling.ts b/packages/agent-runtime/examples/tools-calling.tsindex a0b4dbebb0c..3c2fa8128c7 100644--- a/packages/agent-runtime/examples/tools-calling.ts+++ b/packages/agent-runtime/examples/tools-calling.ts@@ -113,7 +113,7 @@ class SimpleAgent implements Agent {// Agent decision logic - based on execution phase and contextasync runner(context: AgentRuntimeContext, state: AgentState) {- console.log(`[${context.phase}] Conversation state: ${this.conversationState}`);+ console.info(`[${context.phase}] Conversation state: ${this.conversationState}`);switch (context.phase) {case 'init': {@@ -125,7 +125,7 @@ class SimpleAgent implements Agent {case 'user_input': {// User input phaseconst userPayload = context.payload as { isFirstMessage: boolean; message: any };- console.log(`π€ User message: ${userPayload.message.content}`);+ console.info(`π€ User message: ${userPayload.message.content}`);// Only process when in waiting_user stateif (this.conversationState === 'waiting_user') {@@ -140,7 +140,7 @@ class SimpleAgent implements Agent {}// Do not process user input in other states, end conversation- console.log(`β οΈ Ignoring user input, current state: ${this.conversationState}`);+ console.info(`β οΈ Ignoring user input, current state: ${this.conversationState}`);return {reason: `Not in waiting_user state: ${this.conversationState}`,type: 'finish' as const,@@ -163,7 +163,7 @@ class SimpleAgent implements Agent {this.pendingToolCalls = toolCalls;this.conversationState = 'executing_tools';- console.log(+ console.info('π§ Tools to execute:',toolCalls.map((call: any) => call.function.name),);@@ -187,7 +187,7 @@ class SimpleAgent implements Agent {case 'tool_result': {// Tool execution result phaseconst toolPayload = context.payload as { result: any; toolMessage: any };- console.log(`π οΈ Tool execution completed: ${JSON.stringify(toolPayload.result)}`);+ console.info(`π οΈ Tool execution completed: ${JSON.stringify(toolPayload.result)}`);// Remove the executed toolthis.pendingToolCalls = this.pendingToolCalls.slice(1);@@ -232,7 +232,7 @@ class SimpleAgent implements Agent {// Main functionasync function main() {- console.log('π Simple OpenAI Tools Agent Example\n');+ console.info('π Simple OpenAI Tools Agent Example\n');if (!process.env.OPENAI_API_KEY) {console.error('β Please set the OPENAI_API_KEY environment variable');@@ -245,7 +245,7 @@ async function main() {// Test messageconst testMessage = process.argv[2] || 'What time is it? Also calculate 15 * 8 + 7';- console.log(`π¬ User: ${testMessage}\n`);+ console.info(`π¬ User: ${testMessage}\n`);// Create initial stateconst state = AgentRuntime.createInitialState({@@ -254,7 +254,7 @@ async function main() {sessionId: 'simple-test',});- console.log('π€ AI: ');+ console.info('π€ AI: ');// Termination is the loop's job; this only says what one step does and how// its events are rendered.@@ -274,17 +274,17 @@ async function main() {}case 'llm_result': {if ((event as any).result.tool_calls) {- console.log('\n\nπ§ Calling tools...');+ console.info('\n\nπ§ Calling tools...');}break;}case 'tool_result': {- console.log(`\nπ οΈ Tool execution result:`, event.result);- console.log('\nπ€ AI: ');+ console.info(`\nπ οΈ Tool execution result:`, event.result);+ console.info('\nπ€ AI: ');break;}case 'done': {- console.log('\n\nβ Conversation complete');+ console.info('\n\nβ Conversation complete');break;}case 'error': {@@ -298,7 +298,7 @@ async function main() {},});- console.log(`\nπ Total steps executed: ${outcome.stepCount} (stopped: ${outcome.reason})`);+ console.info(`\nπ Total steps executed: ${outcome.stepCount} (stopped: ${outcome.reason})`);}main().catch(console.error);diff --git a/packages/agent-runtime/src/loop/index.test.ts b/packages/agent-runtime/src/loop/index.test.tsindex 26f68bf35d9..819490af768 100644--- a/packages/agent-runtime/src/loop/index.test.ts+++ b/packages/agent-runtime/src/loop/index.test.ts@@ -69,7 +69,11 @@ describe('runAgentLoop', () => {};};- const result = await runAgentLoop({ initialContext: context('start'), state: createState(), step });+ const result = await runAgentLoop({+ initialContext: context('start'),+ state: createState(),+ step,+ });expect(seen).toEqual(['start', 'after-0', 'after-1']);expect(result.stepCount).toBe(3);@@ -164,9 +168,10 @@ describe('runAgentLoop', () => {const result = await runAgentLoop({initialContext: context(),- resolveStop: (state, ctx) => (state.stepCount >= 0 && ctx?.phase === 'tool_result'- ? 'interrupted'- : resolveStopReason(state, ctx)),+ resolveStop: (state, ctx) =>+ state.stepCount >= 0 && ctx?.phase === 'tool_result'+ ? 'interrupted'+ : resolveStopReason(state, ctx),state: createState(),step: step as AgentLoopStep,});diff --git a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.tsindex 33f6bcad165..401c839b42b 100644--- a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts+++ b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts@@ -1,9 +1,9 @@-import {- type GatheredWorkspaceHtmlResource,- isPathInsideWorkspace,- type WorkspaceHtmlArtifactPublisher,- type WorkspaceHtmlArtifactPublishResult,+import type {+ GatheredWorkspaceHtmlResource,+ WorkspaceHtmlArtifactPublisher,+ WorkspaceHtmlArtifactPublishResult,} from '@lobechat/html-artifact';+import { isPathInsideWorkspace } from '@lobechat/html-artifact';import { confirmModal, toast } from '@lobehub/ui/base-ui';import debug from 'debug';import { useEffect, useRef, useState } from 'react';