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.

chore: merge main into canary (has conflicts to resolve)

lobehubbota0303b7c18df
diff --cc .agents/skills/version-release/SKILL.md
index 80a6eaa914e,501e74fd184..69b21fb9bb7
--- a/.agents/skills/version-release/SKILL.md
+++ b/.agents/skills/version-release/SKILL.md
@@@ -5,23 -5,14 +5,31 @@@ description: "Version release workflow
# Version Release Workflow
++<<<<<<< HEAD
+## Scope Boundary (Important)
+
+This skill is only for:
+
+1. Release branch / PR workflow
+2. CI trigger constraints (`auto-tag-release.yml`)
+3. GitHub Release note writing
+
+This skill is **not** for writing `docs/changelog/*.mdx`.\
+If the user asks for website changelog pages, load `../docs-changelog/SKILL.md`.
+
++=======
++>>>>>>> origin/main
## Mandatory Companion Skill
For every `/version-release` execution, you MUST load and apply:
- `../microcopy/SKILL.md`
++<<<<<<< HEAD
++=======
+ Changelog style guidance is now fully embedded in this skill. Keep release facts unchanged, and only improve structure, readability, and tone.
+
++>>>>>>> origin/main
## Overview
The primary development branch is **canary**. All day-to-day development happens on canary. When releasing, canary is merged into main. After merge, `auto-tag-release.yml` automatically handles tagging, version bumping, creating a GitHub Release, and syncing back to the canary branch.
@@@ -139,180 -121,224 +147,367 @@@ Before creating the release branch, ver
1. Read `package.json` to get the current version and compute the next minor version
2. Create a `release/v{version}` branch from canary
-3. Push and create a PR โ€” **title must be `๐Ÿš€ release: v{version}`**
-4. Inform the user that merging the PR will automatically trigger the release
+3. Push and create PR โ€” **title must be `๐Ÿš€ release: v{version}`**
+4. Inform the user that merge will auto-trigger release
-### Precheck
+### Patch Release
-Before creating the release branch, verify the source branch:
+Choose workflow by scenario (see `reference/patch-release-scenarios.md`):
-- **Weekly Release** (`release/weekly-*`): must branch from `canary`
-- **All other release/hotfix branches**: must branch from `main` โ€” run `git merge-base --is-ancestor main <branch> && echo OK` to confirm
-- If the branch is based on the wrong source, delete and recreate from the correct base
+- **Weekly Release**: create `release/weekly-{YYYYMMDD}` from canary; use `git log main..canary` for release note inputs; title like `๐Ÿš€ release: 20260222`
+- **Bug Hotfix**: create `hotfix/` from main; use gitmoji prefix title (e.g. `๐Ÿ› fix: ...`)
+- **New Model Launch**: community PRs trigger automatically via title prefix (`feat` / `style`)
+- **DB Migration**: create `release/db-migration-{name}` from main; cherry-pick migration commits; include dedicated migration notes
-### Patch Release
+### Hard Rules
+
+- **Do NOT** manually modify `package.json` version
+- **Do NOT** manually create tags
+- Minor PR title format is strict
+- Patch PRs do not need explicit version number
+- Keep release facts accurate; do not invent metrics or availability statements
+
+## GitHub Release Changelog Standard (Long-Form Style)
+
+Use this section for writing **GitHub Release notes** (or release PR body when the PR body is intended to become release notes).\
+Do not use this as `docs/changelog` page guidance.
-Choose the appropriate workflow based on the scenario (see `reference/patch-release-scenarios.md`):
+### Positioning
-- **Weekly Release**: Create a `release/weekly-{YYYYMMDD}` branch from canary, scan `git log main..canary` to write the changelog, title like `๐Ÿš€ release: 20260222`
-- **Bug Hotfix**: Create a `hotfix/` branch from main, use a gitmoji prefix title (e.g. `๐Ÿ› fix: ...`)
-- **New Model Launch**: Community PRs trigger automatically via title prefix (`feat` / `style`), no extra steps needed
-- **DB Migration**: Create a `release/db-migration-{name}` branch from main, cherry-pick migration commits, write a dedicated migration changelog
+This release-note style is:
-### Important Notes
++<<<<<<< HEAD
+1. **Data-backed at the top** (date, range, key metrics)
+2. **Narrative first, then structured detail**
+3. **Deep but scannable** (clear sectioning + compact bullets)
+4. **Contributor-forward** (credits are part of the release story)
-- **Do NOT manually modify the version in package.json** โ€” CI will auto-bump it
-- **Do NOT manually create tags** โ€” CI will create them automatically
-- The Minor Release PR title format is a hard requirement โ€” incorrect format will not use the specified version number
-- Patch PRs do not need a version number โ€” CI auto-bumps patch +1
-- All release PRs must include a user-facing changelog
+### Required Inputs Before Writing
-## Changelog Writing Guidelines
+Collect these inputs first:
-All release PR bodies (both Minor and Patch) must include a user-facing changelog. Scan changes via `git log main..canary --oneline` or `git diff main...canary --stat`, then write following the format below.
+1. Compare range (`<prev_tag>...<current_tag>`)
+2. Release metrics (commits, merged PRs, resolved issues, contributors, optional files/insertions/deletions)
+3. High-impact changes by domain (core loop, platform/gateway, UX, tooling, security, reliability)
+4. Contributor list (with standout contributions if known)
+5. Known risks / migrations / rollout notes (if any)
-### Format Reference
+If metrics cannot be reliably computed, omit unknown numbers instead of guessing.
+
+### Canonical Structure
+
+Follow this section order unless the user asks otherwise:
+
+1. `# ๐Ÿš€ LobeHub v<x.y.z> (<YYYYMMDD>)`
+2. Metadata lines:
+ - `Release Date`
+ - `Since <Previous Version>` metrics
+3. One quoted release thesis (single paragraph, 1-2 lines)
+4. `## โœจ Highlights` (6-12 bullets for major releases; 3-8 for weekly)
+5. Domain blocks with optional `###` subsections:
+ - `## ๐Ÿ—๏ธ Core Agent & Architecture` (or equivalent product core)
+ - `## ๐Ÿ“ฑ Platforms / Integrations`
+ - `## ๐Ÿ–ฅ๏ธ CLI & User Experience`
+ - `## ๐Ÿ”ง Tooling`
+ - `## ๐Ÿ”’ Security & Reliability`
+ - `## ๐Ÿ“š Documentation` (optional if meaningful)
+6. `## ๐Ÿ‘ฅ Contributors`
+7. `**Full Changelog**: <prev>...<current>`
+
+Use `---` separators between major blocks for long releases.
+
+### Writing Rules (Hard)
+
+1. **No fabricated metrics**: all numbers must be traceable.
+2. **No vague headline bullets**: each bullet must include capability + impact.
+3. **No internal-only framing**: phrase from user/operator perspective.
+4. **Security must be explicit** when security-sensitive fixes are present.
+5. **PR/issue linkage**: use `(#1234)` when IDs are available.
+6. **Terminology consistency**: same feature/provider name across sections.
+7. **Do not bury migration or breaking changes**: elevate to dedicated section or callout.
+
+### Style Rules (Long-Form)
+
+1. Start with an "everyday use" framing, not implementation internals.
+2. Mix narrative sentence + evidence bullets.
+3. Keep bullets compact but informative:
+ - Good: `**Fast Mode (`/fast`)** โ€” Priority routing for OpenAI and Anthropic, reducing latency on supported models. (#6875, #6960)`
+4. Use bold only for capability names, not for whole sentences.
+5. Keep heading depth <= 3 levels.
+
+### Release Size Heuristics
+
+- **Minor / major milestone release**
+ - Include full structure with multiple domain blocks.
+ - `Highlights` usually 8-12 bullets.
+- **Weekly patch release**
+ - Keep full skeleton but reduce subsection count.
+ - `Highlights` usually 4-8 bullets.
+- **DB migration release**
+ - Keep concise.
+ - Must include `Migration overview`, operator impact, and rollback/backup note.
+
+### GitHub Release Changelog Template
+
+```md
+# ๐Ÿš€ LobeHub v<x.y.z> (<YYYYMMDD>)
+
+**Release Date:** <Month DD, YYYY>
+**Since <Previous Version>:** <N commits> ยท <N merged PRs> ยท <N resolved issues> ยท <N contributors>
+
+> <One release thesis sentence: what this release unlocks in practice.>
+
+---
-- Weekly Release: See `reference/changelog-example/weekly-release.md`
-- DB Migration: See `reference/changelog-example/db-migration.md`
+## โœจ Highlights
+
+- **<Capability A>** โ€” <What changed and why it matters>. (#1234)
+- **<Capability B>** โ€” <What changed and why it matters>. (#2345)
+- **<Capability C>** โ€” <What changed and why it matters>. (#3456)
+
+---
+
+## ๐Ÿ—๏ธ Core Product & Architecture
+
+### <Subdomain>
+
+- <Concrete change + impact>. (#...)
+- <Concrete change + impact>. (#...)
+
+---
+
+## ๐Ÿ“ฑ Platforms / Integrations
+
+- <Platform update + impact>. (#...)
+- <Compatibility/reliability fix + impact>. (#...)
+
+---
+
+## ๐Ÿ–ฅ๏ธ CLI & User Experience
+
+- <User-facing workflow improvement>. (#...)
+- <Quality-of-life fix>. (#...)
+
+---
+
+## ๐Ÿ”ง Tooling
+
+- <Tool/runtime improvement>. (#...)
+
+---
+
+## ๐Ÿ”’ Security & Reliability
+
+- **Security:** <hardening or vulnerability fix>. (#...)
+- **Reliability:** <stability/performance behavior improvement>. (#...)
+
+---
+
+## ๐Ÿ‘ฅ Contributors
+
+**<N merged PRs>** from **<N contributors>** across **<N commits>**.
+
+### Community Contributors
+
+- @<username> - <notable contribution area>
+- @<username> - <notable contribution area>
+
+---
+
+**Full Changelog**: <previous_tag>...<current_tag>
+```
+
+### Quick Checklist
+- [ ] Uses top metadata and a clear release thesis
+- [ ] Includes `Highlights` plus domain-grouped sections
+- [ ] Every major bullet states both change and user/operator impact
+- [ ] Security and reliability updates are explicitly surfaced (when present)
+- [ ] Contributor credits and compare range are included
+- [ ] All numbers and claims are verifiable
++=======
+ ### Mandatory Inputs Before Writing
+
+ 1. Release diff context (`git log main..canary` and/or `git diff main...canary --stat`)
+ 2. Existing release template constraints (title, credits, trigger rules)
+ 3. `../microcopy/SKILL.md` terminology constraints
+
+ ### Output Constraints (Hard Rules)
+
+ 1. Keep all factual claims accurate to merged changes.
+ 2. Do not invent numbers, scope, timelines, or availability tiers.
+ 3. Keep release title and trigger-sensitive format unchanged.
+ 4. Keep `Credits` section intact (format required by project conventions).
+ 5. Prefer fewer headings and more natural narrative paragraphs.
+ 6. EN/ZH versions must cover the same facts in the same order.
+ 7. Prefer storytelling over feature enumeration.
+ 8. Avoid `Key Updates` sections that are only bullet dumps unless explicitly requested.
+
+ ### Editorial Voice (Notion/Linear-Inspired)
+
+ Target a changelog voice that is calm, confident, and human:
+
+ - Start from user reality, not internal implementation.
+ - Explain why this change matters before listing mechanics.
+ - Keep tone practical and grounded, but allow a little product warmth.
+ - Favor concrete workflow examples over abstract claims.
+ - Write like an update from a thoughtful product team, not a marketing launch page.
+
+ ### Writing Model (3-Pass Rewrite)
+
+ #### Pass 1: Remove AI Vocabulary and Filler
+
+ - Replace inflated words with simple alternatives.
+ - Remove transition padding like "furthermore", "notably", "it is worth noting that".
+ - Cut generic importance inflation ("pivotal", "testament", "game-changer").
+ - Prefer direct verbs like `run`, `customize`, `manage`, `capture`, `improve`, `fix`.
+
+ #### Pass 2: Break AI Sentence Patterns
+
+ Avoid these structures:
+
+ - Parallel negation: "Not X, but Y"
+ - Tricolon overload: "A, B, and C" used repeatedly
+ - Rhetorical Q + answer: "What does this mean? It means..."
+ - Dramatic reveal openers: "Here's the thing", "The result?"
+ - Mirror symmetry in consecutive lines
+ - Overuse of em dashes
+ - Every paragraph ending in tidy "lesson learned" phrasing
+
+ #### Pass 3: Add Human Product Texture
+
+ - Lead with user-visible outcome, then explain mechanism.
+ - Mix sentence lengths naturally.
+ - Prefer straightforward phrasing over polished-but-empty language.
+ - Keep confidence, but avoid launch-ad hype.
+ - Write like a product team update, not a marketing page.
+
+ ### Recommended Structure Blueprint
+
+ Use this shape unless the user asks otherwise:
+
+ 1. `# ๐Ÿš€ release: ...`
+ 2. One opening paragraph (2-4 sentences) that explains overall user impact.
+ 3. 2-4 narrative capability blocks (short headings optional):
+ - each block = user value + key capability
+ 4. `Improvements and fixes` / `ไฝ“้ชŒไผ˜ๅŒ–ไธŽไฟฎๅค` with concise bullets
+ 5. `Credits` with required mention format
+
+ ### Length and Reading Density (Important)
+
+ Avoid overly short release notes when the diff is substantial.
+
+ - Weekly release PR body:
+ - Usually target 350-700 English words (or equivalent Chinese length)
+ - Keep 2-4 narrative sections, each with at least one real paragraph
+ - Minor release PR body:
+ - Usually target 500-1000 English words (or equivalent Chinese length)
+ - Allow richer context and more concrete usage scenarios
+ - DB migration release PR body:
+ - Keep concise, but still include context + impact + operator notes
+ - If there are many commits, increase narrative depth before adding more bullets.
+ - If there are few commits, stay concise and do not pad content.
+
+ ### Storytelling Contract (Major Capabilities)
+
+ For each major capability, write in this order:
+
+ 1. Prior context/problem (briefly)
+ 2. What changed in this release
+ 3. Practical impact on user workflow
+
+ Do not collapse major capability sections into one-line bullets.
+
+ ### Section Anatomy (Preferred)
+
+ Each major section should follow this internal rhythm:
+
+ 1. Lead sentence: what changed and who benefits.
+ 2. Context sentence: what was painful, slow, or fragmented before.
+ 3. Mechanism paragraph: how the new behavior works in practice.
+ 4. Optional utility list (`Use X to:`) for actionable workflows.
+ 5. Optional availability closer when plan/platform constraints matter.
+
+ This pattern increases readability and makes changelogs more enjoyable to read without sacrificing precision.
+
+ ### Section and Heading Heuristics
+
+ - Keep heading count low (typically 3-5).
+ - Weekly release PR body target:
+ - 1 opening paragraph
+ - 2-4 major narrative sections
+ - 1 improvements/fixes section
+ - 1 credits section
+ - Never produce heading-per-bullet layout.
+ - If a section has 4+ bullets, convert into 2-3 short narrative paragraphs when possible.
+
+ ### Linear-Style Block Pattern
+
+ Use this pattern when writing major sections:
+
+ ```md
+ ## <Capability name>
+
+ <One sentence: what users can do now and why it matters.>
+
+ <One short paragraph: how this works in practice, in plain language.>
+
+ <Optional list for workflows>
+ Use <feature> to:
+ - <practical action 1>
+ - <practical action 2>
+ - <practical action 3>
+
+ <Optional availability sentence>
+ ```
+
+ ### Notion-Style Readability Moves
+
+ Apply these moves when appropriate:
+
+ - Use one clear "scene" sentence to ground context (for example, what a team is doing when the feature helps).
+ - Alternate paragraph lengths: one compact paragraph followed by a denser explanatory one.
+ - Prefer specific nouns (`triage inbox`, `topic switch`, `mobile session`) over broad terms like "experience" or "workflow improvements".
+ - Keep transitions natural (`Previously`, `Now`, `In practice`, `This means`) and avoid ornate writing.
+ - End key sections with a practical takeaway sentence, not a slogan.
+
+ ### Anti-Pattern Red Flags (Rewrite Required)
+
+ - "Key Updates" followed by only bullets and no narrative context
+ - One bullet per feature with no prior context or user impact
+ - Repeated template like "Feature X: did Y"
+ - Heading-per-feature with no explanatory paragraph
+ - Mechanical transitions with no causal flow
+
+ ### EN/ZH Synchronization Rules
+
+ - Keep section order aligned.
+ - Keep facts and scope aligned.
+ - Localize naturally; avoid literal sentence mirroring.
+ - If one language uses bullets for a section, the other should match style intent.
+
+ ### Writing Tips
+
+ - **User-facing**: Describe changes that users can perceive, not internal implementation details
+ - **Clear categories**: Group by features, models/providers, desktop, stability/fixes, etc.
+ - **Highlight key items**: Use `**bold**` for important feature names
+ - **Credit contributors**: Collect all committers via `git log` and list alphabetically
+ - **Flexible categories**: Choose categories based on actual changes โ€” no need to force-fit all categories
+ - **Terminology enforcement**: Ensure wording follows `microcopy` skill terminology and tone constraints
+ - **Linear narrative enforcement**: Follow capability -> explanation -> optional "Use X to" list
+ - **Storytelling enforcement**: For major updates, write in "before -> now -> impact" order
+ - **Depth enforcement**: If the diff is non-trivial, prefer complete paragraphs over compressed bullet-only summaries
+ - **Pleasure-to-read enforcement**: Include concrete examples and practical scenarios so readers can imagine using the capability
+
+ ### Quick Checklist
+
+ - [ ] First paragraph explains user-visible release outcome
+ - [ ] Heading count is minimal and meaningful
+ - [ ] Major capabilities are short narrative paragraphs, not only bullets
+ - [ ] Includes "before -> now -> impact" for major sections
+ - [ ] No obvious AI patterns (parallel negation, rhetorical Q/A, dramatic reveal)
+ - [ ] Vocabulary is plain, direct, and product-credible
+ - [ ] Improvements/fixes remain concise and scannable
+ - [ ] Credits format is preserved exactly
+ - [ ] EN/ZH versions align in facts and order
++>>>>>>> origin/main
diff --cc .agents/skills/version-release/reference/changelog-example/db-migration.md
index f348ad0c258,1a5e17e9c22..560e9fc4e75
--- a/.agents/skills/version-release/reference/changelog-example/db-migration.md
+++ b/.agents/skills/version-release/reference/changelog-example/db-migration.md
@@@ -7,54 -4,28 +7,78 @@@
---
++<<<<<<< HEAD
+## โœจ Highlights
+
+- **Benchmark Lifecycle Schema** โ€” Added a relational model that tracks benchmark setup, runs, per-topic execution, and record outputs end-to-end.
+- **Queryability Upgrade** โ€” Added indexes for run status and benchmark-topic joins, improving operational queries in dashboard and debugging workflows.
+- **Safer Operator Rollout** โ€” Migration is startup-driven and backward-compatible with existing non-benchmark chat workflows.
+
+---
+
+## ๐Ÿ—„๏ธ Migration Overview
+
+Added tables:
++=======
+ This release includes a **database schema migration** for Agent Evaluation Benchmark. We are adding **5 new tables** so benchmark setup, runs, and run-topic records can be stored in a complete and queryable structure.
+
+ ## Migration overview
+
+ Previously, benchmark-related data lacked a full lifecycle model, which made it harder to track evaluation flow from dataset to run results. This migration introduces the missing relational layer so benchmark configuration, execution, and analysis records stay connected.
+
+ In practical terms, this reduces ambiguity for downstream features and gives operators a cleaner foundation for troubleshooting and reporting.
+
+ Added tables:
+
+ - `agent_eval_benchmarks`
+ - `agent_eval_datasets`
+ - `agent_eval_records`
+ - `agent_eval_runs`
+ - `agent_eval_run_topics`
+
+ ## Notes for self-hosted users
+
+ - Migration runs automatically during app startup.
+ - No manual SQL action is required in standard deployments.
+ - As with any schema release, we still recommend database backup and rollout during a low-traffic window.
++>>>>>>> origin/main
+
+- `agent_eval_benchmarks`
+- `agent_eval_datasets`
+- `agent_eval_runs`
+- `agent_eval_run_topics`
+- `agent_eval_records`
+
+Added indexes:
+
+- `idx_agent_eval_runs_status_created_at`
+- `idx_agent_eval_run_topics_run_id_topic_id`
+
+These additions close a previous gap where benchmark data existed in partial forms but lacked a stable relational backbone for auditing and historical analysis.
+
+---
+
+## โš™๏ธ Operator Notes
+
+- Migration runs automatically on application startup.
+- No manual SQL is required in standard deployment paths.
+- Schedule rollout in a low-traffic window and take a backup snapshot before deployment.
+- If migration fails, do not retry repeatedly; inspect migration logs and lock state first.
+
+---
+
+## ๐Ÿ”’ Reliability & Risk
+
+- Existing chat/session paths are unaffected unless benchmark features are enabled.
+- Migration is additive (new tables/indexes only), minimizing downgrade risk to existing entities.
+- Rollback should follow your standard DB restore or migration rollback policy if your environment requires strict reversibility.
+
+---
+
+## ๐Ÿ‘ฅ Owner
+
+Migration owner: @{pr-author}
-The migration owner: @{pr-author} โ€” responsible for this database schema change, reach out for any migration-related issues.
+The migration owner is responsible for rollout follow-up and incident handling for this schema change.
-> **Note for Claude**: Replace `{pr-author}` with the actual PR author. Retrieve via `gh pr view <number> --json author --jq '.author.login'` or `git log` commit author. Do NOT hardcode a username.
+> **Note for Claude**: Replace `{pr-author}` with the actual PR author. Retrieve via `gh pr view <number> --json author --jq '.author.login'` or from commit metadata. Do not hardcode a username.
diff --cc .agents/skills/version-release/reference/changelog-example/weekly-release.md
index 3a496ca10c7,59a948cf22f..f788f5a60ff
--- a/.agents/skills/version-release/reference/changelog-example/weekly-release.md
+++ b/.agents/skills/version-release/reference/changelog-example/weekly-release.md
@@@ -1,80 -1,51 +1,124 @@@
-# Patch Release (Weekly) Changelog Example
+# ๐Ÿš€ LobeHub v2.1.50 (20260420)
-A real-world changelog reference for weekly patch release PR bodies.
+**Release Date:** April 20, 2026\
+**Since v2026.04.13:** 96 commits ยท 58 merged PRs ยท 31 resolved issues ยท 17 contributors
+
+> This weekly release focuses on reducing friction in everyday agent work: faster model routing, smoother gateway behavior, stronger task continuity, and clearer operator diagnostics when something goes wrong.
+
+---
+
++<<<<<<< HEAD
+## โœจ Highlights
+
+- **Gateway Session Recovery** โ€” Agent sessions now recover more reliably after short network interruptions, so long-running tasks continue with less manual retry. (#10121, #10133)
+- **Fast Model Routing** โ€” Expanded low-latency routing for priority model tiers, reducing wait time in high-frequency generation workflows. (#10102, #10117)
+- **Agent Task Workspace** โ€” Running tasks now remain isolated from main chat state, which keeps primary conversations cleaner while background work progresses. (#10088)
+- **Provider Coverage Update** โ€” Added support for new model variants across OpenAI-compatible and regional providers, improving fallback options in production. (#10094, #10109)
+- **Desktop Attachment Flow** โ€” File and screenshot attachment behavior is more predictable in desktop sessions, especially for mixed text + media prompts. (#10073)
+- **Security Hardening Pass** โ€” Closed multiple input validation gaps in webhook and file-path handling paths. (#10141, #10152)
+
+---
+
+## ๐Ÿ—๏ธ Core Agent & Architecture
+
+### Agent loop and context handling
+
+- Improved context compaction thresholds to reduce mid-task exits under tight token budgets. (#10079)
+- Added better diagnostics for tool-call truncation and recovery behavior during streamed responses. (#10106)
+- Refined delegate task activity propagation to improve parent-child task status consistency. (#10098)
+
+### Provider and model behavior
+
+- Unified provider-side timeout handling in fallback chains to reduce false failure classification. (#10097)
+- Updated reasoning-model defaults and response normalization for better cross-provider consistency. (#10109)
---
+## ๐Ÿ“ฑ Gateway & Platform Integrations
++=======
+ This weekly release includes **82 commits**. The throughline is simple: less friction when moving from idea to execution. Across agent workflows, model coverage, and desktop polish, this release removes several small blockers that used to interrupt momentum.
+
+ The result is not one headline feature, but a noticeably smoother week-to-week experience. Teams can evaluate agents with clearer structure, ship richer media flows, and spend less time debugging provider and platform edge cases.
+
+ ## Agent workflows and media generation
+
+ Previously, some agent evaluation and media generation flows still felt fragmented: setup was manual, discoverability was uneven, and switching between topics could interrupt context. This release adds **Agent Benchmark** support and lands the **video generation** path end-to-end, from entry point to generation feedback.
+
+ In practice, this means users can discover and run these workflows with fewer detours. Sidebar "new" indicators improve visibility, skeleton loading makes topic switches feel less abrupt, and memory-related controls now behave more predictably under real workload pressure.
+
+ We also expanded memory controls with effort and tool-permission configuration, and improved timeout calculation for memory analysis tasks so longer runs fail less often in production-like usage.
+
+ ## Models and provider coverage
+
+ Provider diversity matters most when teams can adopt new models without rewriting glue code every sprint. This release adds **Straico** and updates support for Claude Sonnet 4.6, Gemini 3.1 Pro Preview, Qwen3.5, Grok Imagine (`grok-imagine-image`), and MiniMax 2.5.
+
+ Use these updates to:
+
+ - route requests to newly available providers
+ - test newer model families without custom patching
+ - keep model parameters and related i18n copy aligned across providers
+
+ This keeps model exploration practical: faster evaluation loops, fewer adaptation surprises, and cleaner cross-provider behavior.
+
+ ## Desktop and platform polish
+
+ Desktop receives a set of quality-of-life upgrades that reduce "death by a thousand cuts" moments. We integrated `electron-liquid-glass` for macOS Tahoe and improved DMG background assets and packaging flow for more consistent release output.
+
+ The desktop editor now supports image upload from the file picker, which shortens everyday authoring steps and removes one more reason to switch tools mid-task.
+
+ ## Improvements and fixes
+
+ - Fixed multiple video pipeline issues across precharge refund handling, webhook token verification, pricing parameter usage, asset cleanup, and type safety.
+ - Fixed path traversal risk in `sanitizeFileName` and added corresponding unit tests.
+ - Fixed MCP media URL generation when `APP_URL` was duplicated in output paths.
+ - Fixed Qwen3 embedding failures caused by batch-size limits.
+ - Fixed several UI interaction issues, including mobile header agent selector/topic count, ChatInput scrolling behavior, and tooltip stacking context.
+ - Fixed missing `@napi-rs/canvas` native bindings in Docker standalone builds.
+ - Improved GitHub Copilot authentication retry behavior and response error handling in edge cases.
+
+ ## Credits
++>>>>>>> origin/main
+
+- Gateway now drains in-flight events more safely before restart, reducing duplicate notification bursts. (#10125)
+- Discord and Slack adapters received retry/backoff tuning for unstable webhook windows. (#10091, #10119)
+- WeCom callback-mode message state persistence now uses safer atomic updates. (#10114)
+
+---
+
+## ๐Ÿ–ฅ๏ธ CLI & User Experience
-Huge thanks to these contributors (alphabetical):
+- Improved slash command discoverability in CLI and gateway contexts with clearer hint messages. (#10086)
+- `/model` switching feedback now returns clearer success/failure states in cross-platform chats. (#10108)
+- Setup flow now warns earlier about missing provider credentials in first-run scenarios. (#10115)
+
+---
+
+## ๐Ÿ”ง Tooling
+
+- MCP registration flow now validates duplicate tool names before activation, reducing runtime conflicts. (#10093)
+- Browser tooling improved stale-session cleanup to prevent orphaned local resources. (#10112)
+
+---
+
+## ๐Ÿ”’ Security & Reliability
+
+- **Security:** Hardened path sanitization for uploaded assets and webhook callback validation. (#10141, #10152)
+- **Reliability:** Reduced empty-response retry storms by refining retry-classification conditions. (#10130)
+- **Reliability:** Improved timeout defaults for long-running background processes in constrained environments. (#10122)
+
+---
+
+## ๐Ÿ‘ฅ Contributors
+
+**58 merged PRs** from **17 contributors** across **96 commits**.
+
+### Community Contributors
+
+- @alice-example - Gateway recovery and retry improvements
+- @bob-example - Provider fallback normalization
+- @charlie-example - Desktop media attachment flow
+- @dora-example - Webhook validation hardening
+
+---
-@AmAzing129 @Coooolfan @Innei @ONLY-yours @Zhouguanyang @arvinxx @eaten-cake @hezhijie0327 @nekomeowww @rdmclin2 @rivertwilight @sxjeru @tjx666
+**Full Changelog**: v2026.04.13...v2026.04.20
diff --cc CHANGELOG.md
index 6d437bfebfb,5f889d965dd..033c272e22d
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -2,6 -2,55 +2,58 @@@
# Changelog
++<<<<<<< HEAD
++=======
+ ## [Version 2.1.51](https://github.com/lobehub/lobe-chat/compare/v0.0.0-nightly.pr13850.8503...v2.1.51)
+
+ <sup>Released on **2026-04-16**</sup>
+
+ #### ๐Ÿ‘ท Build System
+
+ - **database**: add document history schema.
+ - **database**: add document history schema.
+
+ #### ๐Ÿ› Bug Fixes
+
+ - **misc**: fix minify cli.
+ - **misc**: recent delete.
+ - **deps**: pin @react-pdf/image to 3.0.4 to avoid privatized @react-pdf/svg.
+ - **database**: enforce document history ownership and pagination.
+
+ #### โœจ Features
+
+ - **database**: add document history table and update related models.
+
+ <br/>
+
+ <details>
+ <summary><kbd>Improvements and Fixes</kbd></summary>
+
+ #### Build System
+
+ - **database**: add document history schema, closes [#13789](https://github.com/lobehub/lobe-chat/issues/13789) ([c1174d3](https://github.com/lobehub/lobe-chat/commit/c1174d3))
+ - **database**: add document history schema ([e3eef04](https://github.com/lobehub/lobe-chat/commit/e3eef04))
+
+ #### What's fixed
+
+ - **misc**: fix minify cli, closes [#13888](https://github.com/lobehub/lobe-chat/issues/13888) ([cb4ad01](https://github.com/lobehub/lobe-chat/commit/cb4ad01))
+ - **misc**: recent delete, closes [#13878](https://github.com/lobehub/lobe-chat/issues/13878) ([85227cf](https://github.com/lobehub/lobe-chat/commit/85227cf))
+ - **deps**: pin @react-pdf/image to 3.0.4 to avoid privatized @react-pdf/svg ([d526b40](https://github.com/lobehub/lobe-chat/commit/d526b40))
+ - **database**: enforce document history ownership and pagination ([b9c4b87](https://github.com/lobehub/lobe-chat/commit/b9c4b87))
+
+ #### What's improved
+
+ - **database**: add document history table and update related models ([64fc6d4](https://github.com/lobehub/lobe-chat/commit/64fc6d4))
+
+ </details>
+
+ <div align="right">
+
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
+
+ </div>
+
++>>>>>>> origin/main
## [Version 2.1.50](https://github.com/lobehub/lobe-chat/compare/v2.1.49...v2.1.50)
<sup>Released on **2026-04-16**</sup>
diff --cc changelog/v2.json
index a20f53c5b6e,f4147768984..2983ca523a9
--- a/changelog/v2.json
+++ b/changelog/v2.json
@@@ -1,11 -1,18 +1,26 @@@
[
+ {
+ "children": {},
+ "date": "2026-04-16",
+ "version": "2.1.50"
+ },
{
"children": {
++<<<<<<< HEAD
++=======
+ "fixes": ["fix minify cli.", "recent delete."]
+ },
+ "date": "2026-04-16",
+ "version": "2.1.51"
+ },
+ {
+ "children": {},
+ "date": "2026-04-16",
+ "version": "2.1.50"
+ },
+ {
+ "children": {
++>>>>>>> origin/main
"improvements": ["add agent task system database schema."]
},
"date": "2026-03-26",
diff --cc package.json
index 2645e62ce34,7e0fbcd7495..4b993a0ec88
--- a/package.json
+++ b/package.json
@@@ -1,6 -1,6 +1,10 @@@
{
"name": "@lobehub/lobehub",
++<<<<<<< HEAD
+ "version": "2.1.50",
++=======
+ "version": "2.1.51",
++>>>>>>> origin/main
"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 --cc src/features/Onboarding/components/ModeSwitch.test.tsx
index 333f1882090,c63cf482da0..7274145e28b
--- a/src/features/Onboarding/components/ModeSwitch.test.tsx
+++ b/src/features/Onboarding/components/ModeSwitch.test.tsx
@@@ -87,8 -50,10 +87,15 @@@ afterEach(() =>
const TEST_TIMEOUT_MS = 15_000;
describe('ModeSwitch', () => {
++<<<<<<< HEAD
+ it('renders both onboarding variants when agent onboarding is enabled', () => {
+ renderModeSwitch({ enabled: true, showLabel: true });
++=======
+ it(
+ 'renders both onboarding variants when agent onboarding is enabled',
+ async () => {
+ await renderModeSwitch({ enabled: true, showLabel: true });
++>>>>>>> origin/main
expect(screen.getByText('Choose your onboarding mode')).toBeInTheDocument();
expect(screen.getByRole('radio', { name: 'Conversational' })).toBeChecked();
@@@ -97,25 -62,20 +104,39 @@@
TEST_TIMEOUT_MS,
);
++<<<<<<< HEAD
+ it('hides the onboarding switch entirely when agent onboarding is disabled', () => {
+ renderModeSwitch({ enabled: false });
+
+ expect(screen.queryByRole('radio', { name: 'Conversational' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('radio', { name: 'Classic' })).not.toBeInTheDocument();
+ expect(screen.queryByText('Choose your onboarding mode')).not.toBeInTheDocument();
+ },
+ TEST_TIMEOUT_MS,
+ );
+
+ it('hides the onboarding switch until server config is initialized', () => {
+ renderModeSwitch({ enabled: true, serverConfigInit: false });
+
+ expect(screen.queryByRole('radio', { name: 'Conversational' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('radio', { name: 'Classic' })).not.toBeInTheDocument();
+ });
++=======
+ it(
+ 'hides the onboarding switch entirely when agent onboarding is disabled',
+ async () => {
+ await renderModeSwitch({ enabled: false });
+
+ expect(screen.queryByRole('radio', { name: 'Conversational' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('radio', { name: 'Classic' })).not.toBeInTheDocument();
+ expect(screen.queryByText('Choose your onboarding mode')).not.toBeInTheDocument();
+ },
+ TEST_TIMEOUT_MS,
+ );
++>>>>>>> origin/main
- it('keeps action buttons visible when agent onboarding is disabled', async () => {
- await renderModeSwitch({
+ it('keeps action buttons visible when agent onboarding is disabled', () => {
+ renderModeSwitch({
actions: <button type="button">Restart</button>,
enabled: false,
});