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