Repository navigation
fix: preserve distinct imported CLI session messages - #113703
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa
added a commit
that referenced
this pull request
Aug 31, 2026
* fix(plugins): terminate git clone args so git: specs cannot inject options (#102398) * fix(plugins): terminate git clone args so git: specs cannot inject options A git: install spec whose base ends in .git or is scp-form was passed to git clone as a bare positional. A spec beginning with a dash, such as git:--upload-pack=/path/pwn.git, was parsed by git as an option rather than a repository, reaching a command-execution primitive. The sibling git switch --detach -- <ref> in the same files was already hardened; the clone sites were missed. Add a -- option terminator before the URL at both clone call sites (installPluginFromGitSpec and installSkillFromSource) and reject a leading-dash URL in isGitUrl as defense in depth. * test(plugins): prove git option rejection boundary Co-authored-by: yetval <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 9706aae10aeec17c831d89727089e0af2bf6ebe0) * fix(gateway): validate exact custom browser origins (#38290) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit fa0349aa440b49219889cb9cc59519f8f9e7e461) * fix(gateway): bound sessions.usage all-agent session discovery concurrency (#102013) * fix(gateway): bound sessions.usage all-agent session discovery concurrency * refactor(gateway): centralize usage agent tasks --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 34248e101fd323bb996d9ab265d1c0147c15aa7b) * fix(gateway): parse image data URLs linearly (#102825) Co-authored-by: WangYan <[email protected]> (cherry picked from commit 79d3daa09b57a9db0a50e424fec22f3921a6c3c0) * fix: redact diagnostics config with schema hints (#102426) (cherry picked from commit 436ed5f3085ba57b7baebb697e4bd7479b872a00) * fix(plugins): bound hosted catalog feed reads on non-streaming responses (#101000) Co-authored-by: NIO <[email protected]> Co-authored-by: Cursor <[email protected]> (cherry picked from commit 8cf88bfa121fbb51acd89318e881af38283549ea) * fix(gateway): demote startup close transport races (#104625) * fix(gateway): demote startup close transport races * fix(gateway): remove stale startup close import (cherry picked from commit 78fca7b0c4f6e18c666e47531b7280f5b007f5d9) * fix(sessions): prevent corrupted Unicode in persisted tool details (#104540) * fix(sessions): prevent corrupted Unicode in persisted tool details * test(sessions): consolidate UTF-16 persistence coverage * test(sessions): build redaction fixture from placeholder --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 4a0086d08565e074316883fe778f71892f5b7c66) * fix(models): redact synthetic auth credentials from models status --json (#104734) The provider auth overview passed the caller's synthetic-auth object through to the JSON payload. Status hands it the full runtime shape, which also carries the raw credential, so structural typing let live API keys/tokens ship in a diagnostic surface (#104713). Re-project to the declared value/source fields at the overview boundary. Fixes #104713 (cherry picked from commit 4cfe0077ff0a3079d210338bdd296baaea69d2ff) * fix(gateway): keep channels stopped during shutdown and reload (#104811) * fix(gateway): stop retired health monitor restarts * style(gateway): format health monitor regression * fix(gateway): stop retired monitor account scans * refactor(gateway): coordinate health monitor handoff --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 9b057036e3df8bdf3142a05c1bcb9797ec35c406) * fix(gateway): reject disallowed browser Origin before accepting auth.mode=none on HTTP (#102834) (#102881) * fix(gateway): reject disallowed browser Origin before accepting auth.mode=none on HTTP (#102834) * refactor(gateway): scope HTTP Origin checks to no-auth * fix(gateway): preserve trusted-proxy scan boundary --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 232de2315b0b5d7cde6ad97bb39ac1e3b5fd73c1) * fix(hooks): bound HOOK.md reads during hook install validation (#101469) * fix(hooks): bound HOOK.md reads during hook install validation * fix(hooks): remove unused fs import after switching to bounded reader * test(hooks): cover symlinked install metadata --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 5d34ea774a79cd6718298d8fdc9bbaea97c3605b) * fix(discord): retry reply session init conflicts to prevent silent message loss (#103562) * fix(discord): retry session conflicts without duplicate inbound work Co-authored-by: 陈宪彪0668000387 <[email protected]> * refactor(discord): split session retry policy * refactor(discord): keep retry error private --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 7abc6665dc813db05eaf8dfc4b963978bc33cc27) * fix(gateway): streamed OpenAI-compatible requests fail with a spurious draining error (#113514) * fix(gateway): retain root-work admission for streamed HTTP runs Streaming requests to /v1/chat/completions and /v1/responses dispatch the agent run from a detached `void (async () => {...})()` that intentionally outlives the HTTP handler. The handler itself runs inside runWithGatewayHttpWorkAdmission, which releases its root-work admission as soon as it returns. Because the detached run inherits that same AsyncLocalStorage store, it ends up holding a *released* lease. isGatewaySubordinateWorkAdmissionClosed() returns `current.released` for an inherited store, so every subordinate session/lane admission the run subsequently requests is refused with GatewayDrainingError - on a gateway that is not draining at all. Symptoms: streamed turns fail partway with "Gateway is draining; new tasks are not accepted", surfacing to OpenAI-compatible clients as a generic error chunk. Non-streaming requests are unaffected, because they await the run inside the handler's still-live admission. Fix: retain the admission across the handler boundary with retainGatewayRootWorkAdmissionContinuation() - the helper that already exists for exactly this case ("Transfers an admitted request root to work that intentionally outlives its handler") - and release it in the existing finally block so drain accounting stays balanced. * test(gateway): cover streamed HTTP admission lifetime * test(gateway): satisfy deferred timer lint --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f78d958aca248fd6593b1f7304dd04ba1f4b073d) * fix(gateway): terminate failed Responses streams (#113629) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a653741c5bc860403433a611aeafd730eead8d30) * fix(delivery): apply correct outbound recovery retry delays (#113700) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 49f223e190fe7379af7d60b60833c8b8cba9406f) * fix: preserve distinct imported session messages (#113703) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 97c57585a1001552eb61060e36cb150fc958fb5f) * fix: repair tool-call transcripts when plugins block results (#113697) * fix: preserve tool-call pairing when message hooks block results * test: satisfy tool-result guard boolean lint --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit de916a4fe3f648b560c7ffa3891fad16bf4f78a3) * fix: reject escaped newline shell words (#114134) (cherry picked from commit 95f56b84cbd9e205ed0d05aa561eacf19a81eaa3) * fix(release): carry extended-stable Docker channel tooling * fix(release): add shared release version classifier * fix(release): align version preparation with classifier * fix(google-meet): keep Meet sessions on the agent that joined them (#102331) * fix(google-meet): preserve routed agent across session reuse * chore: defer google meet release note to release closeout --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f85d438164eb954aecdf05b9e1c0102cf05346bf) * fix(mattermost): truncate inbound preview on code-point boundary (#101630) Co-authored-by: NIO <[email protected]> Co-authored-by: Cursor <[email protected]> (cherry picked from commit f77c2aafa09598cf378effc5bca7830f82cc2727) * fix(agents): keep steering metadata truncation UTF-16 safe (#101736) * fix(agents): keep steering metadata truncation UTF-16 safe Replace raw string slicing with truncateUtf16Safe in promptLiteral so emoji and CJK surrogate pairs in steering queue metadata are not split mid-pair at the 500-char MAX_METADATA_CHARS cap. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(agents): add emoji surrogate boundary regression for steering metadata Drive buildMergedAgentSteeringPrompt with a task label placing an emoji at the 500-char MAX_METADATA_CHARS boundary to prove truncateUtf16Safe preserves the surrogate pair instead of splitting it. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(agents): assert steering truncation output * test(agents): remove useless string concat in emoji boundary test --------- Co-authored-by: Alix-007 <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: chengzhichao-xydt <[email protected]> (cherry picked from commit e8bd3ae26a952eda29b16f979abab03ab7df3460) * fix(discord): prevent stale gateway error listeners after restart (#101617) * fix(discord): remove gateway error listener on dispose * fix(discord): preserve late gateway error guard * fix(discord): retain late gateway diagnostics --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 1017ea5bc8048dfee9aff0d6a4be4d7e80f342bf) * fix(discord): keep gateway close reasons UTF-16 safe (#102246) * fix(discord): keep gateway close reasons UTF-16 safe * test(discord): assert exact close reason truncation --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit e90bf318292759ff53a6bb35e3fee75242df1236) * fix(agents): keep truncation surrogate-safe (#102332) * fix(agents): keep truncation surrogate-safe * test(agents): tighten process label truncation coverage --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit b62c796e51d98f6b5dffab31e00b39306d2dc2f0) * fix(discord): split encoded video URLs from captions (#101815) * fix(discord): split encoded video URLs from captions Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * refactor(discord): scope media filename decoding --------- Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 2cb482dd40ad59aae51234e80b51361780e2b771) * fix(gateway): keep session title and preview text truncation UTF-16 safe (#102090) * fix(gateway): keep session title and preview text truncation UTF-16 safe * test(gateway): cover session UTF-16 boundaries in place --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 9614129c2bfb877411780b3568c3a0bc7db0d099) * fix(acp): keep background-task summaries UTF-16 safe at truncation boundaries (#101976) The bounded task label and progress summary shown for child ACP background runs used raw String.slice, which can split a surrogate pair at the 160/240-char boundaries and surface U+FFFD in requester-facing task status. Part of the UTF-16 safety sweep. (cherry picked from commit 6e4670f9c14790264516f70acb5c20dab71eadd5) * fix(acp): keep session update text truncation surrogate-safe (#102378) * fix(acp): keep session update text truncation surrogate-safe acp-projector's truncateText function used String.prototype.slice(0, N) on session update text that is sent to AI providers in the prompt context. When the truncation boundary falls inside a UTF-16 surrogate pair (emoji, CJK extended), the resulting string contains a dangling surrogate that can corrupt the prompt. Replace .slice(0, maxChars-1) with truncateUtf16Safe(input, maxChars-1) so the truncation point always falls on a complete code-point boundary. * fix: make ACP projection truncation UTF-16 safe --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit ba5a212c8f078b93659b05ff14107030e8f05779) * fix(agents): keep chunkString and buildResumeMessage truncation UTF-16 safe (#102085) * fix(agents): keep chunkString and buildResumeMessage truncation UTF-16 safe * fix: preserve code points in agent output chunks --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 9b4cbe47589d3bd7ff90c0c80a8dcdadfceed373) * fix(google-meet): contain node host stream failures (#102105) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 624dfa6cf6dc19d5f52553b45e503f1d4a4678c7) * fix(google-meet): bound Calendar event lookups (#102157) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 28bbbe4f603c17ca770399f044bd8f25c2c8685f) * fix(matrix): keep HTTP error and tool-progress truncations UTF-16 safe (#102395) * fix(matrix): keep HTTP error and tool-progress truncations UTF-16 safe * test(matrix): prove UTF-16 truncation boundaries --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit acac359de64ee9510074c1a5ad4ae1a24663dd78) * fix(security): keep channel-metadata and install-policy truncation surrogate-safe (#102266) * fix(security): keep channel-metadata and install-policy truncation surrogate-safe channel-metadata.ts and install-policy.ts both had private truncateText functions using String.prototype.slice(0, N) on user-visible text. channel-metadata is explicitly user-controlled untrusted content that gets injected into LLM prompt context -- a dangling surrogate from unsafe truncation would corrupt the prompt with invalid Unicode, affecting token counting and potentially LLM response quality. Replace .slice(0, ...) with truncateUtf16Safe(...) in both files so the truncation point always falls on a complete code-point boundary. Add test coverage for buildUntrustedChannelMetadata with emoji at both the entry-level (400-char) and outer (800-char) truncation boundaries. * test(security): prove UTF-16 truncation boundaries --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit cc961001f3c5f05f4086b3573d9cf2bf6fc09502) * fix(telegram): keep DM topic auto-rename user message UTF-16 safe (#101781) * fix(telegram): keep DM topic auto-rename user message UTF-16 safe Add surrogate-boundary regression for auto-topic label input truncation. Co-authored-by: Cursor <[email protected]> * test(telegram): tighten topic label boundary proof --------- Co-authored-by: NIO <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a3f00d32c914ece43c0885d8c7eb26cc78ab612e) * fix: keep task title truncation UTF-16 safe in restart/diagnostic output (#101934) * fix: keep task title truncation UTF-16 safe in restart/diagnostic output Three private copies of formatTaskBlocker share the same pattern — task.title.slice(0, 80) — which can split surrogate pairs in task titles, producing broken U+FFFD in restart blocker diagnostics, gateway reload logs, and CLI run-loop output. Replace raw slice with truncateUtf16Safe in all three locations. Relevant files: - gateway/server-reload-handlers.ts:270 - infra/restart-coordinator.ts:73 - cli/gateway-cli/run-loop.ts:569 * refactor(tasks): centralize restart blocker formatting * fix(tasks): keep restart formatter side-effect free * refactor(tasks): tighten restart blocker ownership --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 7de325d06023ca1a679660b73785795fa00e2218) * fix(channels): keep inbound log previews UTF-16 safe (#102407) * fix(matrix): truncate inbound preview on UTF-16 code-point boundary The matrix inbound verbose preview used bodyText.slice(0, 200) before logging. When a supplementary-plane character (emoji, extended CJK) straddles the 200th code unit, the slice splits its surrogate pair and emits a lone surrogate into the verbose log line. Lone surrogates corrupt JSON log serialization, break terminal rendering, and crash UTF-8-validating log shippers. Use the shared truncateUtf16Safe helper (already used by the mattermost sibling monitor after #101630) to keep complete surrogate pairs intact. No behavior change for ASCII input; the preview is still capped at 200 code units. Co-Authored-By: Claude <[email protected]> * test(matrix): fix inbound-preview test for lint and lib target - Avoid String.prototype.isWellFormed (ES2024 lib): use the encodeURIComponent well-formedness probe instead, which works on the project's TS lib target. - Replace literal string concatenation with template strings to satisfy the no-useless-concat lint rule. No behavior change in the assertions. Co-Authored-By: Claude <[email protected]> * fix(channels): keep inbound log previews UTF-16 safe * test(line): type verbose preview fixtures --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 18e80760a70da0be87e976e32dd29a9c0ab7e098) * fix(agents): keep tool-result context guard truncation UTF-16 safe (#102466) * fix(agents): keep tool-result context guard truncation UTF-16 safe Replace the raw text.slice(0, cutPoint) in truncateTextToBudget with truncateUtf16Safe so oversized tool results do not emit lone surrogates when an emoji falls on the truncation boundary. Adds a regression test that places an emoji exactly at the legacy cut point and asserts the truncated output contains no lone surrogates. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(agents): report surrogate-safe omitted count --------- Co-authored-by: chengzhichao-xydt <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit bc6a4bdd94ab71faa1fc782b70e4c1374c98d041) * fix(tool-policy-audit): use truncateUtf16Safe for audit field truncation (#102464) * fix(tool-policy-audit): use truncateUtf16Safe for audit field truncation Replace naive .slice(0, MAX) with truncateUtf16Safe() to prevent surrogate pair splitting in tool policy audit log output. Co-Authored-By: Claude <[email protected]> * test(agents): cover audit UTF-16 boundary --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 472e5167d38a370b8b9f61b19988dc913585ce95) * fix(native-hook-relay): use truncateUtf16Safe for hook display text truncation (#102467) * fix(tool-policy-audit): use truncateUtf16Safe for audit field truncation Replace naive .slice(0, MAX) with truncateUtf16Safe() to prevent surrogate pair splitting in tool policy audit log output. Co-Authored-By: Claude <[email protected]> * fix(native-hook-relay): use truncateUtf16Safe for hook display text truncation Replace naive .slice(0, N) truncation with truncateUtf16Safe() in: - truncateText() helper (covers 4 call sites for tool display text) - Inline hook result truncation (...[truncated] suffix) Prevents surrogate pair splitting in native hook relay display output (tool names, commands, descriptions shown to users). Co-Authored-By: Claude <[email protected]> * test(agents): cover hook relay UTF-16 boundaries --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 4fa3118049c1592c3a057b25ac4857fa08cfdc38) * fix(gateway): keep chat history display text truncation surrogate-safe (#102470) * fix(gateway): keep chat history display text truncation surrogate-safe truncateChatHistoryText uses slice(0, N) to truncate chat history text for the Control UI. When the truncation boundary falls inside a UTF-16 surrogate pair (emoji, CJK extended), the resulting string contains a dangling surrogate that browsers render as U+FFFD (�). Replace slice(0, maxChars) with truncateUtf16Safe(text, maxChars) so the truncation point always falls on a complete code-point boundary. * test(gateway): cover chat display UTF-16 boundary --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a6d45c46de78fd1aa3fbacf39b6f2aa21821cb83) * fix(auto-reply,infra): keep startup context and heartbeat event text UTF-16 safe (#102483) * fix(auto-reply,infra): keep startup context and heartbeat event text UTF-16 safe * test: strengthen UTF-16 truncation coverage --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f0cc5e500f6658b8dde9100c08588b60649b4c46) * fix(memory): snippets split emoji when truncated (#102478) * fix(memory): snippets split emoji when truncated * refactor(memory): reuse shared UTF-16 truncation --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit c3d567db95d0d17f36f484ad9b9c0d14800614b3) * fix(zalouser): clear probe timeout after auth resolves (#101649) (cherry picked from commit ca8f6e1efd62ea98d4fa496a3e3663ed2d6eba52) * fix(browser): bound Chrome launch stderr diagnostics (#101506) * fix(browser): bound Chrome launch stderr diagnostics * fix(browser): preserve chrome launch recovery diagnostics * refactor(browser): share bounded UTF-8 stderr tails * fix(browser): own bounded stderr storage --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a522e4309cbb5491c941766922a910cc0a1bb5d6) * fix(gateway): keep live chat assistant buffer tail truncation UTF-16 safe (#102484) * fix(gateway): keep live chat assistant buffer tail truncation UTF-16 safe * test(gateway): cover UTF-16 tail cap through merge path --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit e5aefd5656e81fd2eef5ee609d19c1446ad856df) * fix(talk): use truncateUtf16Safe for LLM-prompt-facing text truncation (#102477) * fix(talk): use truncateUtf16Safe for snippet text truncation fast-context-runtime.ts normalizeSnippet and heartbeat-events-filter.ts buildExecEventPrompt used raw .slice(0, N), which can produce lone surrogates when truncation boundaries cross emoji surrogate pairs. * test(talk): cover UTF-16 snippet boundary --------- Co-authored-by: hailory <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f0d4d4f2fccda02915cfa9d467e660f82ff9bb1d) * fix(agents): keep provider error detail truncation UTF-16 safe (#102496) * fix(agents): keep provider error detail truncation UTF-16 safe Replace the raw detail.slice(0, limit - 1) in truncateErrorDetail with truncateUtf16Safe so provider error previews do not emit lone surrogates when an emoji falls on the truncation boundary. Adds a regression test that places an emoji at the default truncation boundary and asserts the formatted detail contains no lone surrogates. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(agents): prove provider error UTF-16 boundary --------- Co-authored-by: chengzhichao-xydt <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 51bb5f684778c8f86f095249d0cd5ce69a631c85) * fix(mcp-runtime): use truncateUtf16Safe for MCP metadata text truncation (#102500) * fix(mcp-runtime): use truncateUtf16Safe for MCP metadata text truncation Replace naive .slice(0, N) with truncateUtf16Safe() to prevent surrogate pair splitting in MCP tool metadata descriptions shown to users through the bundle MCP runtime catalog. Co-Authored-By: Claude <[email protected]> * test(mcp-runtime): cover UTF-16 metadata boundary * style(mcp-runtime): keep imports grouped --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit d0c49a7ad422b12bede975294cf7ef8ccd34a1e8) * fix(compaction): use truncateUtf16Safe for post-compaction context text (#102515) * fix(compaction): use truncateUtf16Safe for post-compaction context text Replace naive .slice(0, maxContextChars) with truncateUtf16Safe() to prevent surrogate pair splitting in post-compaction context summaries sent to the model. Co-Authored-By: Claude <[email protected]> * test(compaction): prove context UTF-16 boundary --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 49a5b6a23575892774967d09d7a2847957942247) * fix(discord): use truncateUtf16Safe for deploy error body truncation (#102525) * fix(discord): use truncateUtf16Safe for deploy error body truncation * test(discord): cover utf16 deploy errors --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit ed9ce1c58438353a17cb7fb0a2213d202c5eb3b4) * fix(oc-path): use truncateUtf16Safe for error message path truncation (#102527) * fix(oc-path): use truncateUtf16Safe for error message path truncation Replace naive .slice(0, 80) with truncateUtf16Safe() at three error-reporting call sites to prevent surrogate pair splitting in oc:// path validation error messages. Co-Authored-By: Claude <[email protected]> * test(oc-path): cover utf16 error truncation --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 145b71f57efce9948a0615bb9e6793d78a0bcf82) * fix(nodes): restore Mac app allowlist execution (#102536) * fix(nodes): restore macOS app allowlist execution * chore: keep node fix out of release changelog (cherry picked from commit 8a7242461c37b15a6b3451517ed8952ad6781565) * fix(google-meet): bound Google API requests (#102149) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 51b4e78c339de48614f5fc578e1d4685c2ca9d8b) * fix(memory-core): use truncateUtf16Safe for diary context truncation (#102524) * fix(memory-core): use truncateUtf16Safe for diary context truncation * test(memory-core): cover utf16 diary truncation * refactor(memory-core): use plugin sdk text runtime --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 6a3834d41d0c29b7cb8659552eb9a80fa2714ad9) * fix(web-fetch): report exact-limit response bodies as complete, not truncated [AI-assisted] (#102389) * fix(web-fetch): report exact-limit response bodies as complete, not truncated * fix(web-fetch): skip zero-byte chunks when confirming overflow past the byte cap * fix(web-fetch): keep uncertain capped bodies truncated --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 574f1315540a82f7ea53410ac9eb57138af91c8f) * fix: keep Gemini thinking disabled after clamp (#101832) * fix: keep Gemini thinking disabled after clamp * fix: preserve clamped Gemini thinking in wrapper * test(ai): cover generic Gemini clamp to off --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f984209f54d5170efe29595a1308b7912d4fe321) * fix(agents): fall stale_run steer refusals through to direct delivery (cherry picked from commit eedeb1eccb318e7bc9cbc0f29e13f9e0549e9a90) * fix(agents): keep provider-class idle tiers under agent budgets and cron (cherry picked from commit 048f2096d2473df2a27d26164f6a6a40b5dce6f4) * fix(agents): extend live CLI no-output watchdog to the blocked-tool floor (cherry picked from commit 4af2ca0a4d780f29015ff3c9c33987335a6c08cc) * fix: installer removes temporary files after failed commands (#104049) * fix(installer): retain temp cleanup registrations * chore: keep installer release notes release-owned (cherry picked from commit f50293c9e73b7e9fce0a0c1123a7335d5d73a1e2) * fix(telegram): clean up split reasoning previews (#97828) Co-authored-by: ly-wang19 <[email protected]> (cherry picked from commit 780f8d6f62f50b4203fb951ef962c18329baba88) * fix(nextcloud-talk): add timeout to room info lookup (#102859) * fix(nextcloud-talk): add timeout to room info lookup * test(nextcloud-talk): assert room lookup deadline Co-authored-by: llagy009 <[email protected]> --------- Co-authored-by: llagy009 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit c4f46baec3178be8c5036193ff813fdc2cdb7154) * fix(minimax): add timeouts to OAuth HTTP requests (#102862) * fix(minimax): add timeouts to OAuth HTTP requests * fix(minimax): remove duplicate OAuth abort signals * refactor(minimax): keep OAuth timeout internal * test(minimax): make OAuth timeout proof deterministic --------- Co-authored-by: llagy009 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 8f8aad9ae69253ecf91526a48f97dcb8d2d43acf) * fix(voice-call): redact phone numbers in event logs via subsystem logger (#103547) * fix(voice-call): redact phone numbers in event logs via subsystem logger * fix(voice-call): add output-level privacy assertions that raw phone numbers are absent from event logs * test(voice-call): consolidate privacy assertions --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 964a83b363d7596c63eb274803d553218c8bad61) * fix(voice-call): consolidate webhook logs on the injected plugin logger and assert transcript privacy boundary (#103555) * fix(voice-call): redact transcript and AI response content from webhook logs * fix(voice-call): wrap catch error in record for subsystem logger meta param * fix(voice-call): consolidate webhook diagnostics on the injected logger and assert privacy boundary in tests * fix(voice-call): restore [voice-call] attribution on shared plugin logger wrapper * fix(voice-call): narrow optional debug callback before constructing wrapper * test(voice-call): consolidate privacy assertions * test(voice-call): share transcript privacy assertions --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 99ddde8726204ad22b0f544156e998d187bdf912) * fix: preserve runtime plugin assets after build (#104229) (cherry picked from commit 1e660ac7b2b8fb1c596b471e52c66ff650f4a8bd) * fix(agents): avoid retaining local service env values (cherry picked from commit 84393bea7a7be017c64ce5e79e2e98ea420b451a) * fix(inworld): add timeout to voices list request (#102965) * fix(inworld): add timeout to voices list request * refactor(inworld): reuse guarded timeout test helpers * test(inworld): rely on harness timeout --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a11449211a2c18b32c14173ff35f1eae7f714e03) * fix(google-meet): validate chrome node policy params (#103752) (cherry picked from commit f8aa995856ecec703e7391e0f3818a16ac844847) * fix(agents): keep exec finalization suspension-safe (#104419) (cherry picked from commit c49e5c480dc20447ab6afc7d75fabe6f8d2023de) * fix(memory): skip blank search provider bootstrap (#103728) * fix(memory): skip blank search provider bootstrap * refactor(memory): simplify blank search preflight --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit cba9ffb177eca82121c39d1eb5cb644c0e41c2af) * fix(commitments): isolate extraction batches by agent (#104426) * fix(commitments): isolate extraction batches by agent * chore: leave release notes to release workflow (cherry picked from commit 5a26748c3eb6a6ee459d643832f68b2e7b961766) * fix(plugins): honor empty document extractor scope (#103731) * fix(plugins): honor empty document extractor scope * fix(plugins): honor empty document extractor scope --------- Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit 60364137663d9f2c6584e8bd5f5dc410b475e0aa) * fix(whatsapp): keep pre-connect recovery replayable (#104450) (cherry picked from commit 1285fd6db457f00363df64474378a0030420b8c7) * fix(gateway): cap history when numeric limit is huge (#104263) * fix(gateway): cap oversized history limits * refactor(gateway): simplify oversized history limits --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 3ed8143495223f19d572a64143e014ce376d9605) * fix(agents): truncate multibyte middleware details at byte limit (#104156) * fix(agents): bound multibyte middleware details by bytes * refactor(agents): bound middleware detail byte sizing --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 02560243f3caf7951cc2dab12d766449812c02c2) * fix(onboard): wait for gateway warnings before installing service (#104173) * fix(onboard): wait for gateway warnings before installing service * fix(onboard): show gateway warnings after plan errors * refactor(onboard): drain install warnings from queue --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a66d2959e9564bbf899e519e465b4ca49e9ba7ab) * fix(agents): cancel pending bundle LSP requests (#104110) Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit f73c5541fe56196b8b34ab87c045a042ecf95391) * fix(agents): preserve UTF-16 boundaries in context pruning (#104404) Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit 13817a6108b3d838a408434c828e0e1024bdf12e) * fix(browser): reject hex click coordinates in act route (#104440) * fix(browser): reject hex click coordinates in act route * refactor(browser): use route parser for click coordinates --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 834c1469581c0eed9b001d506f37645e0029043f) * fix(voice-call): use sliceUtf16Safe for bounded child output tail cap (#104260) Co-authored-by: NIO <[email protected]> (cherry picked from commit ab9a1c9a84878497d8acad990cc02f978e3a281b) * fix(file-transfer): keep bounded stderr tail UTF-16 safe end-to-end (#104151) Co-authored-by: NIO <[email protected]> (cherry picked from commit a498fc511efaa1d96b2e5cc9f1b7f073539438e5) * fix(agents): keep scp stderr tail UTF-16 safe end-to-end (#104148) Co-authored-by: NIO <[email protected]> (cherry picked from commit 58ef98ec13117e891036c684138fdee0ef63a850) * fix(nodes): reject malformed media payloads when base64 is invalid (#104414) * fix(nodes): reject malformed media base64 payloads * fix(nodes): keep media base64 size preflight * refactor(nodes): reuse shared base64 boundary Co-authored-by: qingminlong <[email protected]> * docs(changelog): note node media validation * chore: leave changelog to release automation * test(nodes): cover empty invalid media payloads --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 183139f3edae9c4ea979d4d2d45b5d5b409524bf) * fix(file-transfer): reject oversized inline file writes before node dispatch (#104556) * fix(file-transfer): cap inline file write payloads * fix(file-transfer): validate inline base64 before decoding --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit fdf581281746ecc28be6c58d608569313a9e31aa) * fix(google): stream Gemini batch JSONL output instead of res.text() (#102974) * fix(google): stream Gemini batch JSONL output instead of res.text() * fix(google): avoid Promise executor return in batch stream test --------- Co-authored-by: NIO <[email protected]> (cherry picked from commit 18e8713b99c69b714f6ff0a71933f7a4ae351ca1) * fix(gateway): demote expected startup socket aborts (#104610) * fix(gateway): demote expected startup socket aborts * fix(gateway): retain queued-frame startup warnings (cherry picked from commit 7193d29c92a95695a779cdca2eea0df97dbf20f9) * fix(utils): use UTF-16 safe truncation for long URL timeout logs (#104301) * fix(utils): use UTF-16 safe truncation for long URL timeout logs * test(utils): cover UTF-16 timeout log boundaries --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 416d113a2c61f415248bcfa069a3dfb11b81c84a) * fix(zalo): bound stalled inbound media header waits (#104578) * fix(zalo): bound stalled inbound media header waits * test(zalo): type inbound media mock to runtime contract * test(zalo): return complete saved media metadata --------- Co-authored-by: NIO <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 9b430fd6f608dfe57013ddcae0ee72f54fffea42) * fix(slack): preserve unrelated action rows after interactions (#103445) * fix(slack): use endsWith instead of includes for _all_ action_id matching * fix(slack): codify bulk action IDs and add confirmation regressions Extract isSlackBulkActionId() with the documented _all suffix grammar, use it for bulk-row detection, and add whole-path chat.update tests for bulk-row cleanup plus deploy_all_services false-positive control. Co-authored-by: Cursor <[email protected]> * fix(slack): use OpenClaw bulk block marker instead of _all suffix Replace global endsWith("_all") bulk detection with an explicit openclaw:bulk: block_id prefix and closed action IDs, export a shared producer helper, and add live Slack chat.update proof for bulk-row removal and deploy_all_services preservation. Co-authored-by: Cursor <[email protected]> * fix(slack): keep bulk contract private and add legacy upgrade path Drop speculative bulk-action exports from the Slack plugin API, keep accepted ID collections private and immutable, and recognize legacy bare select_all/deselect_all rows while still rejecting deploy_all_services false positives. Co-authored-by: Cursor <[email protected]> * fix(slack): drop unsupported bare bulk compatibility branch Remove the legacy select_all/deselect_all classifier that overmatched single-ID and duplicate-ID rows, and add negative whole-path regressions preserving unrelated custom action rows. Co-authored-by: Cursor <[email protected]> * fix(slack): remove unsupported bulk-row cleanup heuristic Delete the undocumented bulk-row inference and namespaced replacement contract. Confirmation updates now replace only the selected actions row and preserve every other authored Block Kit row. * refactor(slack): tighten interaction confirmation fix * chore(changelog): preserve historical TTS entries * chore(slack): move release note to PR body --------- Co-authored-by: zw-xysk <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a4c1e22731260c62212d72d4d933d43271c00b76) * fix(gateway): retain detached hook admission (#104686) (cherry picked from commit a366218cf46bcfa301f00adf047320ae7d72544c) * fix(browser): run mutation guard before JSON parsing (#104677) * fix(browser): run mutation guard before JSON parsing * test(browser): cover auth in mutation guard ordering --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 85a8f4ba8d9fe0fe9eec40173da28d4f59d51d01) * fix(agents): preserve UTF-16 boundaries in bootstrap context (#104423) (cherry picked from commit b2702156acae708ff73e1a1b86f7d10a793dd7a7) * fix(write): report actual UTF-8 byte count in success message (#104560) * fix(write): report actual UTF-8 byte count in success message Replace string.length (UTF-16 code units) with Buffer.byteLength(content, 'utf8') so the reported byte count matches the actual bytes written to disk. For ASCII content the values are identical. For non-ASCII content (CJK, emoji), string.length underreports — e.g. '你好' reports as 2 bytes but is actually 6. * refactor(write): centralize success reporting * test(write): avoid shadowing recovery fixture --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 14b95c7552338b50be8f285a3c7f516c45116f17) * fix(attempt-execution): use truncateUtf16Safe for summary text truncation (#104454) * fix(attempt-execution): use truncateUtf16Safe for summary text truncation Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test(agents): cover fallback summary UTF-16 boundary * test(agents): cross fallback summary truncation budget --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 26e1b18a9b5372bb8f3361a4fe3709c4a60f405c) * fix(browser): apply profile proxy policy to tab list redaction (#104715) * fix(browser): apply profile proxy policy to tab list redaction * test(browser): cover proxy tab redaction route proof * test(browser): streamline proxy tab redaction coverage * fix(browser): scope proxy inference to managed profiles --------- Co-authored-by: llagy007 <[email protected]> (cherry picked from commit 5a6d684019d968f44d8be45e3241b13ef1afd426) * fix(ai): reject non-finite tool schema numbers (#104470) * fix(ai): reject non-finite tool schema numbers Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * fix(ai): catch non-finite values from tool schema serializers Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> * test(ai): cover nested tool schema serializers Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * fix(ai): satisfy schema projection lint Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * fix(ai): satisfy schema projection lint Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * fix(ai): preserve empty-key schema diagnostic paths * fix(ai): reject boxed non-finite schema numbers * fix(ai): ignore spoofed boxed-number tags * fix(ai): isolate boxed-number brand probes * refactor(ai): use intrinsic boxed-number detection --------- Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit f8c7f67bde400b2a2f60ea2e190c67486511d545) * fix(feishu): avoid logging raw duplicate card-action tokens (#104498) * fix(feishu): avoid logging raw duplicate card-action tokens Avoid writing the raw Feishu card-action callback token into duplicate callback diagnostics while preserving duplicate suppression behavior. Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> * test(feishu): use neutral callback token fixture * test(feishu): mark callback fixture as placeholder --------- Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit d5569a98dba2369903de1ab801c5a5257a6c839f) * fix(memory): scope cached managers by service host (cherry picked from commit a7f021d5a786690c7e5da6593be2976488e9ac12) * fix(gateway): reject incomplete usage date ranges (#113259) * fix(gateway): reject incomplete usage date ranges * fix(gateway): tighten usage range validation --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 1defbc54731ad97e07ce444deeac7f371bd7b019) * fix: doctor preserves locks owned by exact gateway process title (#112855) * fix(agents): recognize exact gateway process title * refactor(agents): reuse gateway argv recognition --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 1e04925e03b4c238ab6ff63ca3a86a04955cf365) * fix(gateway): return 404 for disabled OpenAI API routes (#113609) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 5b4df5724840cf73e7f541550381932a7273bf64) * fix: route skill verification through the managed proxy (#113683) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 4aeb426d2d146626147b616548139635492a6768) * fix: preserve child process signal exit codes (#113685) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 89984a5082cea059ae792ebff00c17709986e369) * fix(xiaomi): reject malformed base64 audio in TTS responses (#113106) * fix(xiaomi): reject malformed TTS audio Co-authored-by: zenglingbiao <[email protected]> * fix(media): reject noncanonical base64 padding * style(xiaomi): format malformed audio test --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit cff22e83ca3e1f1ee3a022656812a0e303df69d5) * fix(volcengine): reject malformed TTS audio (#113109) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit c459a1876b0542ccb0278894899f155006b60d45) * fix: recognize Bash completion installed in login profiles (#113790) * fix(cli): recognize Bash completion in login profiles * test: track Bash completion profile fixtures --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit a1cc41acbcdd285a7cdb423bdfe45ef06b2f97cb) * fix(models): preserve empty machine-readable model lists (#113897) (cherry picked from commit e3fc8527ce021ec47c5a34092c5419e1f9772b45) * fix(agents): retire completed session work lanes (#114051) (cherry picked from commit c4f148368aee115620c972b5f8c0c6b397e64966) * fix(gateway): anchor Control UI assets on deep routes (#114061) (cherry picked from commit 0c8f070c92a8bbc3a9d967415a9d031ee1212e69) * fix(gateway): settle account stops before failing (#114280) Co-authored-by: Qiong <[email protected]> (cherry picked from commit 6e4f2e1ec46f05d50083ef3342e4499d334d59bb) * fix: report unavailable system Node versions accurately (#114325) (cherry picked from commit ffec7731a4ac701eb2a13c5a37edfd77ee89fd7a) * fix(matrix): reverse-proxy path support for Matrix homeserver URLs (#93516) * feat(matrix): add configurable apiPrefix for non-standard homeserver API paths * fix(matrix): remove public apiPrefix config, keep transport path fix The apiPrefix config surface was incomplete: it was not carried through resolveMatrixConfigForAccount, MatrixAuth, shared client keying, or createMatrixClient, making it a no-op in normal runtime paths. Following ClawSweeper review direction, this narrow fix: - Removes apiPrefix from MatrixConfigSchema and MatrixConfig types - Keeps apiPrefix as a private internal constant in MatrixAuthedHttpClient for bare-path resolution (DEFAULT_API_PREFIX = /_matrix/client/v3) - Stops MatrixClient from accepting/passing apiPrefix - Retains the transport.ts normalizeEndpoint() fix for homeserver URLs behind reverse proxies (avoids losing path segments on trailing-slash mismatches) Test: 1393 tests pass across 121 matrix extension test files. * fix(matrix): ensure homeserver URL ends with slash for new URL() resolution Without a trailing slash, new URL(relPath, homeserver) treats the final path segment as a filename, losing the reverse-proxy prefix path. For example: new URL('_matrix/...', 'https://host/proxy') -> https://host/_matrix/... (wrong, 'proxy' dropped) With trailing slash: new URL('_matrix/...', 'https://host/proxy/') -> https://host/proxy/_matrix/... (correct) * test(matrix): add URL resolution coverage for path-prefixed homeservers * fix(matrix): preserve reverse-proxy homeserver paths --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 0680dfc6a9a920b835ba8b388f1534a3f2087a04) * fix(zalo): deliver text when optional media is blank (#114450) * fix(zalo): preserve text sends with blank media * test(zalo): compare serialized Bot API payload safely * test(zalo): prove message delivery over real HTTP (cherry picked from commit 36440de61dc421003758ef794f8d5138f600016f) * fix(cron): exclude queued lane waits from agent setup timeouts (#114512) Co-authored-by: hugin-bot <[email protected]> (cherry picked from commit 457a83a94672f4b144c8407fd04a5d9c21569308) * fix(model): report model change before its triggered thinking remap When a bare /model switch forces an unsupported stored thinking level to be remapped, the acknowledgement listed the thinking remap before the model change, announcing the consequence before its cause. Report the model line first in both directive-ack builders so the message reads cause-then-effect. Adds a regression test locking the model-before-thinking order. (cherry picked from commit a4e524fae3f8cdb20f3b8dfdd865d1f3b26fbff8) * fix(cron): prevent local model preflight socket leaks (#114540) Co-authored-by: hugenshen <[email protected]> (cherry picked from commit 5e4b0d3beaad09dd82a9b0bb4bf2cc0b0da3cf3f) * fix(auto-reply): normalize newline-delimited silent tokens (#114500) * fix(auto-reply): normalize newline-delimited silent tokens * fix(auto-reply): preserve punctuation-attached reply literals (cherry picked from commit ba5e1740776e6b5e79b51c31fb5477fe6c9a7151) * fix(session-delivery): propagate non-ENOENT retry persistence failures (#97024) * fix(session-delivery): propagate non-ENOENT retry persistence failures drainQueuedEntry swallowed a non-ENOENT error from failSessionDelivery as a clean "failed", so the retry metadata (retryCount/lastAttemptAt) never advanced and the entry was re-driven without progressing toward the max-retries terminal move. Re-throw non-ENOENT to match the sibling moveSessionDeliveryToFailed paths; ENOENT still maps to already-gone. * test(session-delivery): isolate real SQLite recovery proof --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 1e0a42432d0a6b6574316fed93fe9ff14e5c6230) * fix: debug proxy respects response backpressure (issue #105701) (#114076) * fix(proxy-capture): respect response backpressure * test(proxy-capture): avoid unbound prototype method lint * test(proxy-capture): stabilize backpressure regression * test(proxy-capture): fix backpressure write typing * test(proxy-capture): satisfy lint for method helper * fix(proxy-capture): settle forwarding only after downstream finish --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 445e262d26667bbe70216aa9cd19a147b1ed9790) * fix(ai): preserve root properties when flattening root-level anyOf tool schemas (#128799) * fix(ai): preserve root properties when flattening root-level anyOf tool schemas * test(agents): cover MCP root-union callability --------- Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit 5300c0d154ed6e0ff53657b98f23cc457d6b93ba) * fix(copilot): own BYOK response stream lifecycles (#131546) * fix(copilot): own BYOK response stream lifecycles Use a single pipeline to handle response errors and cancellation on both streams, reaching guarded-fetch cleanup without unhandled process errors. Add red/green regressions for upstream interruption, client disconnect, and proxy shutdown. Fixes #131544. Live before/after cancellation and actual Copilot SDK completion verified; request intake policy in #99064 remains separate. * test(copilot): capture the BYOK stream controller directly * docs(copilot): retain release notes in PR metadata Keep the BYOK stream crash fix release context in the PR and squash message; leave release-owned CHANGELOG.md generation to release automation. Runtime and regression tests are unchanged. (cherry picked from commit 2cbcd05a8ed0ad3c9d811ad228528d649f1d480e) * fix(line): preserve separators inside card data (#131195) Let LINE `/card` operators keep commas, pipes, and colons inside card data without changing unescaped commands. Use one escape-aware parser across action, buttons, list, receipt, and confirm values. Co-authored-by: 許元豪 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit b0d40bf63651e9e7ae27201251fcb6992849994d) * fix(agents): keep dangling symlinks visible in ls listings (#131783) * fix(agents): keep dangling symlinks visible in ls listings Retain directory-entry names when optional target metadata is unavailable, preserving healthy directory-link suffixes and bounded output notices. Related: #131776 * test: simplify ls regression arguments (cherry picked from commit f4b2a50c9f69a56f4766e331476a2ccea86d2af7) * fix(line): preserve postback selections for agents (#132014) LINE returns picker and rich-menu selections separately from callback data. Preserve the raw callback token for command authorization while adding sorted nonblank selections to the agent-facing turn. Co-authored-by: xuyuanhao <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit ead8876ccf1043609da24fc5ea3038cd330d9512) * fix(handoff): skip orchestrator framing for solo agents without subagents (#102636) * fix(handoff): skip orchestrator framing for solo agents without subagents buildHierarchyReinforcementMessage unconditionally claimed 'You are the new LEADER (Orchestrator)' and showed 'ACTIVE SUBORDINATE UNITS: None active.' even when the agent had no subagents active. This reliably confused models (observed on Opus 4.7) into inventing subordinates or fabricating orchestrator context after quota-suspension/failover recovery. When activeSubagents is empty, the message now simply tells the model to review current state and continue the conversation. Fixes #102628 * fix(handoff): keep team instructions after state summary Restore the original prompt ordering for the team branch by placing INSTRUCTIONS after CURRENT STATE SUMMARY, matching current main behavior. The solo-agent branch skips orchestrator framing entirely. * test: cover solo and team recovery handoffs * style: format handoff summarizer test --------- Co-authored-by: Altay <[email protected]> (cherry picked from commit 7c61f7160005886038af8d50cb5cca15c78aca3e) * fix(plugins): keep compiled plugin aliases on the built runtime (#132545) (cherry picked from commit cf84b80e48101093915e2d2eb11193133c91ccde) * fix(release): align version helper imports * fix(release): keep legacy version tools on shared classifier * release: prepare 2026.7.33 package versions * docs(changelog): refresh 2026.7.33 notes * Revert "fix(gateway): terminate failed Responses streams (#113629)" This reverts commit f96f23fbf2ece7b7f2a537fd7c062cdebc92a2a0. * Revert "fix(gateway): streamed OpenAI-compatible requests fail with a spurious draining error (#113514)" This reverts commit e98a60c6ca68dd823b79129a2ac54d9785dd412b. * docs(changelog): refresh 2026.7.33 backport record * fix(release): carry Docker publication caller * fix(release): carry publication workflow dependencies * fix(release): adapt publisher to legacy setup action * fix(release): align npm publication child contracts * fix(release): preserve frozen workflow cache inputs * fix(release): carry publication workflow helpers * fix(release): complete publication helper closure * fix(release): complete workflow script dependency set * fix(release): carry release tool module closure * fix(release): forward extended-stable plugin tag * docs(changelog): finalize 2026.7.33 contribution record * Revert "fix(agents): extend live CLI no-output watchdog to the blocked-tool floor" This reverts commit 7c19b50b4610579f16e130313f62c501517ecf4a. * Revert "fix(agents): fall stale_run steer refusals through to direct delivery" This reverts commit 1a0f559497c188a9794244e0da8d21529436f5e0. * Revert "fix(gateway): retain detached hook admission (#104686)" This reverts commit aef993cf3f71f06ef7badce2a79922f54ac328b0. * Revert "fix(agents): keep exec finalization suspension-safe (#104419)" This reverts commit 01b280732524fc9328f9d642ac5a153e4de6efc7. * Revert "fix(agents): keep provider-class idle tiers under agent budgets and cron" This reverts commit b75945fb921b196fd785aadef4e5b53efcf4a07e. * fix(agents): keep finite LLM idle watchdog under unlimited run budgets (cherry picked from commit 215be4e4ee20a9b0010dd1f9c8529f8b6019046b) * fix(agents): keep provider-class idle tiers under agent budgets and cron (cherry picked from commit 048f2096d2473df2a27d26164f6a6a40b5dce6f4) * test: adapt retained backports to July support * docs(changelog): refresh repaired 2026.7.33 record * fix(agents): extend live CLI no-output watchdog to the blocked-tool floor (cherry picked from commit 4af2ca0a4d780f29015ff3c9c33987335a6c08cc) * fix(agents): adapt blocked-tool watchdog to July runtime * docs(changelog): record final CI repair head * Revert "fix(memory): scope cached managers by service host" This reverts commit b795b615b69f54af14e452a8ad9be704a6960880. * Revert "fix(zalo): bound stalled inbound media header waits (#104578)" This reverts commit ce0c7cc54ed01ec18ea6c405b99b3f8e22ddbbd3. * Revert "fix(whatsapp): keep pre-connect recovery replayable (#104450)" This reverts commit b530860847780628502023ee066ab5640799c21e. * fix(ci): pin July SwiftFormat contract * fix(release): complete frozen tooling compatibility * fix(deps): remediate extended-stable production advisories * docs(changelog): refresh repaired contribution record * fix(ci): align frozen dependency and docs inputs * docs(changelog): record dependency CI repair * fix(ci): adapt frozen validation to July toolchain * docs: complete frozen branch metadata * docs(changelog): record frozen CI compatibility repair * docs(changelog): bind final repair head * fix(ci): remove unused untrusted installer seam * docs(changelog): bind security repair head * fix(release): complete extended-stable CI closure * fix(release): complete worker packaging closure * test(release): align pinned tooling contracts * fix(ci): keep SwiftFormat config branch-compatible * fix(memory): preserve UTF-8 when qmd output splits across pipe chunks (#107263) * fix(memory): preserve UTF-8 across fragmented qmd output chunks * fix(memory): decode qmd streams at UTF-8 boundary Co-authored-by: wahaha1223 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 7f36f490528b1466dfad05a491bd253e9cbf03f5) * fix(sessions): stop leaking file path as prompt content on read failure (#108546) * fix(sessions): stop leaking file path as prompt content on read failure When readFileSync fails for a valid file path, resolvePromptInput returns the raw path string as prompt content instead of undefined. This injects filesystem paths into the LLM context. The existing console.error warning still fires; the caller already handles undefined returns correctly. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test: cover unreadable prompt paths * test: use tracked resource loader temp dirs --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit c9248192926ac164fe4a91af3fe72555a7512c67) * fix(agents): bound base64 image input before decode in tool-image sanitizer (#105086) * fix(agents): bound base64 image input before decode in tool-image sanitizer * fix(agents): lower input-size cap to 10MB for OOM headroom * fix(agents): align tool-image input-cap comment with 10 MiB ceiling * fix(agents): typecheck-safe access in tool-image input-cap test * test(agents): exercise real tool image input cap --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit b85531c62f7565856219f652bf9fe6cfa1940b1f) * fix(qqbot): bound tail log reads to actual bytes returned by fs.readSync (#108955) * fix(qqbot): bound tail log reads to actual bytes returned by fs.readSync * fix(qqbot): satisfy knip deadcode check for testing export Add __testing re-export and test-api.ts barrel so knip traces the testing export through a recognized entry point. * fix(qqbot): restore testing export alongside __testing re-export Both exports are needed: testing for proof scripts, __testing for knip tracing. * fix(qqbot): remove unused __testing re-export from log-helpers test-api.ts already imports testing and re-exports as __testing. The extra re-export in log-helpers.ts was unused by production code. * fix(qqbot): retry short log tail reads * test(qqbot): keep short-read seam private Co-authored-by: RileyJJY <[email protected]> * test(qqbot): exercise short reads through log export Co-authored-by: RileyJJY <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: RileyJJY <[email protected]> (cherry picked from commit 3f89aae98da9229ea7cf9bfc6215aaeae01a8796) * fix(lmstudio): cancel model discovery response body on non-ok (#109718) * fix(lmstudio): cancel model discovery response body on non-ok Wire the direct-fetch release hook to cancel unread bodies so failed model discovery releases the TCP connection instead of leaving it open. Co-authored-by: Cursor <[email protected]> * refactor(lmstudio): unify response cleanup Co-authored-by: Zeng Wen <[email protected]> --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Zeng Wen <[email protected]> (cherry picked from commit 1573c78f5b849d1fedf12a78aa029c069c44ffca) * fix(heartbeat): bound HEARTBEAT.md file read size (#101775) * fix(heartbeat): bound HEARTBEAT.md file read size * fix(heartbeat): follow symlinked HEARTBEAT.md while bounding reads * fix(heartbeat): warn operators when oversized HEARTBEAT.md is skipped (cherry picked from commit 993c975f5738dbcd17882db0fafcb9d1e403607e) * fix(plugins): bound marketplace manifest file reads (#101774) * fix(plugins): bound marketplace manifest file reads * fix(plugins): distinguish oversized marketplace manifest from other read failures * fix(plugins): follow symlinked marketplace manifests while bounding reads * test(plugins): cover oversized symlinked marketplace manifest target (cherry picked from commit 35754a63ccafc41122085bc9467fd3e1dbc8d4f3) * fix(gateway): bound BOOT.md file read size (#101776) * fix(gateway): bound BOOT.md file read size * fix(gateway): treat non-regular BOOT.md as empty/missing and add coverage * fix(gateway): preserve non-size BOOT.md failures while bounding oversized reads * fix(gateway): preserve readable BOOT.md symlink behavior * fix(gateway): treat dangling BOOT.md symlink as missing * fix(gateway): report oversized BOOT files * fix(gateway): preserve missing BOOT race behavior Co-authored-by: 陈宪彪0668000387 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit e22c2dfaaa890d1d689f894a46c6cc0a4339d301) * fix(tlon): preserve shutdown when body cancellation fails (#111106) * fix(tlon): observe shutdown body cancellation failures * test(tlon): streamline shutdown cleanup proof * test(tlon): narrow shutdown fixtures --------- Co-authored-by: ZengWen-DT <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 5bb969f7de6cb07747e746e90d6444bb935dcb8e) * fix(qqbot): cancel non-OK direct-upload response body before throwing (#110008) (cherry picked from commit 17643f385085d68d104d216eae1a08785da4b3ec) * fix(tui): prevent memory growth during repeated selector searches (#109451) * fix(tui): bound searchable select regex cache * fix(tui): discard stale selector regexes Co-authored-by: wahaha1223 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 80c16ecc8097793166e4c8418b6090fc09e3a90a) * fix(tlon): bound Urbit auth response body drain to prevent OOM (#109697) * fix(tlon): bound Urbit auth response body drain to prevent OOM Replace the unbounded response.text() body drain (discarded after reading to finalize set-cookie headers) with a streaming reader capped at 64 KiB. When no body stream is available, fall back to text() for compatibility. A hostile or misconfigured Urbit endpoint could previous…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Imported CLI session history incorrectly drops genuine repeated messages when they have identical role, content, and timestamp but distinct authoritative upstream message IDs. Real repeated replies can therefore disappear from Gateway session history.
What Changed
Validation
ff61f48f42f9f9883eb1283c8b846dee6e6d4699.pnpm test src/gateway/cli-session-history.test.ts; 40/40 focused tests passed.pnpm exec oxfmt --check src/gateway/cli-session-history.merge.ts src/gateway/cli-session-history.test.ts; passed.Risk and Scope
Two files; no provider, authentication, configuration, database, protocol, or public SDK changes. Existing identity-free history continues using the existing content fallback.