* fix: resolve executable builtin tools for delegated sessions
* revert: resolve executable builtin tools for delegated sessions
This reverts commit 078ba3cfee.
* refactor(agent): let runtimes own their tools
Remove the shared builtin tool registry and construct runtime tools where they are used. Delegate the parent's executable tool instances and list only plugin tools in the dashboard's Function Tools panel.
* refactor(agent): preserve executable tools across schema modes
---------
Co-authored-by: Soulter <905617992@qq.com>
* fix: append steering input as user messages
* fix: group steering input into one user message
* feat: detach pending tools on steering and wake on completion
* fix: continue pending steering after plain replies
* test: decode prepared media file URIs on Windows
* fix: preserve whitespace in steering input
* fix: separate batched steering inputs with newlines
* docs: remove verbose steering implementation details
* fix: preserve Gemini user agents and verify background delivery
* fix: honor realtime segmented replies in QQ group chats
* revert: keep QQ streaming changes out of this PR
* test: align plugin page expectations with view metadata
* fix: preserve background tool permissions and result handling
* fix: retain wakeup ownership and initialize context before appending
* fix: combine background wakeup input into one user message
* test: remove redundant background wakeup coverage
* fix: relax background completion prompt restrictions
* fix: simplify background completion prompt
* docs(plugin-new): change QQ Group
**Chit-Chat Group** change to **AstrBot Plugin & Agent interflow Group**.
* docs: update QQ group information and add community guidelines
* docs(plugin-new): remove group rules
* docs: remove discontinued NapCat deployment guidance
NapCat stopped maintenance: the repository now keeps only an ending notice, the NapCat-Docker repository and the mlikiowa/napcat-docker image are gone, so every deployment recipe built on them is dead.
Drop the NapCat appendix, the Docker Compose snippet, and the Kubernetes sidecar tutorial, and genericize the remaining NapCat-specific wording in the token field and the OneBot troubleshooting entry. Keep a short warning so users searching for NapCat still learn why it is gone and are told to evaluate other OneBot v11 implementations themselves.
* chore(k8s): remove the NapCat sidecar manifests
The manifests deploy mlikiowa/napcat-docker, which no longer exists on Docker Hub, so the pod can only end up in ImagePullBackOff. The Kubernetes docs no longer reference this directory.
* chore: drop stale NapCat references from compose comments
Both comments pointed at the deleted NapCat-Docker repository, and the port comment named NapCat although the port is a generic OneBot v11 WebSocket port.
* docs: stop advertising NapCat on the community deployment page
The third-party Docker deployment script can no longer install a working NapCat, so describe it as an AstrBot deployment script only.
* docs: keep the standalone log label in the Kubernetes guide
Only the Sidecar log block is obsolete; keep the standalone log entry so the section still explains which deployment the command belongs to.
* Update aiocqhttp.md
* Update aiocqhttp.md
* Update faq.md
---------
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
* stage
* refactor: linearize conversation events and reclaim plugin snapshots
* test: adapt master tests to event-context APIs after merge
- test_tool_loop_agent_runner: restore @pytest.mark.asyncio on
test_step_notices_reach_model_once_per_threshold (lost in merge).
- test_cron_manager: give the build_main_agent / runner mocks the
conversation_events field and an awaitable aclose, matching the
event-writer wiring in cron/manager.py.
* style: apply ruff formatting to exclude_ids filter in sqlite.py
* test: adapt gemini/message-tools tests to event-context APIs
- test_gemini_source: fake_retry now accepts request_event_recorder,
matching retry_provider_request's new keyword argument.
- test_message_tools: _DummyRespondEvent exposes conversation_events,
which call_event_hook now reads when emitting the after-send hook.
* fix: merge duplicate chat history translations
* refactor: consolidate plugin conversation APIs
* refactor: bind conversation writers to agent execution context
* refactor: separate conversation migration and display projection
Remove deprecated conversation metadata methods and align architecture and plugin documentation with the current APIs.
* refactor: make conversation writer ownership explicit
Use per-run hooks instead of ambient writer and plugin identity bindings. Require explicit conversation IDs for append APIs and separate persistence from execution context mutation.
* fix: harden conversation event writes and request capture
* refactor: remove legacy checkpoints and unify conversation history
* perf: incrementally project acknowledged conversation events
* refactor: clarify agent event and persistence boundaries
* docs: remove event context design notes
* perf: reduce conversation SQL round trips and support PostgreSQL
* refactor: remove PostgreSQL support while retaining SQL optimizations
* refactor: store raw context once and filter temporary content on replay
* test: retain essential event context regression coverage
* refactor: derive conversation revisions from events
Remove persisted event head, context leaf and replay baseline pointers. Derive positions through indexed queries, migrate existing databases and preserve backup compatibility. Refresh conversation activity at turn settlement instead of every execution event.
* refactor: use compact IDs for conversation events
* feat(provider): add OpenAI Decisions API decision provider
Add an independent `openai_decision` provider backed by POST /v1/decisions.
It reuses DecisionService (ask/choose/yes_no) and never joins the main agent
flow.
- Map boolean/choice/score questions to predicate/choice/score with
generated names; match answers by name, keep full distributions,
confidence, fractional scores and the score legend.
- Send string state as text and dict/list-of-dict state as input_json;
reject state and questions the API cannot express before sending.
- Treat refusals and contract violations as DecisionError; reuse the
existing timeout, concurrency and retry conventions.
- Add the "OpenAI Decisions" config template, manager lazy import,
single-string key validation, WebUI support and i18n hints.
- Document configuration and supported inputs; System One is unchanged.
* fix: clarify OpenAI Decisions model hint
* fix(provider): harden OpenAI decision request handling
* fix(provider): validate decision score consistency
* fix(provider): validate decision question input types
* fix(provider): support list state in OpenAI Decisions
---------
Co-authored-by: Soulter <905617992@qq.com>
* feat(dashboard): foldable plugin config groups with a declarative default state
Plugin config pages rendered every group flat, so a plugin with many fields
turned into one long page where the group you care about was hard to find.
`template_list` already solved this for its own entries, so the same folding is
now available for ordinary config groups in the plugin configuration dialog.
- `object` groups in the plugin config editor can be collapsed from their title:
the whole title row is clickable, the hover highlight fills the card, folding
uses `v-expand-transition`, and the header is reachable by keyboard
(role/tabindex/Enter/Space/aria-expanded). The root plugin config object stays
non-collapsible so dialog titles behave as before.
- Folding is opt-in through the `foldable` prop, which only the plugin config
editor passes. Provider and platform editors share the same component and keep
their flat rendering, so no other settings page changes.
- `collapsed: true` in the schema only decides the initial state: such a group
starts folded, groups without it stay expanded. Folding and "starts folded"
are therefore independent.
- Fold toggles are remembered for the current page instance only, via the
in-memory helper `utils/configFoldState.mjs`: switching configs, reopening the
dialog, or navigating within the page keeps the choice, while a reload follows
the schema again instead of a stale preference. A remembered toggle always wins
over the schema default, and a reloaded plugin schema re-seeds the groups the
user has not touched.
- The plugin config dialog drops the previous plugin's schema before requesting
the new one, so groups can no longer be toggled under a namespace that is still
loading.
- The hover block is painted by a pseudo-element rather than by negative margins,
so the header keeps its layout: its geometry comes from two custom properties
the container publishes, `--config-group-inset` (its own padding) and
`--config-group-radius` (its inner corner radius). Expanded and folded groups
use the same block height; folded groups let the container clip the overshoot
and round the corners. The whole block is only painted, never laid out, so
titles never shift and hovering cannot cover a neighbouring group.
* docs(plugin-config): document the collapsible config groups
Describe the `collapsed` field next to the other schema keys, add a collapsible
group example, and spell out the semantics developers and users can rely on:
every `object` group can be folded, the flag only sets the initial state, the
fold state lasts for the current page, and the outermost config object cannot be
folded.
---------
Co-authored-by: XTsat <XTsat@users.noreply.github.com>
* feat(dashboard): expose theme colors to plugin page bridge
Include the active primary and secondary colors in plugin context updates. Resend context on color edits, resets and theme switches without changing sandbox permissions or forcing plugin styles. Cover reactive Vuetify colors and legacy bridge contexts, and document optional color handling in Chinese and English.
* docs(dashboard): simplify plugin theme bridge guidance
Remove the newly added theme bridge tests and keep the developer documentation focused on available color fields, context updates and fallback behavior.
* docs(dashboard): add concise theme color subscription example
* docs(dashboard): translate theme example comments into Chinese
* 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