Skip to content

🀯 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.

πŸš€ release: sync main branch to canary (#19435)

LobeHub Bot189bd0abe576
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 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">
+
+[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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.json
index 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.json
index 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.ts
index 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 context
async 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 phase
const 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 state
if (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 phase
const 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 tool
this.pendingToolCalls = this.pendingToolCalls.slice(1);
@@ -232,7 +232,7 @@ class SimpleAgent implements Agent {
// Main function
async 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 message
const 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 state
const 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.ts
index 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.ts
index 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';