Commit Graph

26939 Commits

Author SHA1 Message Date
Andy Ye f9ecbef08f fix(agents): initialize context engines before CLI compaction 2026-05-10 05:05:33 -04:00
Peter Steinberger 8fdbac62f9 test: clear runtime registry loader broad matchers 2026-05-10 10:02:38 +01:00
Peter Steinberger 325d9ca7cb fix: add strict OpenAI-compatible message key mode 2026-05-10 10:02:05 +01:00
Peter Steinberger d34c4f9426 test: clear configure wizard broad matchers 2026-05-10 09:56:15 +01:00
Val Alexander 2e48b1f3bb fix: allow tweakcn theme imports in Control UI CSP
Allow the documented Control UI Appearance tweakcn theme import to fetch https://tweakcn.com/r/themes/{id} through the served CSP without broadening browser egress beyond the exact tweakcn origin.

This preserves the existing OpenAI realtime origin, adds focused CSP/header regression coverage, and keeps the custom-theme importer/storage behavior unchanged.

Fixes #78504.
2026-05-10 03:54:39 -05:00
Peter Steinberger a39c05559b fix: preserve Codex auth during route repair
Summary:
- repair legacy openai-codex model refs to canonical openai refs without losing Codex auth intent
- keep scoped repairs from broadening runtime policy to unrelated agent/channel routes
- preserve explicit concrete model runtime pins and shield listed-agent canonical refs from default policy spillover

