openclaw/extensions
Tyler Yust 087dca8fa9
fix(subagent): harden read-tool overflow guards and sticky reply threading (#19508)
* fix(gateway): avoid premature agent.wait completion on transient errors

* fix(agent): preemptively guard tool results against context overflow

* fix: harden tool-result context guard and add message_id metadata

* fix: use importOriginal in session-key mock to include DEFAULT_ACCOUNT_ID

The run.skill-filter test was mocking ../../routing/session-key.js with only
buildAgentMainSessionKey and normalizeAgentId, but the module also exports
DEFAULT_ACCOUNT_ID which is required transitively by src/web/auth-store.ts.

Switch to importOriginal pattern so all real exports are preserved alongside
the mocked functions.

* pi-runner: guard accumulated tool-result overflow in transformContext

* PI runner: compact overflowing tool-result context

* Subagent: harden tool-result context recovery

* Enhance tool-result context handling by adding support for legacy tool outputs and improving character estimation for message truncation. This includes a new function to create legacy tool results and updates to existing functions to better manage context overflow scenarios.

* Enhance iMessage handling by adding reply tag support in send functions and tests. This includes modifications to prepend or rewrite reply tags based on provided replyToId, ensuring proper message formatting for replies.

* Enhance message delivery across multiple channels by implementing sticky reply context for chunked messages. This includes preserving reply references in Discord, Telegram, and iMessage, ensuring that follow-up messages maintain their intended reply targets. Additionally, improve handling of reply tags in system prompts and tests to support consistent reply behavior.

* Enhance read tool functionality by implementing auto-paging across chunks when no explicit limit is provided, scaling output budget based on model context window. Additionally, add tests for adaptive reading behavior and capped continuation guidance for large outputs. Update related functions to support these features.

* Refine tool-result context management by stripping oversized read-tool details payloads during compaction, ensuring repeated read calls do not bypass context limits. Introduce new utility functions for handling truncation content and enhance character estimation for tool results. Add tests to validate the removal of excessive details in context overflow scenarios.

* Refine message delivery logic in Matrix and Telegram by introducing a flag to track if a text chunk was sent. This ensures that replies are only marked as delivered when a text chunk has been successfully sent, improving the accuracy of reply handling in both channels.

* fix: tighten reply threading coverage and prep fixes (#19508) (thanks @tyler6204)
2026-02-17 15:32:52 -08:00
..
bluebubbles chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
copilot-proxy chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
device-pair chore: wtf. 2026-02-17 13:36:48 +09:00
diagnostics-otel chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
discord chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
feishu chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
google-antigravity-auth chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
google-gemini-cli-auth chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
googlechat chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
imessage fix(subagent): harden read-tool overflow guards and sticky reply threading (#19508) 2026-02-17 15:32:52 -08:00
irc chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
line chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
llm-task chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
lobster chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
matrix fix(subagent): harden read-tool overflow guards and sticky reply threading (#19508) 2026-02-17 15:32:52 -08:00
mattermost chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
memory-core chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
memory-lancedb chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
minimax-portal-auth chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
msteams chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
nextcloud-talk chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
nostr chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
open-prose chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
phone-control chore: wtf. 2026-02-17 13:36:48 +09:00
qwen-portal-auth TypeScript: add extensions to tsconfig and fix type errors (#12781) 2026-02-09 10:05:38 -08:00
shared refactor(extensions): dedupe connector helper usage 2026-02-16 14:59:30 +00:00
signal chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
slack chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
talk-voice Gateway/Plugins: device pairing + phone control plugins (#11755) 2026-02-08 18:07:13 +01:00
telegram chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
thread-ownership test(extensions): cast fetch mocks to satisfy tsgo 2026-02-16 21:25:35 -05:00
tlon chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
twitch chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
voice-call chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
whatsapp chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
zalo chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00
zalouser chore(release): bump version to 2026.2.17 2026-02-17 23:08:55 +01:00