Commit Graph

17286 Commits (ff7fe37d170229ca03b2accaeaeef21113bf3c52)

Author SHA1 Message Date
Peter Steinberger ff7fe37d17
refactor(cli): normalize route boundaries 8 months ago
Vincent Koc 7bb61a07db fix(check): repair plugin and secret type drift 8 months ago
Peter Steinberger 8326349939
fix(test): stabilize docker claude cli live lane 8 months ago
Peter Steinberger ac38f332c5
fix(anthropic): prefer claude cli over setup-token 8 months ago
Peter Steinberger fa67ab2358 fix: preserve gateway-bindable loader compatibility 8 months ago
HansY c78defdc2f plugins: exclude runtimeSubagentMode from loader cache key
The plugin loader cache key included runtimeSubagentMode, which is
derived from allowGatewaySubagentBinding. Since different call sites in
the message processing pipeline pass different values for this flag,
each call produced a distinct cache key, triggering redundant
register() calls (40+ in 24 seconds after startup).

runtimeSubagentMode does not affect which plugins are loaded or how
they are configured — it is only metadata stored alongside the active
registry state. Removing it from the cache key lets all call sites
share the same cached registry regardless of their binding mode.

Fixes #61756
8 months ago
Peter Steinberger 9e0d632928
fix(gateway): unify session history snapshots 8 months ago
Peter Steinberger 8838fdc916
refactor: share web provider runtime helpers 8 months ago
Peter Steinberger 58f4099a4f
refactor: share plugin runtime load context 8 months ago
Peter Steinberger 3599ab2e56
fix(agents): honor verbose defaults and trim process setup 8 months ago
Peter Steinberger cd5b1653f6
feat: declare explicit media provider capabilities 8 months ago
Peter Steinberger 29df67c491 test(acp): prove lazy reset re-ensures bound sessions 8 months ago
Onur b34fa9c868 ACP: reset bound sessions lazily 8 months ago
Peter Steinberger 8d095147b4
fix: restore check gate 8 months ago
Peter Steinberger 979c81d9dd
test(auth): cover readonly runtime auth inheritance 8 months ago
Peter Steinberger adb750fa63
perf(test): trim secrets runtime snapshot lane 8 months ago
Peter Steinberger 91749930d4
fix: restore check-time path inference 8 months ago
Vincent Koc ac6f696baa fix(check): repair typed test and cli drift 8 months ago
biefan 0f075e1b8a
fix: restore terminal keyboard state on tui exit (#49130) (thanks @biefan) (#49130)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger 26a5ab1c6f fix(utils): harden directive block placeholders 8 months ago
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>
8 months ago
Peter Steinberger c7c0550dc9 fix: seed SSE history state from one snapshot (#61855) (thanks @100yenadmin) 8 months ago
Eva d519f39c6e fix(gateway): eliminate SSE history double-read race — derive sanitized and raw views from single transcript snapshot 8 months ago
Peter Steinberger 732c18cd06
fix(check): repair latest type drift batch 8 months ago
Peter Steinberger 380a396266
refactor: share ambient proxy agent helpers 8 months ago
ToToKr 2da95ca191
fix(tui): strip inbound metadata from command messages before rendering (#59985) (thanks @MoerAI) (#59985)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger b16e0df5f8 fix(channels): cover pinned registry helper fallback 8 months ago
王淼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.
8 months ago
Peter Steinberger c817e6d388
fix(check): repair monitor and message tool types 8 months ago
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
8 months ago
Peter Steinberger c63a4f0f13
refactor: share assistant visible text sanitizer profiles 8 months ago
Peter Steinberger 150c4018de
refactor: share plugin cli registration helpers 8 months ago
Peter Steinberger 41905d9fd7
refactor: share cli command descriptor helpers 8 months ago
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
8 months ago
황재원 c8298c5b0f
fix: don't broadcast state:error on per-attempt lifecycle errors (#60043) (thanks @jwchmodx) (#60043)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Vincent Koc a6c854f363 fix(commands): resolve provider auth choices from plugin runtime 8 months ago
Peter Steinberger 712479eea1 fix: unify assistant visible text sanitizers (#61729) 8 months ago
openperf 980439b9e6 fix(Gateway ): strip tool_call and tool_result XML blocks from assistant visible text 8 months ago
Peter Steinberger f00c8c1b87
fix: add message tool read hint for thread reads 8 months ago
Peter Steinberger 50082f91ff
fix: harden windows dev update fallback 8 months ago
Peter Steinberger 55f18f67e2
perf(test): split secrets runtime provider coverage 8 months ago
Peter Steinberger 4a4741444e
refactor(auth): remove codex cli parsing from core store 8 months ago
Peter Steinberger 021e503a5f test: add raw plugin-schema defaults regression coverage (#61856) 8 months ago
supermario_leo 92ffb9af86 fix(config): restore applyDefaults:true for AJV plugin/channel schema validation 8 months ago
Peter Steinberger 9afcbbec5e
refactor(auth): extract persisted auth store helpers 8 months ago
Peter Steinberger bbc7a09aab
fix(cli): erase routed definition union at dispatch 8 months ago
Peter Steinberger 0974f85d7e
fix(cli): preserve routed command arg typing 8 months ago
Peter Steinberger d378a504ac
fix: restore claude cli guidance and doctor behavior 8 months ago
Peter Steinberger 73a5504708
refactor: share cli command registrar engine 8 months ago
Peter Steinberger f43aba40a2
refactor: share cli routing metadata 8 months ago