Verification:
- pnpm test src/commands/doctor/shared/codex-route-warnings.test.ts src/config/plugin-auto-enable.core.test.ts src/commands/doctor/shared/missing-configured-plugin-install.test.ts
- env -u OPENCLAW_TESTBOX -u OPENCLAW_TESTBOX_ID pnpm check:changed
- GitHub checks for 81b2934240
2026-05-10 04:53:44 -04:00
Peter Steinberger 8c158efa6d test: clear gateway server cron broad matchers 2026-05-10 09:52:53 +01:00
Peter Steinberger faa1c6f972 fix: preserve custom provider context limits (#79911) 2026-05-10 04:51:45 -04:00
Jefsky 17b593d123 fix(onboard): avoid custom-provider compaction deadlock (#79428)
Raise default/effective Custom Provider contextWindow above the compaction
reserveTokensFloor default so new onboard flows do not infinite-compact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:51:45 -04:00
Peter Steinberger 5b668712ef fix: clarify background process input prompts 2026-05-10 09:37:44 +01:00
Peter Steinberger e26835fe8a test: clear cli runner reliability broad matchers 2026-05-10 09:36:36 +01:00
Val Alexander 38456f5f03 fix(gateway): scope chat session list refreshes
Fix Control UI post-first-message session switching stalls by scoping chat-specific sessions.list refreshes to the active agent, avoiding disk-only store discovery for configured-only gateway lists, and adding sessions.list diagnostics spans.\n\nVerification:\n- pnpm test ui/src/ui/controllers/sessions.test.ts ui/src/ui/app-render.helpers.node.test.ts ui/src/ui/app-chat.test.ts ui/src/ui/app-gateway.sessions.node.test.ts src/gateway/server.sessions.store-rpc.test.ts src/gateway/server.sessions.list-changed.test.ts src/gateway/session-utils.subagent.test.ts\n- pnpm check:changed\n- pnpm protocol:check\n- pnpm lint:ui:no-raw-window-open\n- Browser QA against Control UI dev server\n\nFixes #79675.
2026-05-10 03:35:46 -05:00
Peter Steinberger df68a157b3 test: clear doctor gateway service broad matchers 2026-05-10 09:32:52 +01:00
Peter Steinberger 433203774f fix: keep ollama cloud idle watchdog 2026-05-10 09:29:51 +01:00
Peter Steinberger 20446dbba7 test: clear exec approvals cli broad matchers 2026-05-10 09:24:48 +01:00
scoootscooob 769b11732b Project Tool Search target calls in transcripts (#80164) 2026-05-10 04:24:01 -04:00
Peter Steinberger 1f30ea39b5 test: clear talk handoff broad matchers 2026-05-10 09:21:38 +01:00
scoootscooob 1382a5e639 fix: prefer IPv4 for pinned SSRF lookups (#80162) 2026-05-10 04:20:26 -04:00
Peter Steinberger 751423299b fix: keep heartbeat fallback cleanup scoped 2026-05-10 04:13:23 -04:00
Peter Steinberger d61b07a321 fix: preserve chained fallback origin 2026-05-10 04:13:23 -04:00
Peter Steinberger 662b9d2f5d fix: clear stale heartbeat fallback overrides
Co-authored-by: bitloi <raphaelaloi.eth@gmail.com>
2026-05-10 04:13:23 -04:00
bitloi ed6b030a43 feat(process): show input-wait hints in log and poll
Show input-wait hints in process log/poll for idle interactive background sessions, keep list markers and structured stdin metadata, and document the recovery flow through log plus existing input actions.

Docs: updated docs/gateway/background-process.md.

Verification:
- pnpm test src/agents/bash-tools.test.ts
- pnpm test src/agents/bash-tools.process.input-hints.test.ts
- pnpm test src/agents/bash-tools.process.input-hints.test.ts src/agents/bash-tools.process.poll-timeout.test.ts src/agents/bash-tools.process.supervisor.test.ts src/agents/bash-tools.process-send-keys.test.ts
- pnpm check:docs
- git diff --check
- CI on 4aea1f11fe: check, check-additional, check-docs, checks-node-core, process/security relevant shards, real behavior proof passed

Fixes #33957.
Thanks @bitloi and @vincentkoc.

Co-authored-by: bitloi <89318445+bitloi@users.noreply.github.com>
Co-authored-by: bitloi <raphaelaloi.eth@gmail.com>
2026-05-10 04:13:07 -04:00
Peter Steinberger 09132effa8 test: clear anthropic transport broad matchers 2026-05-10 09:06:47 +01:00
scoootscooob e5fe9bdef0 fix: reread config on in-process gateway restart (#80161)
* fix: reread config on in-process gateway restart

* fix: refresh swift protocol model
2026-05-10 04:01:19 -04:00
Peter Steinberger 5bcc6337af test: clear sessions spawn tool broad matchers 2026-05-10 08:47:34 +01:00
Peter Steinberger 04a414de20 test: clear plugin loader broad matchers 2026-05-10 08:40:19 +01:00
Peter Steinberger bc0a626164 test: clear image generate tool broad matchers 2026-05-10 08:29:13 +01:00
Peter Steinberger 8f4e9c841c refactor: isolate exec approval followup handoff 2026-05-10 08:25:15 +01:00
Peter Steinberger 15b26be8da fix: clean up tool search lint 2026-05-10 03:21:50 -04:00
Peter Steinberger c6ef46d703 test: cover tool search compaction 2026-05-10 03:21:50 -04:00
Peter Steinberger 7a1a3ae2fe feat: wire tool search through PI runner 2026-05-10 03:21:50 -04:00
Peter Steinberger 93acb38159 feat: add PI tool search runtime 2026-05-10 03:21:50 -04:00
Peter Steinberger 09cffbdfbf fix(cli): avoid plugin allowlist hints for unknown commands
Co-authored-by: kagura-agent <kagura.agent.ai@gmail.com>
2026-05-10 03:21:11 -04:00
Peter Steinberger 036eb75a30 fix: normalize merged gemini model config 2026-05-10 08:20:10 +01:00
Peter Steinberger 1a2664e2ce test: clear restart sentinel broad matchers 2026-05-10 08:15:11 +01:00
Peter Steinberger 4643ec761b test: clear acp spawn broad matchers 2026-05-10 08:10:29 +01:00
Peter Steinberger a25072535e test: clear btw broad matchers 2026-05-10 08:06:53 +01:00
Peter Steinberger 9e7acd4b2b fix: tighten stale plugin diagnostic registry checks (#80134) 2026-05-10 03:04:35 -04:00
hclsys d160f82719 fix(doctor): invalidate persisted plugin registry when a diagnostic source path no longer exists
Closes #80087.

When a plugin was previously installed from ~/.openclaw/extensions/<id>/ but
that directory was later removed (replaced by an npm-managed install), the
persisted plugin registry JSON still carried the old "requires compiled runtime
output" WARN diagnostic whose `source` field pointed at the deleted path. On
subsequent `openclaw doctor` runs, the persisted snapshot passed all existing
staleness checks (the npm-loaded plugin was valid), so the stale diagnostic was
re-emitted verbatim — referencing a directory that no longer existed.

Add `hasStalePersistedPluginDiagnostics`: if any diagnostic in the persisted
index has an absolute-path `source` that does not exist on disk, treat the
persisted snapshot as stale and fall back to a freshly derived index (which
will not reproduce the phantom warning). Includes a regression test that
constructs a persisted index carrying a ghost-path diagnostic, verifies the
derived path is taken, and confirms the stale diagnostic is absent from the
fresh snapshot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 03:04:35 -04:00
Peter Steinberger 47155ae169 test: clear gateway tool broad matchers 2026-05-10 08:02:57 +01:00
Peter Steinberger be9b083806 test: clear overflow compaction broad matchers 2026-05-10 08:00:24 +01:00
Peter Steinberger 421cdd4737 test: clear acp command broad matchers 2026-05-10 07:57:29 +01:00
Peter Steinberger c6dcf9b37a fix(media): allow common host-read archives 2026-05-10 07:53:21 +01:00
Peter Steinberger a7797da068 test: resolve elevated followup rebase 2026-05-10 02:50:37 -04:00
bitloi 6ee55398e5 Preserve elevated exec followup defaults 2026-05-10 02:50:37 -04:00
Peter Steinberger 48cfb77e9b test: clear talk realtime relay broad matchers 2026-05-10 07:48:21 +01:00
Peter Steinberger 9160155902 fix(cron): delay cli model-start phase 2026-05-10 02:47:34 -04:00
Peter Steinberger 5b3e2497bd fix(cron): diagnose isolated pre-model stalls 2026-05-10 02:47:34 -04:00
Peter Steinberger d5c094f169 fix(models): include auth catalog rows in configured list 2026-05-10 07:45:39 +01:00
Peter Steinberger d8640a847b test: clear agents mutate broad matchers 2026-05-10 07:44:44 +01:00