| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(aiocqhttp): log unsupported inline_keyboard segments at debug level (#11414) * fix(aiocqhttp): log unsupported inline_keyboard segments at debug level * test(aiocqhttp): sanitize synthetic IDs in inline_keyboard unit tests * chore(aiocqhttp): remove added test file and translate debug log to English | 3 天前 | |
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 天前 | |
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> | 2 天前 | |
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> | 2 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 | 1 个月前 | |
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> | 2 天前 | |
refactor(qqofficial)!: remove the use_markdown platform option (#11378) The QQ Official adapters now always use Markdown for proactive messages. MessageChain.use_markdown(False) remains the message-level opt-out. Existing platform configs drop the removed key when loaded. | 5 天前 | |
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 天前 | |
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 天前 | |
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> | 2 天前 | |
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 | 3 天前 | |
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> | 2 天前 | |
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> | 2 天前 | |
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> | 2 天前 | |
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> | 2 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 天前 | ||
| 4 天前 | ||
| 2 天前 | ||
| 2 天前 | ||
| 4 天前 | ||
| 4 天前 | ||
| 4 天前 | ||
| 1 个月前 | ||
| 2 天前 | ||
| 5 天前 | ||
| 3 天前 | ||
| 4 天前 | ||
| 2 天前 | ||
| 3 天前 | ||
| 2 天前 | ||
| 2 天前 | ||
| 2 天前 | ||
| 2 天前 |