Commit Graph

22359 Commits (afc649255c19cc2bf06bce43d8cb53b7f74c8dbe)
 

Author SHA1 Message Date
Saurabh afc649255c fix: match guild-level entries in Discord exec allowlist (#55175) 8 months ago
Peter Steinberger bdeb7d859b test: stabilize discord monitor ci mocks 8 months ago
Marko Jak b8ff152a98 fix(cli): isolate claude MCP config 8 months ago
Peter Steinberger 85b169c453 fix: clamp copilot auth refresh overflow (#55360) (thanks @michael-abdo) 8 months ago
Peter Steinberger f0c1057f68
fix: restore reveal-to-edit raw config flow 8 months ago
Peter Steinberger d25c4fd6c5 test: tighten discord lifecycle gateway mocks 8 months ago
Peter Steinberger 4726593d6d test: refresh planner batching expectations 8 months ago
Peter Steinberger 96a44d979d fix: route memory test harness through plugin sdk 8 months ago
felear2022 623f4d3056 fix: use stream-json output for Claude CLI backend to prevent watchdog timeouts
The Claude CLI backend uses `--output-format json`, which produces no
stdout until the entire request completes. When session context is large
(100K+ tokens) or API response is slow, the no-output watchdog timer
(max 180s for resume sessions) kills the process before it finishes,
resulting in "CLI produced no output for 180s and was terminated" errors.

Switch to `--output-format stream-json --verbose` so Claude CLI emits
NDJSON events throughout processing (init, assistant, rate_limit, result).
Each event resets the watchdog timer, which is the intended behavior —
the watchdog detects truly stuck processes, not slow-but-progressing ones.

Changes:
- cli-backends.ts: `json` → `stream-json --verbose`, `output: "jsonl"`
- helpers.ts: teach parseCliJsonl to extract text from Claude's
  `{"type":"result","result":"..."}` NDJSON line

Note: `--verbose` is required for stream-json in `-p` (print) mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 months ago
kenantan32 4ad7d51c01 fix: preserve CLI session ID in text output mode
When the CLI backend output mode is "text", sessionId was hardcoded to
undefined. This caused the fallback chain to store the OpenClaw internal
UUID as the CLI session ID. On resume, --resume was called with the
wrong UUID, resulting in "No conversation found with session ID".

Return resolvedSessionId instead of undefined so the correct CLI session
ID is persisted and resume works correctly.
8 months ago
Peter Steinberger e46e655451 test: restore memory test seams (#55324) (thanks @joelnishanth) 8 months ago
joelnishanth 5b85d0efa4 discord: fix stale-socket reconnect crash from uncaught reconnect-exhausted error 8 months ago
dhi13man 9f8c4efa9b fix(agents): use claude-cli backend in tools-disabled regression test
codex-cli lacks systemPromptArg, so the system prompt is never
serialized into argv — making the not-toContain assertion pass
vacuously even on pre-fix code. Switch to claude-cli which defines
systemPromptArg ("--append-system-prompt") and add a positive
assertion that the user-supplied prompt IS present in argv.

Co-Authored-By: Dhiman's Agentic Suite <dhiman.seal@hotmail.com>
8 months ago
dhi13man 99f0ea8d43 fix(agents): remove unconditional "Tools are disabled" prompt injection in CLI runner
`runCliAgent()` unconditionally appended "Tools are disabled in this
session. Do not call tools." to `extraSystemPrompt` for every CLI
backend session. The intent was to prevent the LLM from calling
OpenClaw's embedded API tools (since CLI backends manage their own
tools natively). However, CLI agents like Claude Code interpret this
text as a blanket prohibition on ALL tools, including their own native
Bash, Read, and Write tools.

This caused silent failures across cron jobs, group chats, and DM
sessions when using any CLI backend: the agent would see the injected
text in the system prompt and refuse to execute tools, returning text
responses instead. Cron jobs reported `lastStatus: "ok"` despite the
agent failing to run scripts.

The fix removes the hardcoded string entirely. CLI backends already
receive `tools: []` (no OpenClaw embedded tools in the API call), so
the text was redundant at best.

Closes #44135

Co-Authored-By: Dhiman's Agentic Suite <dhiman.seal@hotmail.com>
8 months ago
Peter Steinberger 16565020a1 refactor: finish browser test path cleanup 8 months ago
Peter Steinberger 0ef2a9c8b5 refactor: remove core browser test duplicates 8 months ago
Peter Steinberger 9a7ceceffa refactor: move browser tests into plugin 8 months ago
Peter Steinberger 22348914cf
refactor: centralize discord gateway ownership 8 months ago
Peter Steinberger 01bcbcf8d5
refactor: require legacy config migration on read 8 months ago
Peter Steinberger cad83db8b2
refactor: move memory engine into memory plugin 8 months ago
Peter Steinberger 0e182dd3e1 refactor: share top-level setup dm policies 8 months ago
Peter Steinberger abf95c5f99 refactor: share build copy script helpers 8 months ago
Peter Steinberger 0106b0488a refactor: share config section card rendering 8 months ago
Peter Steinberger 4890656d9d refactor: share matrix state file path helper 8 months ago
Peter Steinberger bfad32aa16 refactor: share directory config listers 8 months ago
Peter Steinberger 4151b48d6c style(browser): format profiles service test 8 months ago
Peter Steinberger 8eeccb116d test(planner): refresh extension batch expectations 8 months ago
Peter Steinberger d1d0887932 refactor: remove legacy browser bridge entrypoints 8 months ago
Peter Steinberger 4b40d4dfa8 perf: optimize cold import paths 8 months ago
Peter Steinberger 15181b3a77 docs(anthropic): dedupe config heading 8 months ago
Peter Steinberger 5f2876911a fix: harden discord gateway cleanup (#55373) (thanks @Takhoffman) 8 months ago
Tak Hoffman a79c9d50f7 fix(discord): guard gateway cleanup races 8 months ago
Peter Steinberger f406b20e50 chore(docs): refresh generated baselines 8 months ago
Peter Steinberger eef27001de
docs: explain anthropic claude cli migration 8 months ago
Peter Steinberger ebf5bd75f4
feat: add anthropic claude cli migration 8 months ago
Peter Steinberger b96fccadb9
refactor: clean memory plugin host boundary 8 months ago
Peter Steinberger 556ce5cdda test(browser): fix CI after compat re-exports 8 months ago
Peter Steinberger 09c186d5f9 refactor: remove browser compat shadow tree 8 months ago
Peter Steinberger d72115c9df
refactor: genericize speech provider config surface 8 months ago
Peter Steinberger 83ca6fbfc6 refactor: finish browser compat untangle 8 months ago
Peter Steinberger 8ee809f3cc refactor: share plugin entry exports 8 months ago
Peter Steinberger 8df6134a1b refactor: share usage metrics timeslice walker 8 months ago
Peter Steinberger ff47ad58fc refactor: share config path traversal helper 8 months ago
Peter Steinberger 5445bc68b9 refactor: share tts auto mode normalization 8 months ago
Seungwoo hong 138a92373b
fix(talk): prevent double TTS playback when system voice times out (#53511)
Merged via squash.

Prepared head SHA: 864d556fa66d6d1021e081b3694aa68e225839b7
Co-authored-by: hongsw <1100974+hongsw@users.noreply.github.com>
Co-authored-by: grp06 <1573959+grp06@users.noreply.github.com>
Reviewed-by: @grp06
8 months ago
Peter Steinberger 0f5a77d058
refactor: route memory runtime through memory plugin 8 months ago
Peter Steinberger 2c6d099b01
refactor: plugin-own speech provider config 8 months ago
Peter Steinberger 8eeb7f0829 refactor: switch browser ownership to bundled plugin 8 months ago
Peter Steinberger 197510f693 refactor: add browser plugin runtime package 8 months ago
Peter Steinberger 1619090693
refactor: move memory plugin state into plugin host 8 months ago