| Files | Last commit | Last update |
|---|---|---|
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
feat(dashboard): add usage data opt-out toggle to general settings (#11091) * feat(dashboard): add usage data opt-out toggle to general settings disable_metrics existed in the default config and was documented as a WebUI toggle, but it was missing from CONFIG_METADATA_3_SYSTEM, so Settings -> General (which only renders schema-registered items) never displayed it. Register the item in the system settings metadata, expose a Usage Data group in General, and rewrite the copy in zh-CN/en-US/ru-RU/ja-JP to describe the user experience improvement program instead of anonymous usage statistics. Sync docs/zh and docs/en. * fix(dashboard): name the usage data group for the improvement program Keep the opt-out control below Cache in System Settings → General and align the English and Chinese WebUI guides with the localized heading. --------- Co-authored-by: Soulter <905617992@qq.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: keep MP3 payloads when encoding outbound records (avoid WAV inflation) (#10927) * fix: keep mp3 payloads when encoding outbound records to base64 Record.convert_to_base64() forced every outbound audio payload through ffmpeg into PCM WAV before base64 encoding. Since v4.26.0 (#8764) that grew MP3 payloads by roughly 4.4x: a 43 MB / 1083 s 320 kbps MP3 became a 191 MB WAV and a ~243 MiB base64 frame, which is above the 100 MiB OneBot frame limit, so the WebSocket was closed (1009) and the send timed out. Detect the payload format from magic bytes in the audio resolver so that preserve_mp3=True keeps MP3 in its original container. Reading the bytes instead of the file name means base64 payloads and suffix-less CDN URLs are handled correctly, and references with a misleading suffix are no longer passed through as MP3. Other formats keep the v4.26.0 WAV path (their inflation is tracked separately) and an explicit target_format still wins. convert_to_file_path() keeps forcing WAV. The Satori and WebChat adapters now derive the audio MIME type / file extension from the bytes they actually send instead of assuming WAV, and WebChat serves the matching Content-Type. Outbound records are still base64; this does not switch to URL passthrough (#6717, #6850). * chore: remove standalone test file per review feedback --------- Co-authored-by: JosephTian876 <204833675+JosephTian876@users.noreply.github.com> | 3 days ago | |
fix(webchat): preserve reasoning in non-streaming replies (#10458) * fix: preserve segmented WebChat replies * fix: preserve reasoning in non-streaming WebChat replies * docs: sync generated WebChat OpenAPI description * fix: preserve WebSocket and button reply boundaries | 2 days ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
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 | 1 month ago | |
fix: preserve mention info in llm context (#10992) * fix: 保留群聊中 @机器人 的模型上下文 修复群聊中当前消息的 @机器人 标记未传入模型请求的问题。 - 在普通 LLM 请求中补充 DIRECTED AT YOU 标记 - 保留 Agent 运行期间追问的 @机器人 语义 - 避免 Dify 纯图片请求因标记而丢失默认描述提示 - 补充普通请求、追问和第三方 runner 的回归测试 * test: 补齐 Lark 第三方 Stage 测试配置 修复 Dify 配置读取逻辑引入后,Lark 格式化测试因直接实例化 Stage 时缺少 runner_type 和 runner_config 而导致的 CI 失败。 * feat: 保留群聊中 @机器人 的原始位置 - 在适配器中记录机器人被 @ 的位置,模型正文中原地显示为 @昵称(you) - 当前轮附加临时 DIRECTED AT YOU 提醒,不写入长期历史 - 群历史按真实消息组件顺序或 QQOfficial 原始正文投影,修复丢字、重名和顺序错位 - 保留正文、命令解析和插件请求的原有行为 - 补充 OneBot、QQOfficial、请求构建和群历史回归测试 * fix: 保留群聊中 @机器人 的原始位置 - 在 OneBot 和 QQOfficial 群消息中保留有序 Plain/At 组件\n- 在 Agent 输入边界按原位置渲染 @昵称或 @ID,并添加临时身份提醒\n- 让运行中追问保留相同语义,兼容唤醒前缀、语音、附件和显式正文\n- 补充关键行为回归测试并移除旧坐标投影实现 * fix: simplify group mention rendering * fix: preserve Telegram mention order and simplify agent input * test: remove redundant mention rendering tests --------- Co-authored-by: C₂₂H₂₅NO₆ <Sisyphbaous-DT-Project@users.noreply.github.com> Co-authored-by: Soulter <905617992@qq.com> | 7 days ago | |
refactor: reorganize built-in agent modules (#11051) | 21 days ago | |
fix: keep WebChat turns in one history record and stop blocking the loop on button callbacks (#11282) * fix(webchat): keep each assistant turn in one history record The shared chat run (used by SSE and, since #11166, WebSocket) inserted a new bot history record at every streamed segment end and for every non-streamed part such as a button card, so a reply split into several bubbles after a reload, each with its own actions. A tool call was only stored when its result arrived, so a mid-turn save cut it in two (wrong duration) and a card sent while it ran was stored before it. A call that never returned stayed "running" forever. Keep the turn's record on BotMessageAccumulator and update it on later saves. Give a tool call its place in the parts when it starts and complete it in place, and mark calls still without a result at the end of the turn as "unknown". The Open API WebSocket uses the same accumulator. * fix(chatui): show tool calls that never returned as interrupted When a turn ends before a tool call returns, the tool call card kept a running timer, live and after a reload. Mark such calls as "unknown" at the end of the stream, like the backend stores them, and show "Interrupted, result unknown" with a note that the action may have taken effect. The timer now follows the call's state, and a late result clears the mark. * fix(agent): separate consecutive WebChat messages with a paragraph break Two model messages in one turn with no tool call between them (for example after injected sub-agent results) were streamed back to back, so ChatUI showed them as one run-on paragraph. Insert a paragraph break between them on WebChat only; other platforms keep their output unchanged. * fix: register button callbacks without blocking the event loop Registering a button callback wrote to SQLite synchronously on the event loop while holding the registry lock, so a locked database could stall every platform for up to 30 seconds, and a concurrent click's resolve() blocked too. Keep the in-memory entry usable at once and save it on a worker thread outside the lock. A failed save keeps the callback cached and unsaved, and the next registration retries it, so a callback is not lost on restart. Callbacks expired for more than a day are removed from the database, and the in-memory cache is bounded without dropping unsaved callbacks. * fix(dashboard): do not leak the upload cleanup coroutine without a loop ensure_cleanup_task_started built the cleanup coroutine before asyncio rejected it for lack of a running loop, leaving a never-awaited coroutine. Get the running loop first and create the coroutine only when it exists. * docs: describe one-record turns and interrupted tool calls in ChatUI * fix(dashboard): show interrupted Python calls as interrupted in the run details The run details draw Python calls with their own label, which only knew "running" and "done", so a Python call that never returned (phase "unknown") kept showing "running". It now shows "Interrupted, result unknown" like the other tool cards. * fix: keep Open API turns in one record and show interrupted tool calls everywhere The Open API WebSocket now updates the turn's history record like the shared chat run. A failed run marks unreturned tool calls interrupted without waiting for an end event, and the remaining message lists show that state. Button callbacks expired past the retention day leave the cache, and pending callback writes are awaited on shutdown. * fix: await button callback database operations * test: trim WebChat and button callback regression coverage * fix: preserve WebChat follow-up order and disconnected replies * fix: preserve WebChat reply delivery and history * fix: simplify WebChat finalization and index callback expiry * docs: drop WebUI guide changes from turn history fix --------- Co-authored-by: Soulter <905617992@qq.com> | 4 days ago | |
refactor: run built-in agents through runtime sessions (#11052) | 21 days ago | |
feat(agent): add conversation_id to run_turn (#11357) * feat(agent): add conversation_id to run_turn * test: omit standalone conversation ID coverage | 5 days ago | |
feat: background pending tools when steering arrives (#11142) * 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 | 12 days ago | |
refactor: reorganize built-in agent modules (#11051) | 21 days ago | |
perf(config): avoid duplicate config_binding lookup per message (#11409) | 3 days ago | |
feat: unify session configuration mappings and overrides (#11097) * feat: unify session configuration mappings and overrides * test: update persona regression mock for session overrides * fix: preserve knowledge base IDs during session migration * fix: scope effective configuration to each pipeline execution * refactor: remove built-in persona command * refactor: remove obsolete session service and plugin managers * perf: avoid duplicate message configuration deepcopy * refactor: keep message configuration snapshots internal * refactor: make runtime configuration state explicit * refactor: rename runtime configuration to AstrBotConfigSnapshot * refactor: move config binding migration into migration package * refactor: remove obsolete session configuration code * fix: unify bot session mapping cleanup option * fix: delete complete session mappings from bot editor * test: update fixtures for effective session configuration * refactor!: remove obsolete session status and batch APIs * test: remove redundant retired endpoint assertions * test: simplify session configuration regression coverage | 18 days ago | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 1 day ago | |
fix: shut down gracefully on SIGTERM (#11290) * fix: shut down gracefully on SIGTERM Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> * fix: handle SIGTERM during startup and loaded hooks Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> * fix: let WebUI close gracefully on SIGTERM and always dispose DB Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> --------- Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> | 2 days ago | |
fix(dashboard): reject stale WebUI assets in desktop-managed mode (#9898) | 2 months ago | |
feat: support passwordless desktop sessions (#9585) | 3 months ago | |
feat: track chat token usage per request (#11392) * feat: track chat token usage per request * perf: batch chat usage writes in the background * chore: deprecate legacy provider statistics * docs: link provider statistics migration issue * feat: show cache hit rate in model statistics * chore: hide plugin usage ranking from statistics * fix: include historical turns in model performance statistics * chore: remove missing token usage notice from statistics * test: use registered plugin metadata in history hook fixture | 3 days ago | |
refactor: persist model usage with assistant messages (#11158) * refactor: persist model usage with assistant messages * refactor: remove unused provider request recorders | 15 days ago | |
fix: reuse logo tokens and refresh expired platform cache (#10294) | 1 month ago | |
feat: add system language for core and built-in replies (#11254) * feat: add configurable system language for core replies * feat: localize built-in replies within each plugin | 11 days ago | |
fix: shut down gracefully on SIGTERM (#11290) * fix: shut down gracefully on SIGTERM Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> * fix: handle SIGTERM during startup and loaded hooks Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> * fix: let WebUI close gracefully on SIGTERM and always dispose DB Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> --------- Signed-off-by: Бат-Орших <34618353+orshih6@users.noreply.github.com> | 2 days ago | |
feat: show actionable ChatUI error cards (#11259) * feat: show actionable ChatUI error cards * chore: omit documentation changes from error cards PR | 11 days ago | |
feat: console 日志时间戳增加日期(YYYY-MM-DD) (#9617) | 28 days ago | |
feat: unify session configuration mappings and overrides (#11097) * feat: unify session configuration mappings and overrides * test: update persona regression mock for session overrides * fix: preserve knowledge base IDs during session migration * fix: scope effective configuration to each pipeline execution * refactor: remove built-in persona command * refactor: remove obsolete session service and plugin managers * perf: avoid duplicate message configuration deepcopy * refactor: keep message configuration snapshots internal * refactor: make runtime configuration state explicit * refactor: rename runtime configuration to AstrBotConfigSnapshot * refactor: move config binding migration into migration package * refactor: remove obsolete session configuration code * fix: unify bot session mapping cleanup option * fix: delete complete session mappings from bot editor * test: update fixtures for effective session configuration * refactor!: remove obsolete session status and batch APIs * test: remove redundant retired endpoint assertions * test: simplify session configuration regression coverage | 18 days ago | |
feat: unify session configuration mappings and overrides (#11097) * feat: unify session configuration mappings and overrides * test: update persona regression mock for session overrides * fix: preserve knowledge base IDs during session migration * fix: scope effective configuration to each pipeline execution * refactor: remove built-in persona command * refactor: remove obsolete session service and plugin managers * perf: avoid duplicate message configuration deepcopy * refactor: keep message configuration snapshots internal * refactor: make runtime configuration state explicit * refactor: rename runtime configuration to AstrBotConfigSnapshot * refactor: move config binding migration into migration package * refactor: remove obsolete session configuration code * fix: unify bot session mapping cleanup option * fix: delete complete session mappings from bot editor * test: update fixtures for effective session configuration * refactor!: remove obsolete session status and batch APIs * test: remove redundant retired endpoint assertions * test: simplify session configuration regression coverage | 18 days ago | |
refactor: migration to event log backend for conversation storage (#10077) * 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 | 15 days ago | |
refactor: simplify updater architecture (#9493) | 3 months ago | |
fix: use GitHub HEAD when repository branch is unspecified (#10080) * fix: use GitHub HEAD when repository branch is unspecified * fix: preserve download errors when archive cleanup fails | 2 months ago | |
feat: support persona custom error reply message with fallback (#5547) * feat: support persona custom error reply message with fallback * refactor: centralize persona custom error message helpers | 8 months ago | |
feat: add system language for core and built-in replies (#11254) * feat: add configurable system language for core replies * feat: localize built-in replies within each plugin | 11 days ago | |
refactor: run built-in agents through runtime sessions (#11052) | 21 days ago | |
feat: automatically record UMO names (#9909) * feat: automatically record UMO names * refactor: record UMO names only after wake * refactor: record UMO names during wake checks * refactor: extract UMO auto-name recorder | 2 months ago | |
feat: unify session configuration mappings and overrides (#11097) * feat: unify session configuration mappings and overrides * test: update persona regression mock for session overrides * fix: preserve knowledge base IDs during session migration * fix: scope effective configuration to each pipeline execution * refactor: remove built-in persona command * refactor: remove obsolete session service and plugin managers * perf: avoid duplicate message configuration deepcopy * refactor: keep message configuration snapshots internal * refactor: make runtime configuration state explicit * refactor: rename runtime configuration to AstrBotConfigSnapshot * refactor: move config binding migration into migration package * refactor: remove obsolete session configuration code * fix: unify bot session mapping cleanup option * fix: delete complete session mappings from bot editor * test: update fixtures for effective session configuration * refactor!: remove obsolete session status and batch APIs * test: remove redundant retired endpoint assertions * test: simplify session configuration regression coverage | 18 days ago | |
fix(dashboard): reject stale WebUI assets in desktop-managed mode (#9898) | 2 months ago | |
fix: harden API key scope boundaries (#9503) | 3 months ago | |
fix: use GitHub HEAD when repository branch is unspecified (#10080) * fix: use GitHub HEAD when repository branch is unspecified * fix: preserve download errors when archive cleanup fails | 2 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 3 days ago | ||
| 2 days ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 month ago | ||
| 7 days ago | ||
| 21 days ago | ||
| 4 days ago | ||
| 21 days ago | ||
| 5 days ago | ||
| 12 days ago | ||
| 21 days ago | ||
| 3 days ago | ||
| 18 days ago | ||
| 1 day ago | ||
| 2 days ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 days ago | ||
| 15 days ago | ||
| 1 month ago | ||
| 11 days ago | ||
| 2 days ago | ||
| 11 days ago | ||
| 28 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 15 days ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 8 months ago | ||
| 11 days ago | ||
| 21 days ago | ||
| 2 months ago | ||
| 18 days ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago |