Commit Graph

17277 Commits

Author SHA1 Message Date
Peter Steinberger
3599ab2e56 fix(agents): honor verbose defaults and trim process setup 2026-04-06 15:24:59 +01:00
Peter Steinberger
cd5b1653f6 feat: declare explicit media provider capabilities 2026-04-06 15:24:38 +01:00
Peter Steinberger
29df67c491 test(acp): prove lazy reset re-ensures bound sessions 2026-04-06 15:24:16 +01:00
Onur
b34fa9c868 ACP: reset bound sessions lazily 2026-04-06 15:24:16 +01:00
Peter Steinberger
8d095147b4 fix: restore check gate 2026-04-06 15:20:03 +01:00
Peter Steinberger
979c81d9dd test(auth): cover readonly runtime auth inheritance 2026-04-06 15:19:34 +01:00
Peter Steinberger
adb750fa63 perf(test): trim secrets runtime snapshot lane 2026-04-06 15:19:34 +01:00
Peter Steinberger
91749930d4 fix: restore check-time path inference 2026-04-06 15:18:55 +01:00
Vincent Koc
ac6f696baa fix(check): repair typed test and cli drift 2026-04-06 15:14:37 +01:00
biefan
0f075e1b8a fix: restore terminal keyboard state on tui exit (#49130) (thanks @biefan) (#49130)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-04-06 15:14:08 +01:00
Peter Steinberger
26a5ab1c6f fix(utils): harden directive block placeholders 2026-04-06 15:11:44 +01:00
szx007
af7c21f207 fix: preserve code block indentation in normalizeDirectiveWhitespace
## Summary

- Problem: `normalizeDirectiveWhitespace` applied whitespace-collapsing regexes globally, including inside fenced code blocks (` ``` ` / `~~~`) and indent-code-blocks (4-space / tab), corrupting indentation in assistant replies that contain code snippets
- Why it matters: Any language where indentation is significant (Python, Go, YAML, etc.) or visually meaningful would render incorrectly after stripping inline directive tags
- What changed: Stash code blocks under a Unicode private-use sentinel (`\uE000`) before normalization, run the existing prose regexes on the masked text, then restore the original blocks verbatim
- What did NOT change: All prose normalization rules are retained as-is (`\r\n`, multi-space collapse, leading blank-line strip, trailing whitespace, 3+ newline fold)

## Change Type

- [x] Bug fix

## Scope

- [ ] Gateway / orchestration

## Root Cause

- Root cause: Prose whitespace regexes were applied to the full text string with no awareness of Markdown code block boundaries
- Missing detection / guardrail: No tests covered indented content inside fenced blocks
- Contributing context: Directive tag stripping (`[[reply_to_current]]`, `[[audio_as_voice]]`) is applied before delivery, making the normalization step a silent corruption point for code-heavy replies

## Regression Test Plan

- Coverage level that should have caught this:
  - [x] Unit test
- Target test or file: `src/utils/directive-tags.test.ts`
- Scenario the test should lock in: `parseInlineDirectives` with fenced/indent code blocks must preserve all leading whitespace inside those blocks
- Why this is the smallest reliable guardrail: Pure function with deterministic string in/out; no mocks needed
- If no new test is added, why not: 7 new unit tests added

## User-visible / Behavior Changes

Code blocks in assistant replies containing `[[reply_to_current]]` or `[[audio_as_voice]]` directives now retain correct indentation after the directive is stripped.

## Security Impact

- New permissions/capabilities? No
- Secrets/tokens handling changed? No
- New/changed network calls? No
- Command/tool execution surface changed? No
- Data access scope changed? No

## Compatibility / Migration

- Backward compatible? Yes
- Config/env changes? No
- Migration needed? No

Co-Authored-By: Codemax <codemax@binance.com>
2026-04-06 15:11:44 +01:00
Peter Steinberger
c7c0550dc9 fix: seed SSE history state from one snapshot (#61855) (thanks @100yenadmin) 2026-04-06 15:05:33 +01:00
Eva
d519f39c6e fix(gateway): eliminate SSE history double-read race — derive sanitized and raw views from single transcript snapshot 2026-04-06 15:05:33 +01:00
Peter Steinberger
732c18cd06 fix(check): repair latest type drift batch 2026-04-06 15:03:55 +01:00
Peter Steinberger
380a396266 refactor: share ambient proxy agent helpers 2026-04-06 15:03:30 +01:00
ToToKr
2da95ca191 fix(tui): strip inbound metadata from command messages before rendering (#59985) (thanks @MoerAI) (#59985)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-04-06 15:02:59 +01:00
Peter Steinberger
b16e0df5f8 fix(channels): cover pinned registry helper fallback 2026-04-06 14:56:10 +01:00
王淼0668000666
0b198b8d0b fix(channels): use pinned registry as primary in listRegisteredChannelPluginEntries
Fixes issue #61358 where isGatewayMessageChannel intermittently rejects valid third-party channel plugins (openclaw-weixin, qqbot).

The pinned registry contains authoritative channel configurations for delivery, so it should be checked first before falling back to the active plugin registry.
2026-04-06 14:56:10 +01:00
Peter Steinberger
c817e6d388 fix(check): repair monitor and message tool types 2026-04-06 14:55:01 +01:00
Martin Garramon
eede8f945f fix(agents): replace .* with \S* in interpreter heuristic regexes to prevent ReDoS
The inner `.*\s+` in `(?:[A-Za-z_][A-Za-z0-9_]*=.*\s+)*` creates
catastrophic backtracking because both `.*` and `\s+` can match
whitespace. When the exec tool processes commands with `VAR=value`
assignments followed by whitespace-heavy text (e.g. HTML heredocs),
the regex engine hangs permanently at 100% CPU.

Replace `.*` with `\S*` in all three instances. Shell prefix variable
assignments cannot contain unquoted whitespace in the value, so `\S*`
is semantically correct and eliminates the ambiguity.

Fixes #61881
2026-04-06 14:53:44 +01:00
Peter Steinberger
c63a4f0f13 refactor: share assistant visible text sanitizer profiles 2026-04-06 14:52:52 +01:00
Peter Steinberger
150c4018de refactor: share plugin cli registration helpers 2026-04-06 14:52:21 +01:00
Peter Steinberger
41905d9fd7 refactor: share cli command descriptor helpers 2026-04-06 14:52:20 +01:00
Onur Solmaz
154a7edb7c refactor: consume acpx runtime library (#61495)
* refactor: consume acpx runtime library

* refactor: remove duplicated acpx runtime files

* fix: update acpx runtime dependency

* fix: preserve acp runtime error codes

* fix: migrate legacy acpx session files

* fix: update acpx runtime dependency

* fix: import Dirent from node fs

* ACPX: repin shared runtime engine

* ACPX: repin runtime semantics fixes

* ACPX: repin runtime contract cleanup

* Extensions: repin ACPX after layout refactor

* ACPX: drop legacy session migration

* ACPX: drop direct ACP SDK dependency

* Discord ACP: stop duplicate direct fallback replies

* ACP: rename delivered text visibility hook

* ACPX: pin extension to 0.5.0

* Deps: drop stale ACPX build-script allowlist

* ACPX: add local development guidance

* ACPX: document temporary pnpm exception flow

* SDK: preserve legacy ACP visibility hook

* ACP: keep reset commands on local path

* ACP: make in-place reset start fresh session

* ACP: recover broken bindings on fresh reset

* ACP: defer fresh reset marker until close succeeds

* ACP: reset bound sessions fresh again

* Discord: ensure ACP bindings before /new

* ACP: recover missing persistent sessions
2026-04-06 15:51:08 +02:00
황재원
c8298c5b0f fix: don't broadcast state:error on per-attempt lifecycle errors (#60043) (thanks @jwchmodx) (#60043)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-04-06 14:47:38 +01:00
Vincent Koc
a6c854f363 fix(commands): resolve provider auth choices from plugin runtime 2026-04-06 14:45:44 +01:00
Peter Steinberger
712479eea1 fix: unify assistant visible text sanitizers (#61729) 2026-04-06 14:44:09 +01:00
openperf
980439b9e6 fix(Gateway ): strip tool_call and tool_result XML blocks from assistant visible text 2026-04-06 14:44:09 +01:00
Peter Steinberger
f00c8c1b87 fix: add message tool read hint for thread reads 2026-04-06 14:42:51 +01:00
Peter Steinberger
50082f91ff fix: harden windows dev update fallback 2026-04-06 14:41:29 +01:00
Peter Steinberger
55f18f67e2 perf(test): split secrets runtime provider coverage 2026-04-06 14:40:35 +01:00
Peter Steinberger
4a4741444e refactor(auth): remove codex cli parsing from core store 2026-04-06 14:36:50 +01:00
Peter Steinberger
021e503a5f test: add raw plugin-schema defaults regression coverage (#61856) 2026-04-06 14:32:17 +01:00
supermario_leo
92ffb9af86 fix(config): restore applyDefaults:true for AJV plugin/channel schema validation 2026-04-06 14:32:17 +01:00
Peter Steinberger
9afcbbec5e refactor(auth): extract persisted auth store helpers 2026-04-06 14:25:06 +01:00
Peter Steinberger
bbc7a09aab fix(cli): erase routed definition union at dispatch 2026-04-06 14:24:18 +01:00
Peter Steinberger
0974f85d7e fix(cli): preserve routed command arg typing 2026-04-06 14:21:17 +01:00
Peter Steinberger
d378a504ac fix: restore claude cli guidance and doctor behavior 2026-04-06 14:21:11 +01:00
Peter Steinberger
73a5504708 refactor: share cli command registrar engine 2026-04-06 14:16:04 +01:00
Peter Steinberger
f43aba40a2 refactor: share cli routing metadata 2026-04-06 14:16:03 +01:00
Peter Steinberger
f3dd9723e1 fix(test): type anthropic replay live transcript 2026-04-06 14:15:08 +01:00
Harold Hunt
0bd0097557 refactor: add xai plugin-sdk boundary canary (#61548)
* docs: plan real plugin-sdk workspace rollout

* build: add xai plugin-sdk boundary canary

* build: generate plugin-sdk package types

* build: hide plugin-sdk core export

* build: alias scoped plugin-sdk runtime imports

* build: repair plugin-sdk boundary drift

* fix(plugins): remove duplicated plugin-sdk entrypoints

* test(plugins): make tsc boundary canary portable

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-04-06 14:13:11 +01:00
Peter Steinberger
0430bab070 perf(test): split secrets runtime env coverage 2026-04-06 14:13:09 +01:00
Peter Steinberger
21c82ca623 perf(test): trim security audit wrapper coverage 2026-04-06 14:13:08 +01:00
Vincent Koc
18ed43cc9e fix(tui): align /status with shared session status 2026-04-06 14:10:59 +01:00
Peter Steinberger
191b7cb5e6 fix: preserve anthropic replay tool results 2026-04-06 14:08:04 +01:00
Peter Steinberger
ab495f4c90 test: align session status runtime and agent expectations 2026-04-06 14:05:01 +01:00
Peter Steinberger
a8a49d142f fix: mirror codex cli auth into runtime store 2026-04-06 14:05:01 +01:00
Peter Steinberger
c9e4b86c7e fix: tighten container bind defaults for landing (#61818) (thanks @openperf) 2026-04-06 14:02:20 +01:00