Commit Graph
198 Commits
Author SHA1 Message Date
Soulter 35c46433f4 refactor: remove unused subagent API and SDK surface 2026-11-08 22:03:14 +08:00
Soulter 6e8d7eb48f refactor: route agent stop requests through runtime turns 2026-11-08 21:53:22 +08:00
Soulter 1354b455b3 chore: merge master into refactor/agent 2026-11-05 16:50:13 +08:00
一张白纸 10364e85a3 chore: replace legacy AstrBot icons with new artwork (#10997) 2026-11-05 12:41:11 +08:00
Soulter be4c46035b refactor: decouple main agent input from the native runtime 2026-11-04 23:34:52 +08:00
Soulter 9bbe3168e1 refactor: move subagent orchestration into the native runtime 2026-11-04 21:22:48 +08:00
Soulter 7dbf0aa469 refactor: standardize native agent runtime output events 2026-11-04 20:30:03 +08:00
Soulter 3ebd5809bb refactor: expose agent operations through the plugin facade 2026-11-04 19:42:21 +08:00
Soulter d9c8e9228a refactor: share native execution and history across agent sessions 2026-11-04 17:08:56 +08:00
Soulter 3ef71bcf30 refactor: unify native agents behind runtime sessions (#10973)
* refactor: code structure and agent runtime

* feat: enhance plugin SDK with public agent contexts, message types, and utility functions

* docs: update import statements to reflect changes before AstrBot v4.30.0

* feat: expose conversation agent SDK with turn controls

* refactor: introduce AgentConfig and profile-scoped subagent management

* fix: complete AgentConfig backup and CI integration
2026-11-04 16:28:02 +08:00
Gao JinzheandSoulter abaf9a0d68 refactor: extract subagent orchestration into a built-in extension (#10733)
* refactor: move subagent orchestration into plugin

* fix: retain legacy Agent SDK during plugin extraction

* fix: retain legacy subagent orchestrator for plugin compatibility

* fix: stop injecting legacy subagent router instructions

* refactor: retain legacy subagents only for plugin SDK compatibility

* docs: update subagent expert management guide and screenshots

* docs: describe current subagent workflows without migration history

* feat: bundle subagents as a built-in extension

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-11-03 17:22:44 +08:00
Ruochen Pan b3d7c5ef98 fix: improve responsive provider configuration layout (#10949) 2026-11-02 14:02:55 +08:00
Ruochen Panandtong b2df5f52c8 feat: add native Windows AppContainer sandbox (#10466)
* feat: add native Windows AppContainer sandbox

* feat: expose Windows sandbox policies in dashboard

* docs: explain Windows local sandbox setup and limitations

* fix: serialize Windows sandbox process cleanup

* fix: use IOCP for Windows sandbox sessions

* fix: align Windows dependencies and file access tests

* docs: add Windows sandbox screenshots and update shell guidance

* fix: preserve conditional ACEs during Windows sandbox setup

* Merge remote-tracking branch 'origin/master' into fix/pr10466-merge-master
# Conflicts:
#	dashboard/src/components/shared/LocalPermissionMatrix.vue
#	dashboard/src/i18n/locales/en-US/features/config-metadata.json
#	dashboard/src/i18n/locales/ja-JP/features/config-metadata.json
#	dashboard/src/i18n/locales/ru-RU/features/config-metadata.json
#	dashboard/src/i18n/locales/zh-CN/features/config-metadata.json
#	docs/en/use/astrbot-agent-sandbox.md
#	docs/en/use/computer.md
#	docs/zh/use/astrbot-agent-sandbox.md
#	docs/zh/use/computer.md

* fix(webui): clarify local permission status and setup guidance

* docs: preserve upstream guidance alongside Windows additions

---------

Co-authored-by: tong <erxian.zhang@foxmail.com>
2026-11-02 10:52:59 +08:00
一张白纸andSoulter d203f84b7d fix(logs): attribute plugin failure logs to the plugin (#10904)
* fix(logs): attribute plugin failure logs to the plugin

Framework logs about a plugin (loading progress, load tracebacks, handler and hook errors) went through the core logger, so their records carried no plugin name. The WebUI Logs page builds its plugin filter from that field, so a plugin that failed to load appeared in the unified log but was missing from the filter dropdown.

- Respect an explicit plugin_name passed through logging extra in the record enricher.
- Emit plugin load lifecycle logs through the plugin's own logger.
- Attribute plugin handler and hook failure logs to the plugin.

Fixes #10888

* fix: preserve framework log attribution and levels

* docs: simplify plugin log filter guidance

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-11-01 19:04:51 +08:00
Soulter 15e1b9996e fix: notify plugin views when SSE streams close (#10932)
* fix: notify plugin views when SSE streams close

* Delete dashboard/tests/pluginPageSSE.test.mjs
2026-11-01 18:42:57 +08:00
一张白纸 6cb55c6c77 docs(theme): modify theme color (#10896) 2026-10-31 18:58:03 +08:00
Soulter 734b357fe3 feat: add portable message buttons (#9809)
* fix: handle DingTalk app creation status

* feat: add portable message buttons

* test: mark command group messages as non-interactive

* feat: add button action timeouts and rename plugin filter

* feat: show bilingual notices for expired button actions

* refactor: nest button actions and styles under Button

* docs: describe current button API without draft history

* docs: list supported button platforms
2026-10-31 11:16:36 +08:00
Wei ChengqianandSoulter db7f5f3e0f fix: use the active session workspace in ChatUI file panel (#10883)
* fix: resolve ChatUI files in the active session workspace

* fix: preserve workspace downloads when closing the panel

* refactor: simplify workspace download regression tests

* fix: preserve legacy workspace API calls without a session

* fix: resolve workspace paths from validated session records

* Delete dashboard/tests/workspaceFileDownload.test.mjs

---------

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
2026-10-31 11:01:00 +08:00
Soulter 3d92821ad9 docs: refine provider integration docs. 2026-10-30 17:14:02 +08:00
氕氙 abf6830719 fix(dashboard): offer Gemini-native quick templates for custom_extra_body (#10771)
* fix(dashboard): offer Gemini-native quick templates for custom_extra_body

* docs: correct Gemini custom parameter docs and add zh page
2026-10-28 13:35:26 +08:00
lxfightandSoulter dad255c60f feat(provider): add decision provider with System One adapter (#10775)
* feat(provider): add decision provider service

* feat(provider): add System One decision adapter

* feat(dashboard): configure decision providers

* docs: document decision providers

* fix(provider): avoid logging decision response bodies

* fix(provider): roll back failed provider creation

* fix(provider): reject unknown decision option keys

* fix(provider): normalize invalid decision response encoding

* refactor(provider): inline decision provider lookup

* fix(dashboard): remove OpenAI-specific header hint

* fix(provider): bound decision latency

Use a two-second default timeout and treat request_max_retries as retries after the initial request, with no retries by default.

* test(provider): cover terminating an unknown provider

* fix(provider): relax decision probability validation

Make probability tolerance configurable, allow the selected option to deviate from the maximum within that tolerance, and include a bounded response summary in warnings and errors.

* fix(decision): cap state size and add yes_no default

Reject oversized decision state before dispatch and allow callers to provide a fail-open or fail-close fallback for yes/no questions.

* refactor(provider): avoid indexing missing provider IDs

Look up the provider instance once and return early for unknown IDs, removing repeated inst_map indexing from termination.

* fix(provider): enforce a total decision timeout

Cap the complete decision request, including retries and backoff, with a configurable five-second total timeout.

* fix(provider): limit concurrent decision requests

Use a per-provider semaphore with a configurable default limit of four concurrent requests.

* refactor(provider): narrow decision state type

Restrict decision state to str, list, or dict and expose the shared DecisionState alias through the plugin provider API.

* fix(provider): update decision tab order and provider logos

* fix(provider): use a single API key for System One

* fix(config): validate System One keys as strings

* chore: remove extra tests and changelog updates

* refactor(webui): group decision provider advanced settings

* refactor(decision): remove arbitrary state character limit

* refactor(decision): keep probability validation internal

* docs: remove decision provider setup section

* docs: remove English decision provider setup section

* refactor(decision): rename choice options to criteria

* feat(decision): support System One score questions

* docs: name decision convenience method arguments

* refactor(decision): use criteria in choose convenience method

* refactor(decision): split answers by question type

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-10-27 14:52:18 +08:00
Magenta QinandSoulter 866f6f420a feat: integrate SerpApi Google News API (#10773)
* refactor: migrate SerpApi requests to official Python SDK

* feat: add SerpApi Google News search

* refactor: restore direct HTTP requests for SerpApi

* Update unreleased.md

---------

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
2026-10-27 11:38:07 +08:00
糯米茨 0afdd5ff5b docs: update community group listings (#10767)
* Update community.md

* Update community.md

* Update welcome.json

* Update welcome.json

* Update welcome.json

* Update welcome.json

* Update welcome.json
2026-10-26 23:51:01 +08:00
一张白纸andSoulter 8da799426c feat(cron): share group task lists and allow admin deletion (#10785)
* feat(cron): let admins manage group future tasks

* refactor(cron): inline group admin permission check

* fix(cron): block scheduled runs after deletion begins

* feat(cron): let all group members list future tasks

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-10-26 23:40:45 +08:00
Soulter 832fc6d98a feat: add selective data cleanup when deleting bots (#10761)
* feat: add selective data cleanup when deleting bots

* fix(dashboard): identify bot in cleanup prompt

* fix: reject incompatible conversation databases before cleanup

* revert: remove conversation schema compatibility guards
2026-10-25 19:51:08 +08:00
一张白纸 0ddb3f8771 docs(community): add QQ Group 17 (#10754) 2026-10-25 18:26:23 +08:00
Soulter de1d4ef6c1 refactor(dashboard): simplify context compression settings (#10753) 2026-10-25 15:20:10 +08:00
Soulter c766b43794 feat: add sender and umo source selectors for core and plugin (#10747)
* feat(dashboard): add user and session source selectors

* test(dashboard): remove selector interaction tests

* docs: remove WebUI guide changes from selector PR

* feat(dashboard): add session source refresh button

* feat(qq_official): cache group metadata before creating events

* feat(lark): cache group metadata before creating events

* fix(dashboard): order session sources and deduplicate user suggestions

* fix(lark): reuse sender name lookup for group chats

* docs(webui): add sid command hints to user and session selectors

* feat(dashboard): paginate recorded user selection

* feat(dashboard): align session source display with user rows

* fix(dashboard): keep session titles single-line with consistent fonts

* feat(dashboard): add hover copy buttons to user and session selectors

* fix(dashboard): reclaim copy button space and wrap selected session titles

* fix(dashboard): disable copy button fade transitions
2026-10-25 14:41:36 +08:00
Soulter 56ba2195ac docs: add SerpApi and DeepSeek Search API guides (#10731) 2026-10-24 22:09:58 +08:00
一张白纸 28836880eb fix(dashboard): clarify log plugin filter scope (#10691)
The plugin filter on the Logs page only lists plugins found in the retained log cache, but its placeholder said "All plugins", which made users think installed plugins were missing.

Rename the placeholder to "Plugins in current logs", add a hint that the list is not the installed-plugin list, update all locale bundles and the WebUI docs, and add a test documenting the option source.

Fixes #10667
2026-10-24 12:42:56 +08:00
Soulter d6a67da90c fix(dashboard): restore default chat model selection (#10663)
* fix(dashboard): restore default chat model selection

* Delete dashboard/tests/providerModelSelection.test.mjs

* fix(dashboard): clarify default chat model option
2026-10-21 19:45:29 +08:00
Soulter 5701a1d56f fix: preserve persistent data in backups (#10661)
* fix: preserve persistent data in backups

* fix: exclude workspaces from backup changes
2026-10-21 18:49:41 +08:00
Soulter 5881367c40 fix(dashboard): complete diagnostic export improvements (#10659)
* feat(dashboard): improve diagnostic export and add time ranges

* refactor(dashboard): move diagnostics into maintenance settings
2026-10-21 15:39:21 +08:00
Niansiaandadvent259141 f52fe198a5 feat(dashboard): export logs from the console and settings pages (#10418)
* feat(dashboard): export logs from the console and settings pages

Add GET /api/v1/logs/export, which packs the log files and the in-memory
logs into a zip archive. The files come from StorageCleaner, so log and
trace log paths configured outside data/logs are included too, and the
in-memory cache is split into memory/logs.txt and memory/traces.jsonl.

Add an Export Logs button to the console page and to the log and cache
cleanup panel in Settings.

Closes #10407

* feat(dashboard): skip non-regular files and add a manifest to log exports

Only pack regular files, so a symlink in a log directory cannot pull in a
file from elsewhere and a FIFO cannot block the export. Skipped files and
files that disappear while packing are listed in manifest.json with the
reason, together with the AstrBot version and the in-memory log counts.

Also keep same-named log files from different directories apart, and
remove archives left behind by cancelled downloads.

* fix(dashboard): harden log export against swapped files and disk use

Open each log file without following symlinks or blocking on FIFOs and
check the opened descriptor, so a file swapped after the lstat() check
cannot get into the archive. Run one export at a time and check the free
temp space before packing.

Reserve the generated archive entries and dedupe every file name, move
the temp directory setup into the handled block, and say in the tooltip
and docs that without file logging the archive mostly has in-memory logs,
since older log files on disk are still included.

* feat(dashboard): unify diagnostic and log export

---------

Co-authored-by: advent259141 <2968474907@qq.com>
2026-10-21 13:59:33 +08:00
Soulter f2404c1917 fix(dashboard): clarify configuration hints and hide disabled options (#10647)
* fix(dashboard): clarify configuration hints and conditional options

* docs: explain conditional segmented reply settings
2026-10-20 14:49:41 +08:00
Soulter 5d36ad2347 feat(install): add multilingual setup and mainland China mirrors (#10629)
* feat(install): add multilingual setup and mainland China mirrors

* fix(install): support PowerShell 5.1 and Invoke-Expression

* fix(install): support BOM-free PowerShell pipeline execution

* fix(install): configure UTF-8 console output

* fix(install): set Windows console code page internally

* fix(install): keep IEX bootstrap menu ASCII-only

* fix(install): default language selection to English

* test(install): cover language source defaults

* fix(test): escape PowerShell assertion patterns

* fix(install): restore localized language menu

* fix(install): list English as first language

* fix(install): put English first in language prompt

* feat(install): add indented AstrBot installer header

* fix(install): apply indentation consistently

* feat(install): show AstrBot startup commands

* docs(install): clarify AstrBot startup steps

* feat(install): fall back from Python mirror

* fix(install): keep Windows setup in one console

* ci: run install tests in fixed shells

* fix(install): tolerate a removed current directory

* docs: simplify script deployment instructions

* fix(install): align Bash wizard with PowerShell flow

* fix(install): refresh shell before manual startup

* docs: rename deployment sidebar entries

* fix: restore PowerShell 5.1 installer compatibility

* test: isolate reboot thread mock from asyncio executor

* test: shorten long prompt IDs for Windows

* fix: keep completed traces closed when update timestamps collide
2026-10-20 13:09:47 +08:00
Soulter fc6b326fc9 fix: show clickable desktop update notices in header (#10622)
* fix: show clickable desktop update notices in header

* fix: recover stalled desktop update checks

* Delete dashboard/tests/desktopUpdateCheck.test.mjs
2026-10-19 17:30:40 +08:00
Wei ChengqianandSoulter 1f1d3fb004 fix(dashboard): localize plugin names in sidebar (#10576)
* fix(dashboard): localize plugin names in sidebar

* test: simplify plugin sidebar i18n regression coverage

* Delete dashboard/tests/pluginSidebarItems.test.mjs

---------

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
2026-10-18 18:24:32 +08:00
Soulter 8774e53ff4 feat: improve message tracing and add bounded SQLite history (#10515) (#10614)
* feat: expand message tracing and redesign trace explorer

* feat: add trace metadata chips and preserve response ownership

* feat: show full-width tracing list with optional details

* style: remove gray trace tab card

* feat: unify trace toolbar controls and use Vuetify datatable

* style: use native Vuetify trace table rows

* fix: prevent trace platform header wrapping

* feat: persist message traces in bounded SQLite storage

* fix: expose trace settings and preserve long prompt attributes

* docs: simplify trace storage setting hints

* feat: add trace history cleanup and disk usage accounting

* fix: finish event traces and fold Agent execution chains

* feat: fold long trace messages and consolidate persona metadata

* fix: hide redundant adapter event labels in traces

* refactor: remove redundant persisted span metadata

* feat: paginate trace history with Vuetify table controls

* style: reduce trace table text size

* style: increase trace table text to 13px

* style: flatten trace status chips and narrow platform column

* feat: show independent Agent and command trace types

* feat: show cumulative Agent token usage in trace details

* style: abbreviate trace token counts with k and M

* style: reduce trace table header height

* feat: show group and private chat trace types

* fix: include month and day in trace timestamps

* style: use system trace fonts and blue running status

* style: separate trace origin and sender metadata rows

* fix: trace successful proactive message tool deliveries

* feat: show model persona and tool counts on Agent headings

* style: prefix trace plugin chips with puzzle icons

* style: add icons and spacing to Agent metadata chips

* style: remove execution mode prefix from trace chips

* refactor: centralize response tracing without source attribution

* style: hide module metadata in trace details

* refactor: omit redundant module metadata from plugin traces

* refactor: remove obsolete module filtering from trace UI

* feat: expose trace recording toggle in system settings

* docs: simplify trace recording setting description

* feat: retain traces only for command responses and Agent calls

* fix: revert trace admission filtering and expand writer queue

* refactor: adopt OpenTelemetry SDK and simplify trace tests

* refactor: separate event and trace execution contexts

* fix: include OpenTelemetry SDK in runtime requirements

* refactor: dispatch session waiters in the core pipeline

Preserve access and safety checks before waiter dispatch and limit built-in group context handlers to group messages.

* test: remove trace dashboard tests

* fix: recover orphaned traces and enforce minimum storage budget

* fix: increase trace queue byte budgets and remove frame count limit
2026-10-18 17:09:08 +08:00
Soulter 3be08aca2e feat: add SerpApi search tools and provider descriptions (#10601) 2026-10-17 17:31:47 +08:00
letr ff22dacf05 feat(websearch): add DeepSeek search and page fetching (#10599)
* feat(websearch): add DeepSeek search and page fetching

Add DeepSeek Search and Fetch builtin tools with validated inputs, API key rotation, and WebChat source citations. Expose the provider in WebUI configuration and update localized metadata, documentation, and tests.

Refs #10598

* fix(websearch): validate ports in DeepSeek fetch URLs

* docs(websearch): add DeepSeek query examples and clarify fetching
2026-10-17 14:16:39 +08:00
Soulter 8c99c2ce92 fix: restore Windows workspace files and simplify Local permissions (#10584)
* fix: fall back to legacy local permissions without isolation

* fix: support Windows workspace files and unify local defaults

* test: align local permission coverage and documentation

* fix: align effective local permissions across UI and tools

* fix: explicitly handle sandbox probe timeouts

* fix: fail closed when required local isolation is unavailable

* test: assert isolation denial details in execution tools

* fix: migrate Windows member defaults to workspace access

* docs: revert Chinese permission migration paragraph

* docs: remove redundant welcome setup explanation

* docs: restore original Chinese isolation guidance

* docs: restore original Chinese Windows guidance

* fix: remove persistent local isolation notice

* fix: explain available ways to grant local execution

* fix: include role in local execution permission errors

* fix: show saved execution permissions with inactive status

* fix: simplify inactive execution help text

* fix: clarify user ID in administrator access guidance

* fix: allow Windows drive mappings in restricted file access

* fix: offer optional remedies for unavailable local isolation

* fix: explain local isolation requirements and policy choices

* fix: shorten local isolation permission guidance

* fix: return local isolation denials only through tools

* test: update local isolation denial assertions
2026-10-17 13:41:20 +08:00
Soulter ffd77c90e6 feat: improve log filtering and console workspace (#10514) 2026-10-14 19:00:42 +08:00
Wei Chengqian 770bd0e069 fix: migrate pnpm configuration for pnpm 11 compatibility (#10541) 2026-10-13 21:22:18 +08:00
Soulter 170eeca08b fix: disambiguate plugin view sidebar items (#10502)
* fix: disambiguate plugin view sidebar items

* docs: explain plugin view metadata

* docs: clarify plugin view metadata location
2026-10-11 18:07:46 +08:00
Wei Chengqian b2696ce266 fix: localize LLM request errors in ChatUI (#10478)
* fix: localize LLM request errors in ChatUI

* refactor: limit LLM error localization to ChatUI rendering

* fix: localize built-in LLM errors using the request locale

* docs: regenerate OpenAPI artifacts for chat locale

* fix: preserve existing conversation error handling
2026-10-11 09:58:06 +08:00
Soulter 736b1f1bbc fix(dashboard): simplify local isolation and improve usage documentation (#10487)
* fix(dashboard): simplify local isolation controls and setup guidance

* docs: organize plugin and built-in AI guides

* docs: expand plugin guides for newcomers

* docs: refresh AI and extension guides with current UI screenshots

* docs: remove WebUI route details from usage guides
2026-10-10 22:11:31 +08:00
ankaandSoulter 8763c58a98 feat(dashboard): add model settings shortcuts and access control section (#10321)
* feat(dashboard): add model settings shortcuts and access control section

* docs: align remaining configuration paths and permission guidance

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-10-10 00:23:24 +08:00
Soulter 9fa49087b1 fix(dashboard): keep content frame fixed and remove sidebar customization (#10480)
* fix(dashboard): keep content frame fixed and remove sidebar customization

* fix(dashboard): pin config and settings panes and restore card borders
2026-10-09 23:00:48 +08:00
Soulter 65cbe98f9a feat: ship astrbot CLI in Docker image for in-container password reset (#10442)
* feat: ship astrbot CLI in Docker image for in-container password reset

Install the project itself into the image so the `astrbot` console
script (including `astrbot password` and `astrbot conf set`) is
available inside the container, and mark /AstrBot as an initialized
AstrBot root via the .astrbot marker file.

This lets Docker users reset a forgotten dashboard password with:

    docker exec -it astrbot astrbot password

Document the workflow in the zh/en Docker deployment guides, including
the required container restart for the new password to take effect.

* docs: reorganize FAQ password reset section by deployment method

Split the forgot-password FAQ entry into Docker, uv/pip package, and
other deployment subsections. The Docker entry uses the in-container
CLI shipped with the image; the uv/pip entry covers `astrbot password`
and `astrbot run --reset-password`; the manual cmd_config.json edit
remains as the universal fallback.

* docs: mention --username option in uv/pip FAQ password reset entry

* docs: drop --reset-password mention from FAQ to keep reset steps unambiguous

* docs: clarify that the first astrbot in docker exec is the container name

* feat: use editable install for astrbot CLI in Docker image

Install the project with 'uv pip install -e .' so the astrbot console
script always reflects the source tree baked into the image, avoiding
drift between the CLI and the running server code.
2026-10-07 23:38:40 +08:00