Skip to content

[codex] Consolidate RuntimePlan and Harness V2 package - #71722

Merged
pashpashpash merged 4 commits into
openclaw:mainfrom
electricsheephq:contract-first/runtime-plan-harness-consolidated
Apr 25, 2026
Merged

pashpashpash merged 4 commits into
openclaw:mainfrom
electricsheephq:contract-first/runtime-plan-harness-consolidated

Conversation

@100yenadmin

Copy link
Copy Markdown
Contributor

Summary

This consolidates the RuntimePlan/Harness review package into one traceable PR so maintainers do not have to spend scarce review slots on nine small PRs. It supersedes the originals listed below and preserves their history with git cherry-pick -x commits.

This is still the contract-first path from RFC #71004: RuntimePlan stays the OpenClaw-owned policy seam, Harness V2 is additive, and the misleading embedded-runner naming is only given a compatibility barrel here rather than a behavioral rename.

Architecture

flowchart TD
  Main["origin/main"] --> RuntimePlan["RuntimePlan contracts"]
  RuntimePlan --> Pi["Pi embedded runner"]
  RuntimePlan --> Codex["Codex app-server adapter"]
  RuntimePlan --> Tools["Tool policy + diagnostics"]
  RuntimePlan --> Outcome["Outcome classification"]
  Outcome --> HarnessV2["Harness V2 lifecycle adapter"]
  HarnessV2 --> Selection["Harness selection execution"]
  Pi --> Transcript["Transcript policy resolver"]
  Codex --> Observability["ResolvedRef observability"]
Loading

What Changed

  • Keeps src/agents/runtime-plan/types.ts leaf-safe and guards it from importing concrete Pi/plugin/transcript policy modules.
  • Tightens RuntimePlan structural compatibility for reply payloads, prompt modes, failover reasons, and builder params.
  • Adds RuntimePlan forwarding tests for selected harness attempts and Codex app-server observability/failure observability.
  • Centralizes runtime-plan tool policy and diagnostics so attempt code reads the plan instead of duplicating policy plumbing.
  • Adds additive Harness V2 lifecycle primitives and routes selected harness execution through the V2 adapter while preserving V1 compatibility.
  • Shares terminal outcome classification through the plugin-sdk runtime helper and narrows stale metadata edge cases.
  • Extracts the embedded attempt transcript policy resolver behind RuntimePlan-aware fallback behavior.
  • Adds the src/agents/embedded-runner/index.ts barrel as a compatibility waypoint without moving or renaming the Pi runner package.

Original PRs Superseded

PR Original Scope Branch
#71196 RuntimePlan leaf-safe contract hardening contract-first/runtime-plan-contract-closure
#71197 RuntimePlan adoption/forwarding tests contract-first/runtime-plan-adoption-cleanup
#71201 Codex RuntimePlan observability tests contract-first/runtime-plan-observability
#71220 RuntimePlan tool policy dedupe contract-first/runtime-plan-tool-policy-dedupe
#71222 Harness V2 lifecycle adapter contract-first/harness-v2-lifecycle-adapter
#71223 Embedded runner transcript policy resolver contract-first/embedded-runner-contract-split
#71224 Embedded runner compatibility barrel contract-first/embedded-runner-aliases
#71238 Harness V2 selection execution contract-first/harness-v2-selection-execution
#71239 Shared terminal outcome policy resolver contract-first/outcome-policy-resolver

Review Notes

  • This deliberately avoids Harness V2 plugin migration removal, runner file splits, package renames, WS pooling, or any work from [codex] Harden GPT-5.4 runtime paths #70743/[codex] Add Pi/Codex harness extension seams #70772.
  • The compatibility barrel is intentionally tiny; the actual rename remains deferred until the behavior contracts and Harness V2 migration are stable.
  • check:test-types still fails on existing repo baseline issues outside this diff, primarily ModelCompatConfig.supportsLongCacheRetention drift and missing @vincentkoc/qrcode-tui types. Changed-file type failures found during consolidation were fixed in the top commit.

Verification

Targeted checks run locally:

node scripts/run-vitest.mjs run --config test/vitest/vitest.agents.config.ts \
  src/agents/runtime-plan/tools.test.ts \
  src/agents/runtime-plan/tools.diagnostics.test.ts \
  src/agents/pi-embedded-runner/run.overflow-compaction.test.ts \
  src/agents/harness/v2.test.ts \
  src/agents/harness/selection.test.ts \
  src/agents/pi-embedded-runner/run/attempt.transcript-policy.test.ts

node scripts/run-vitest.mjs run --config test/vitest/vitest.extensions.config.ts \
  extensions/codex/src/app-server/run-attempt.test.ts \
  extensions/codex/src/app-server/event-projector.test.ts

node scripts/run-vitest.mjs run --config test/vitest/vitest.agents.config.ts \
  src/agents/runtime-plan/build.test.ts \
  src/agents/runtime-plan/types.test.ts \
  src/agents/pi-embedded-runner/run/attempt.transcript-policy.test.ts

./node_modules/.bin/vitest run \
  src/agents/runtime-plan/types.compat.test.ts \
  --config test/vitest/vitest.unit-fast.config.ts

pnpm check:architecture
./node_modules/.bin/oxlint --tsconfig tsconfig.oxlint.core.json <changed TypeScript files>
git diff --check origin/main...HEAD

Results:

  • Agents targeted suite: 6 files, 55 tests passed.
  • Codex extension targeted suite: 2 files, 51 tests passed.
  • RuntimePlan build/type/transcript targeted rerun: 3 files, 6 tests passed.
  • RuntimePlan structural compat rerun: 1 file, 3 tests passed.
  • pnpm check:architecture: passed, 0 runtime import cycles and 0 Madge cycles.
  • Oxlint on 21 changed files: 0 warnings, 0 errors.
  • git diff --check origin/main...HEAD: passed.
  • pnpm check:test-types: fails on existing repo-baseline type drift outside this package; no changed-file errors remain after fix: align consolidated runtime plan type surface.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

@steipete consolidated previous PR's here

@greptile-apps

greptile-apps Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR consolidates nine previously separate contracts/harness PRs into a single traceable change. It decouples AgentRuntimePlan types from concrete imports (OpenClawConfig, ProviderRuntimeModel, etc.) by introducing opaque AgentRuntimeConfig/AgentRuntimeModel aliases, centralizes tool normalization/diagnostics in runtime-plan/tools.ts, adds a V2 lifecycle adapter (prepare → start → send → resolveOutcome → cleanup) with V1 compatibility shim, moves terminal outcome classification to the plugin SDK, and extracts the transcript policy resolver behind a RuntimePlan-aware fallback.

Confidence Score: 4/5

PR is safe to merge; all changes are well-tested with clear documented intent and no runtime correctness issues found.

No P0 or P1 findings. The consolidation is clean, test coverage is thorough (6 targeted test suites, all passing), and the intentional behavior changes (whitespace-only assistant texts now eligible for terminal classification, stale result classification cleared when classify resolves to ok) are explicitly tested and documented.

No files require special attention. The V2 lifecycle adapter in src/agents/harness/v2.ts and the changed outcome classification behavior in src/plugin-sdk/agent-harness-runtime.ts are the highest-impact changes but are both well-covered by tests.

Reviews (1): Last reviewed commit: "fix: align consolidated runtime plan typ..." | Re-trigger Greptile

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR consolidates the contract-first RuntimePlan hardening and the additive Harness V2 lifecycle adapter work into a single traceable change-set, ensuring Pi and Codex execution paths share OpenClaw-owned runtime policy (tools, transcript policy, outcome classification, and observability) without reintroducing coupling into the leaf RuntimePlan contracts.

Changes:

  • Makes src/agents/runtime-plan/types.ts leaf-safe by copying structural contract types/unions and adds topology + structural-compat tests to prevent drift.
  • Centralizes RuntimePlan-first tool normalization/diagnostics (normalizeAgentRuntimeTools, logAgentRuntimeToolDiagnostics) and reuses it from Pi and Codex.
  • Adds Harness V2 lifecycle adapter + executor, routes harness selection execution through the V2 lifecycle, and shares terminal outcome classification via plugin-sdk/agent-harness-runtime.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/plugin-sdk/agent-harness-runtime.ts Exposes shared tool policy helpers and adds shared terminal outcome classification helper.
src/plugin-sdk/agent-harness-runtime.test.ts Unit coverage for terminal outcome classification (empty/reasoning-only/planning-only + exclusions).
src/agents/runtime-plan/types.ts Replaces concrete imports with leaf-safe structural contract copies (model/config/reply payload/prompt modes/etc).
src/agents/runtime-plan/types.test.ts Guards types.ts against importing concrete runtime policy modules.
src/agents/runtime-plan/types.compat.test.ts Enforces structural compatibility between copied RuntimePlan contracts and their source types.
src/agents/runtime-plan/tools.ts Adds shared RuntimePlan-first tool normalization + diagnostics with legacy fallback.
src/agents/runtime-plan/tools.test.ts Tests RuntimePlan-preferred + legacy fallback tool normalization/diagnostics.
src/agents/runtime-plan/tools.diagnostics.test.ts Focused test for diagnostics fallback behavior when no RuntimePlan is present.
src/agents/runtime-plan/build.ts Adapts build-time wiring to leaf-safe types (casts/guards), preserving concrete policy usage in the builder.
src/agents/pi-embedded-runner/run/attempt.ts Uses shared tool helpers and extracts transcript policy resolution behind a RuntimePlan-aware resolver.
src/agents/pi-embedded-runner/run/attempt.transcript-policy.ts New RuntimePlan-first transcript policy resolver with legacy fallback.
src/agents/pi-embedded-runner/run/attempt.transcript-policy.test.ts Tests RuntimePlan-first and legacy transcript policy behavior.
src/agents/pi-embedded-runner/run.overflow-compaction.test.ts Asserts RuntimePlan + attempt param forwarding into a single attempt call (Pi + plugin harness).
src/agents/harness/v2.ts Introduces Harness V2 lifecycle interface, V1 adapter, and lifecycle attempt runner w/ cleanup semantics.
src/agents/harness/v2.test.ts Extensive lifecycle, cleanup, and classification behavior coverage (including stale-classification clearing).
src/agents/harness/selection.ts Routes selected harness execution through the V2 lifecycle wrapper.
src/agents/harness/result-classification.ts Centralizes classification application logic (incl. stale metadata handling).
src/agents/embedded-runner/index.ts Adds compatibility barrel export for neutral embedded-runner import path.
extensions/codex/src/app-server/run-attempt.ts Uses shared RuntimePlan-first tool normalization helper.
extensions/codex/src/app-server/run-attempt.test.ts Builds RuntimePlan in tests and asserts observability fields (resolvedRef, harnessId) are forwarded.
extensions/codex/src/app-server/event-projector.ts Replaces local terminal-outcome classifier with shared SDK helper.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes and removed cli CLI command changes labels Apr 25, 2026
@steipete

Copy link
Copy Markdown
Contributor

Codex maintainer review/update:

Rebased this onto current main and pushed a docs fixup for the public harness SDK/runtime-plan surface.

What this solves: Codex/PI agent execution now share a concrete RuntimePlan contract for tool policy, transcript policy, transport/auth context, and terminal outcome classification, while Harness V2 adds explicit start/run/cleanup lifecycle semantics over the existing V1 adapter.

Review verdict: this is the right shape. The plan types stay leaf-safe, extension code consumes the shared SDK seams instead of duplicating Codex-specific outcome classification, and cleanup/error behavior is covered so original run failures are preserved while cleanup-only failures still surface.

Local proof:

  • pnpm test src/plugin-sdk/facade-loader.test.ts src/plugins/setup-registry.test.ts src/plugins/doctor-contract-registry.test.ts src/cli/program/preaction.test.ts
  • pnpm test src/agents/runtime-plan/tools.test.ts src/agents/runtime-plan/tools.diagnostics.test.ts src/agents/pi-embedded-runner/run.overflow-compaction.test.ts src/agents/harness/v2.test.ts src/agents/harness/selection.test.ts src/agents/pi-embedded-runner/run/attempt.transcript-policy.test.ts src/agents/runtime-plan/build.test.ts src/agents/runtime-plan/types.test.ts src/agents/runtime-plan/types.compat.test.ts extensions/codex/src/app-server/run-attempt.test.ts extensions/codex/src/app-server/event-projector.test.ts extensions/codex/src/app-server/outcome-fallback-runtime-contract.test.ts extensions/codex/src/app-server/delivery-no-reply-runtime-contract.test.ts src/plugin-sdk/agent-harness-runtime.test.ts
  • pnpm check:changed through typecheck/lint/changed tests/full extension sweep until the local tool timeout during the final extension-media group; reran the remaining media/misc extension groups separately and they passed.
  • pnpm check:docs
  • pnpm build after pnpm install refreshed the bundled Matrix runtime dependency graph.
  • Earlier on this PR head lineage: OPENCLAW_LOCAL_CHECK=0 node scripts/profile-extension-memory.mjs --extension codex --skip-combined --concurrency 1 passed.

GitHub CI is green on b02a199a196b11eca825d4c41c546338b3c28350.

@pashpashpash pashpashpash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pushing this through. I reviewed the shape of the RuntimePlan / Harness V2 consolidation and this looks sound to me.

The reason this fits the direction we want is that it makes the runtime boundary more explicit without turning OpenClaw into the owner of Codex internals. The philosophy for Codex mode should stay: Codex owns the OpenAI model loop, native thread state, native tools, and native compaction; OpenClaw owns the host/runtime contract around it: channel routing, auth forwarding, delivery policy, plugin compatibility surfaces, dynamic tools, observability, and honest lifecycle projection.

This PR is consistent with that split. RuntimePlan centralizes OpenClaw-owned policy that already has to be shared across PI and native harnesses, and Harness V2 gives us a clearer lifecycle shape around a prepared attempt. I do not see it rewriting Codex context, replacing Codex compaction, or making OpenClaw manage Codex in an overbearing way.

The docs also do the right thing by steering contributors toward this boundary: harnesses should run prepared attempts, use host-owned policy where needed, and avoid switching providers/models or mutating the plan inside a turn. That is the right mental model for future harness work.

@pashpashpash
pashpashpash merged commit 2c35a6e into openclaw:main Apr 25, 2026
66 checks passed
@100yenadmin

100yenadmin commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for merge @pashpashpash @steipete I may not always agree on an architecture in deliberations, but once a direction is chosen, I will do my best to make that transition as seamless as possible so that we have no regressions and catch any potential new regressions before we release any updates or refactors to old code.

ayesha-aziz123 pushed a commit to ayesha-aziz123/openclaw that referenced this pull request Apr 26, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request May 13, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
luyuehm added a commit to luyuehm/openclaw that referenced this pull request Sep 24, 2026
…C-761) (#1)

* feat(litellm): add image generation provider (openclaw#70246)

* feat(litellm): add image generation provider

Registers litellm as an image-generation provider so model refs like
litellm/gpt-image-2 route through the LiteLLM proxy, and
agents.defaults.imageGenerationModel.fallbacks entries of the form
litellm/... resolve without "No image-generation provider registered
for litellm" errors.

Implementation uses the OpenAI-compatible /images/generations and
/images/edits endpoints that LiteLLM proxies for. BaseUrl resolves from
models.providers.litellm.baseUrl (default http://localhost:4000). Private
network is auto-allowed when baseUrl is a loopback/RFC1918 address, which
covers the common self-hosted LiteLLM proxy case without needing
OPENCLAW_PROVIDER_ALLOW_PRIVATE_NETWORK. Public baseUrls keep normal SSRF
defaults.

Default model is gpt-image-2 (matching upstream 4.21+ OpenAI default).
Advertises the same 2K/4K sizes OpenAI now exposes, plus legacy
256/512/1024 for dall-e-3. Supports both generate and edit.

Local patch. LiteLLM has no upstream image-generation support yet; revisit
if upstream adds one.

* ci: rerun after upstream main hot-fix

* fix(litellm): harden image generation provider

---------

Co-authored-by: Chris Zhang <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* Fix context usage display and active-run reload interruptions

Fixes context usage display regressions and prevents active runs from being interrupted by channel reloads. Adds persisted tool-result detail bounds so large tool metadata stays out of model/session payloads.

* fix: recover stale runtime deps locks

* feat(diagnostics-otel): export tool loop events

* fix(browser): avoid restart hint for external profiles

* feat(diagnostics-otel): export memory diagnostics

* fix(providers): handle proxied DeepSeek V4 replay

* perf: lazy-load heavy test imports

* test: streamline memory and tts suites

* test: split pure tool-card coverage

* fix: sanitize assembled diagnostic context

* fix: support transparent OpenAI image generation

* test: stabilize QA session memory ranking

* feat(diagnostics-otel): add genai token usage metric

* docs(logging): document new OTEL metrics and spans from recent diagnostics-otel feats

Five recent diagnostics-otel feat commits added user-facing OpenTelemetry
surfaces but did not update docs/logging.md, so the listed metrics and
spans drifted out of sync with what the plugin actually exports:

- 7bbd473 adds gen_ai.client.token.usage histogram (GenAI semconv)
- b8a4173 adds memory heap/rss histograms, pressure counter and span
- d6ef1fc adds openclaw.tool.loop counters and span
- ff172f4 adds openclaw.context.assembled span
- 4411432 adds openclaw.provider.request_id_hash attr on
  openclaw.model.call spans

Append the new metrics under existing model-usage and exec sections,
add a 'Diagnostics internals' subsection for memory + tool-loop
metrics, and add the three new spans (context.assembled, tool.loop,
memory.pressure) plus the request-id-hash attribute to the spans
listing.

* test(voice): harden live STT transcript checks

* feat(plugins): move install records to managed ledger

* fix(bonjour): suppress ciao cancellation across plugin runtime copies

Fix the bundled Bonjour gateway discovery crash-loop caused by ciao probe cancellation rejections after the Bonjour plugin migration.

The plugin entry now wires the existing rejection handler into the advertiser, and the unhandled-rejection handler registry is anchored on globalThis so staged plugin SDK module copies register into the same process-level handler set used by the host.

Verification:
- pnpm test:serial extensions/bonjour/src/advertiser.test.ts src/infra/unhandled-rejections.fatal-detection.test.ts
- OPENCLAW_LOCAL_CHECK_MODE=throttled pnpm check:changed partially completed: conflict markers plus core/core-test/extensions/extension-test typecheck passed; local lint lane hit a self-lock and was stopped.

* fix(plugins): preserve package deps for runtime mirrors

* fix(plugins): load mirrored runtime deps through ESM-safe aliases

* fix(plugins): alias runtime dependency export subpaths

* fix(plugins): alias wildcard runtime dependency exports

* test: isolate gateway live model sessions

* test(codex): accept visible session model reply

* fix(logging): include context assembly diagnostics in stability log

* fix(logging): remove duplicate context diagnostic case

* fix(plugins): honor inferred agent model defaults

* fix: align plugin install tests with ledger store

* docs: clarify tool result details persistence

* test: hoist backup archive mocks

* feat(diagnostics-otel): add genai operation duration metric

* fix(plugins): harden install ledger path handling

* docs(changelog): restore 2026.4.24 release notes

* fix(plugins): keep onboarding install records out of config

* test(plugins): align install ledger mocks

* fix: preserve omitted thinking replay turns

* fix: handle context assembled diagnostics

* fix(acp): pass Codex ACP model thinking overrides

Fix ACP Codex model/thinking override propagation.\n\nThanks @91wan.

* feat(diagnostics-otel): add genai usage span attrs

* fix: expose transparent image infer options

* docs(browser): document local startup timeout bounds (openclaw#71672)

* docs(browser): document local startup timeout bounds

The new browser.localLaunchTimeoutMs and browser.localCdpReadyTimeoutMs
options are clamped to MAX_BROWSER_STARTUP_TIMEOUT_MS (120000 ms) by
normalizeStartupTimeoutMs in extensions/browser/src/browser/config.ts,
and zero/negative/non-finite values fall back to the defaults. Without
this in the configuration reference, users setting a higher value see
no error and silently get the 120 s ceiling, or set 0 expecting 'no
timeout' and silently get the default.

* docs(browser): clarify startup timeout validation

---------

Co-authored-by: Peter Steinberger <[email protected]>

* docs(changelog): split 2026.4.24 and 2026.4.25 notes

* docs(changelog): drop self-thanks

* fix: improve google meet setup diagnostics

* feat(diagnostics-otel): add genai usage span identity

* docs(browser): note tilde expansion also covers per-profile paths (openclaw#71601)

* docs(browser): note tilde expansion also covers per-profile paths

The 95a2c9b fix expanded "~" for both `browser.executablePath` and
per-profile `profiles.<name>.executablePath` (config.ts:382 calls
`normalizeExecutablePath` for profile overrides). Per-profile
`userDataDir` on existing-session profiles is also tilde-expanded
(config.ts:391 via `resolveUserPath`). The configuration reference
only mentioned the top-level `browser.executablePath` case.

* docs(browser): align tilde path config help

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix(minimax): use dedicated image generation endpoint (openclaw#61155)

* fix(minimax): use dedicated image generation endpoint

MiniMax image generation uses a dedicated API endpoint
(api.minimax.io/v1/image_generation) that is separate from the
text/chat API endpoint (api.minimax.io/anthropic).

Previously, the resolveMinimaxImageBaseUrl function would extract
the origin from the provider's configured baseUrl. If a user had
configured their baseUrl to the chat endpoint (e.g.,
api.minimax.chat/anthropic), the image generation would incorrectly
use that endpoint, resulting in "invalid api key" errors.

This fix always uses the dedicated image generation endpoint,
ignoring the provider's baseUrl configuration for image generation.

Fixes openclaw#61149

* fix(minimax): support CN endpoint for image generation

Respect MINIMAX_API_HOST environment variable to determine whether
to use the global (api.minimax.io) or CN (api.minimaxi.com) endpoint
for image generation.

This ensures that CN users who configure MINIMAX_API_HOST to use
api.minimaxi.com will continue to use the CN endpoint for image
generation, while global users continue to use api.minimax.io.

The original bug was caused by the code extracting the origin from
the provider's configured baseUrl, which could be set to incorrect
endpoints like api.minimax.chat. This fix uses the dedicated image
generation endpoints instead.

Fixes openclaw#61149

* fix(minimax): infer CN endpoint from provider config when env is unset

When MINIMAX_API_HOST is not set, fall back to checking the provider's
configured baseUrl to determine whether to use the CN or global image
endpoint. This ensures CN users who went through onboarding (which sets
models.providers.minimax.baseUrl to https://api.minimaxi.com/anthropic)
are correctly routed to the CN image endpoint.

The isMinimaxCnHost check ensures we only use the baseUrl origin for
CN detection - invalid endpoints like api.minimax.chat would not match
minimaxi.com and would correctly fall through to the global default.

Fixes openclaw#61149

* test(minimax): cover dedicated image endpoints

* fix(logging): handle context assembly diagnostics

* Revert "fix(logging): handle context assembly diagnostics"

This reverts commit f51d2f7d67f8193268dd37553ac77e80a0423390.

* test(minimax): isolate image endpoint env

* docs(changelog): credit minimax image fix

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix: avoid changed gate lint self-lock

* fix: stabilize macos npm update smoke

* fix(cli): dedupe onboard auth flags for completion cache

* fix(check): pass lock env to changed lint lanes

* fix(logging): merge duplicate context diagnostic case

* fix: strip invalid thinking replay signatures

Fixes openclaw#45010.
Supersedes openclaw#70054.

Co-authored-by: Chris Staples <[email protected]>
Co-authored-by: Fourier <[email protected]>

* feat(android): expose talk mode

Co-authored-by: alex-latitude <[email protected]>

* fix(diagnostics-otel): honor genai usage semconv opt-in

* perf(memory): avoid duplicate session store reads

* test(node-host): cache native binary fixture lookup

* test(ui): consolidate chat jsdom suites

* fix: remove duplicate diagnostic stability case

* feat: expose generic image background option

* fix(diagnostics-otel): stabilize genai token metric model attr

* fix: clarify voice-call setup diagnostics

* fix: use prompt snapshots for live context diagnostics

* docs: require feasible live verification

* docs(diagnostics-otel): clarify genai semconv exports

* test(plugins): preserve child_process exports in runtime deps mock

* test(diagnostics-otel): cover untrusted trace parent rejection

* refactor: centralize context prompt token resolution

* fix(slack): stop block-based sender rehydration on assistant message edits (openclaw#71700)

* fix(slack): stop block-based sender rehydration on message edits

* docs(changelog): note Slack sender attribution fix

* fix: relax pricing fetch timeout

* test(gateway): tolerate codex image probe diagnostics

* docs(agents): forbid self-thanks in changelog

* docs(minimax): note MINIMAX_API_HOST applies to image generation, baseUrl is ignored

mushuiyu_xydt's commit 0e1ef93 (openclaw#61155) routes MiniMax image
generation requests to the dedicated image endpoint
(api.minimax.io/v1/image_generation), ignoring models.providers.minimax.baseUrl
(which targets the chat/Anthropic-compatible API), and adds
MINIMAX_API_HOST support for the CN api.minimaxi.com endpoint. The
CHANGELOG entry covered it but docs/providers/minimax.md image-generation
section did not. Add a paragraph naming both endpoints and the
MINIMAX_API_HOST override.

* chore(release): publish 2026.4.24 appcast

* test(diagnostics-otel): cover trace self-parent guard

* fix(codex): require authorized inbound claims for bound turns (openclaw#71702)

* fix(codex): require authorized inbound claims for bound turns

* fix(codex): consume unauthorized bound turns

* fix(android): prevent duplicate talk playback

* fix(codex): require approvals for image-understanding turns (openclaw#71703)

* fix(plugins): add doctor registry repair

* fix(plugins): satisfy registry repair lint

* fix(plugins): stabilize registry package paths

* fix(plugins): honor registry migration disable in doctor

* fix(github-copilot): preserve reasoning IDs for Copilot Codex models (openclaw#71684)

* fix(github-copilot): preserve all reasoning IDs and add gpt-5.3-codex support

The existing guard (8fd15ed) only skipped rewriting reasoning item IDs
when encrypted_content was a non-null string. When gpt-5.3-codex is used
via GitHub Copilot, the model falls through to the forward-compat catch-all
with reasoning:false, so encrypted_content is never requested and arrives
as null — bypassing the guard and causing a rewrite. Copilot validates
reasoning item IDs server-side regardless of whether the client includes
encrypted_content, so the rewritten id triggers the 400 error.

Two changes:

1. connection-bound-ids.ts: skip ALL reasoning items unconditionally.
   Reasoning items always reference server-side state bound to their
   original ID; rewriting any of them breaks Copilot's lookup.

2. models.ts + index.ts: extend the forward-compat cloning logic to
   cover gpt-5.3-codex (adds it to the template-target set and to
   CODEX_TEMPLATE_MODEL_IDS so it can also serve as a template source
   for gpt-5.4). Adds gpt-5.3-codex to COPILOT_XHIGH_MODEL_IDS for
   the thinking profile.

Thanks @InvalidPandaa.

* docs(github-copilot): clarify gpt-5.3-codex is a no-op template for itself

https://claude.ai/code/session_01EAFmq4WyKkiUkVAqRXp4Bm

* fix(github-copilot): remove dead reasoning prefix branch in deriveReplacementId

https://claude.ai/code/session_01EAFmq4WyKkiUkVAqRXp4Bm

* fix(github-copilot): align reasoning id replay tests

* test(plugin-sdk): use cjs sidecar for require fast path

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* fix(diagnostics): gate traceparent propagation on trusted metadata

* fix: allow native app metadata reconnects

* fix(google): honor models.providers.google.request.allowPrivateNetwork in TTS

Image generation and media understanding both thread the
sanitized models.providers.google.request config (including
allowPrivateNetwork) into resolveGoogleGenerativeAiHttpRequestConfig.
Speech synthesis omitted that arg, so TTS always saw
allowPrivateNetwork: false regardless of config — silently falling
back to a different speech provider when the configured Google TTS
endpoint resolved to a private/internal IP (proxies, custom backends,
test mocks).

Mirror the image-generation-provider pattern: thread request through
synthesizeGoogleTtsPcm at both call sites (synthesize and
synthesizeTelephony).

Follow-up to openclaw#67216.

* test: cover Google telephony TTS private network opt-in

* fix(talk): honor configured speech locale

* fix(cli-runtime): translate MCP transports for CLI backends

Translate OpenClaw `mcp.servers.*.transport` entries into the downstream Claude/Gemini CLI `type` field before writing bundle MCP config.

Also keeps the plugin-sdk bundled-entry fast-path fixture unambiguously CommonJS on Node 24 after runtime-deps mirroring adds a `type: "module"` boundary.

Co-authored-by: Blockchain-Oracle <[email protected]>

* fix: keep bundled runtime deps in managed stage

* test: guard bundled runtime deps against home npm projects

* fix(plugins): use registry for setup cli fallback

* fix(plugins): satisfy setup cli fallback lint

* fix(acp): guard sessions_spawn runtime targets

* fix: import missing shell env keys

* docs: guard maintainer-owned triage

* fix(minimax): enable portal music and video generation

* fix(google): emit opus voice-note tts

* Support MCP hooks in the Codex harness (openclaw#71707)

* codex harness mcp hook parity

* tighten codex hook parity floor

* prove security-style mcp hook blocking

* bound native hook relay key handling

* clarify permission relay defers to provider

* harden native hook relay approvals

* fix(agents): bound native hook relay JSON work budget

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix(plugins): keep mirrored runtime deps on staged root

* refactor(agents): share bundle MCP config merging

* fix: stabilize native Windows onboarding

* test: harden Parallels smoke timing

* refactor(agents): split bundle MCP CLI adapters

* test(agents): make Gemini MCP smoke local

* test: update bundled setup-entry docker prompt

* fix(secrets): honor plugin install ledger in web search risk

* docs: enforce background mode & direct completion in coding-agent (openclaw#53585)

* docs: clarify ACP model override support

* fix(secrets): honor plugin install ledger for web fetch discovery

* test(i18n): make registry test sparse-safe

* fix(macos): SwiftFormat wrapMultilineStatementBraces on 2 main files (openclaw#71763)

Pre-existing lint errors blocking the macos-swift CI check on every
PR that touches Swift code. Apply the wrapMultilineStatementBraces
rule by moving the opening brace of the multi-line if/else if to its
own line.

- apps/macos/Sources/OpenClaw/ExecAllowlistMatcher.swift:17
- apps/macos/Sources/OpenClaw/ExecApprovals.swift:621

Pure formatting change; no behavioral effect.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

* fix(talk): Talk Mode TTS improvements for CJK languages (openclaw#53553)

* feat(talk): add distinct system sounds for each Talk Mode phase

Play a short system sound on phase transitions to give the user
audible feedback:
- thinking: Tink
- speaking: Pop
- listening (after speech interrupted): Bottle
- listening (after thinking): Submarine

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat(talk): add right Shift key to interrupt Talk Mode speech

Add TalkSpeechInterruptMonitor — a dedicated global key monitor that
listens for right Shift (keyCode 60) to interrupt Talk Mode speech.
Independent of Push-to-Talk, so it works even when PTT is disabled.

Stops only the current response; the next conversation cycle
continues normally via sendAndSpeak's resumeListeningIfNeeded flow.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat(talk): increase silence detection timeout for CJK locales

Korean, Japanese, and Chinese speakers need longer pauses between
phrases. When the app locale is CJK, enforce a minimum 2000ms
silence window (vs the default 1500ms) to avoid premature
transcript submission.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(talk): remove force-unwraps and log CJK silence clamp in reloadConfig

Replace non-idiomatic force-unwraps (cfg.voiceId!, cfg.modelId!) with
safe flatMap unwrapping, and add an info log when CJK locale clamps the
silence timeout so the override is observable in diagnostics.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat(talk): add settings toggle to mute phase-transition sounds

Add a "Play phase-transition sounds" checkbox to Voice Wake settings.
When disabled, Talk Mode phase transitions (Tink/Pop/Bottle/Submarine)
are silent. Defaults to enabled to preserve existing behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat(talk): add toggle for Right Option speech interrupt

Add a "Press Right Option to stop speech" checkbox to Voice Wake
settings. Also change the interrupt key from right Shift to right
Option (keyCode 61) to avoid conflicts with typing.
Defaults to enabled to preserve existing behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(talk): disable Push-to-Talk while Talk Mode is active

Talk Mode and Push-to-Talk both use the right Option key (keyCode 61).
Disable PTT when Talk Mode is enabled to prevent conflicting handlers,
and restore PTT when Talk Mode is disabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(talk): show info when PTT is paused during Talk Mode

Display a footnote under the Push-to-Talk toggle when both PTT and
Talk Mode are enabled, explaining that PTT is paused while Talk Mode
is active and resumes when Talk Mode is turned off.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fixup: SwiftFormat lint on TalkModeController phase sound switch

Resolves macos-swift CI lint failures introduced by Korean
comment formatting in 'feat(talk): add distinct system sounds for each Talk Mode phase'.
- Collapse consecutive spaces between sound name and comment
- Move floating comments above the listening case expression so
  they're at the correct indent level

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

---------

Co-authored-by: hongsw <[email protected]>
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Fabian Williams <[email protected]>

* fix: isolate ACP spawned runs

* fix(model-ref): re-add nvidia/ prefix in normalizeStaticProviderModelId (openclaw#71552) (openclaw#71660)

* fix(model-ref): re-add nvidia/ prefix in normalizeStaticProviderModelId (openclaw#71552)

* fix(test): use nvidia-prefixed model fixture for double-prefix guard

---------

Co-authored-by: Sudhindra Tatti <[email protected]>

* perf(cli): skip plugin load on agents list --json (openclaw#71739) (openclaw#71746)

Reporter measured `agents list --json` at ~7-9s on a fast host (~11s in
container) on 2026.4.23, while peer `--json` commands like
`channels list`, `cron list --all`, and `sessions ... --all-agents`
stay sub-second. Their cold-call dashboard endpoint dropped from 27s to
~2s after a local dist patch — they could even retire the 5-min cache
TTL workaround they had shipped to dodge it.

Root cause: `agents list` inherits `loadPlugins: 'always'` from the
parent `agents` policy in command-catalog, then `agentsListCommand`
calls `buildProviderStatusIndex(cfg)` unconditionally — both paths
trigger the bundled-extension import waterfall (~60+ extension index.js
modules).

`channels list` already uses `loadPlugins: 'never'` and proves the
shape is right; this PR matches that shape with the safer `text-only`
variant so human invocations are unchanged.

Two-line fix per reporter:

1. `src/cli/command-catalog.ts` — opt agents list into `text-only`,
   the same plugin-preload policy bucket that already exists. Plugin
   preload runs for human text output, skips for `--json`.

2. `src/commands/agents.commands.list.ts` — skip
   `buildProviderStatusIndex` (and the per-summary provider
   enrichment loop) when `opts.json`. Provider info is only rendered
   in human text output via `formatSummary`, so dropping it from JSON
   has no observable effect on existing callers that consume `id`,
   `name`, `model`, `bindings`, `isDefault`, `identity*`, `workspace`,
   or `agentDir`. `routes` is config-derived and continues to be set
   in both modes.

Tests:
- new assertion in command-startup-policy.test.ts: `agents list` with
  jsonOutputMode:true now resolves to `loadPlugins: false` (was
  effectively `true` via the parent `agents` 'always' policy).
- existing assertion that human (jsonOutputMode:false) still triggers
  plugin load is preserved verbatim.

6/6 tests pass. Lint clean.

Out of scope:
- `--bindings` flag opt-in for restoring providers in JSON output:
  worth adding later if any consumer needs it; reporter said dashboard
  consumers don't.
- Broader plugin-discovery cache work (openclaw#67040, openclaw#71690) which addresses
  the same family of cold-start cost.

* fix(memory-core): add runtime cron service fallback for dreaming reconciliation (openclaw#71694)

* fix(memory-core): add runtime cron service fallback for dreaming reconciliation

When the cron service is unavailable during gateway_start (e.g., due to
a startup timing race or deferred initialization), the startupCronSource
is captured as null and never refreshed. All subsequent runtime
reconciliation attempts fail with 'cron service unavailable', even when
the cron service is fully operational.

This adds a fallback path in the runtime reconciliation that attempts to
obtain the cron service from the plugin API runtime when the startup
capture was null. This handles the case where the cron service becomes
available after the initial startup event.

Fixes openclaw#67362

* fix(memory-core): hold gateway context for runtime cron resolution

The previous attempt tried to access api.runtime.cron which doesn't exist
on the PluginRuntime type. The cron service is only accessible through
PluginHookGatewayContext.getCron().

This fix stores the gateway context from the gateway_start event and uses
it to retry cron resolution at runtime when the initial capture was null.
This handles the race condition where the cron service isn't available
during gateway_start (250ms deferred init) but is ready later.

Also refreshes the startupCron capture when the runtime retry succeeds,
so subsequent reconciliation calls resolve immediately.

Addresses review feedback on openclaw#71694

* test(config): cover allowConversationAccess in plugin hooks schema validation (openclaw#71621) (openclaw#71679)

* fix(model-ref): re-add nvidia/ prefix in normalizeStaticProviderModelId (openclaw#71552)

* fix(test): use nvidia-prefixed model fixture for double-prefix guard

* test(config): cover allowConversationAccess in plugin hooks schema validation (openclaw#71621)

---------

Co-authored-by: Sudhindra Tatti <[email protected]>

* fix(subagent-announce): defer drain while parent session is busy (openclaw#71706)

When a subagent finishes while its parent main session is still running
(executing tools or awaiting model output), the announce queue would
follow the configured debounce and immediately attempt to deliver the
completion event back into the parent session via callGateway. The
gateway treats the parent as busy and the announce can either get
buffered until the next external user message or surface only as a
delayed echo, breaking the natural sessions_spawn -> sessions_yield
workflow where the parent expects the result to arrive as the next
turn.

This change adds an optional shouldDefer hook on the announce queue
state. The delivery layer wires it to the existing requester session
activity probe (resolveRequesterSessionActivity), so while the parent
session is still active the drain loop sleeps for max(250ms,
debounceMs) and re-checks instead of pushing the announce. As soon as
the parent goes idle, the queue drains normally.

- Plumbs shouldDefer through getAnnounceQueue / enqueueAnnounce.
- Skips drain step in scheduleAnnounceDrain when shouldDefer says the
  target is still busy, with a bounded re-check sleep.
- Updates maybeQueueSubagentAnnounce to pass the activity probe.
- Adds a unit test that holds drain while parent is busy and resumes
  when it goes idle.

No behavior change for callers that do not pass shouldDefer.

* fix(process): skip kill-tree group kill when child wasn't detached (openclaw#71662) (openclaw#71681)

* fix(process): skip kill-tree group kill when child wasn't detached (openclaw#71662)

When the supervisor spawns a child with detached:false (service-managed
runtime under launchd/systemd), the child shares the gateway's process
group. On session abort or SIGKILL, killProcessTree was unconditionally
issuing process.kill(-pid, 'SIGTERM') — which targets the entire process
GROUP (negative pid is POSIX group-kill semantics) and therefore
SIGTERMs the gateway parent along with the child.

Reporter saw this on macOS (LaunchAgent + KeepAlive=true): aborting a
claude-cli/claude-opus-4-7 session caused the gateway to receive
SIGTERM, then auto-restart, dropping all in-flight sessions. Switching
the primary model to a non-cli provider eliminated it because the
non-cli paths don't go through this kill-tree call. Did not occur on
Linux VPS where the gateway runs detached, because there
useDetached === true and the child got its own process group.

Fix:
- killProcessTree now accepts opts.detached?: boolean. When detached:false,
  killProcessTreeUnix skips the `-pid` group-kill and goes straight to
  direct-pid SIGTERM/SIGKILL. Group-kill default (detached:true) is
  preserved so all existing callers behave exactly as before.
- supervisor/adapters/child.ts:286 now threads the spawn-time `useDetached`
  flag into killProcessTree, so the kill-tree path matches the spawn-time
  detachment decision (line 45 of the same file already computes
  useDetached = process.platform !== 'win32' && !isServiceManagedRuntime()).

Tests:
- new: detached:false skips group kill and uses direct pid SIGTERM only.
- new: default behaviour (detached:true) still uses group kill (regression
  guard so the existing test case isn't accidentally weakened).

Existing tests still pass (6/6 in kill-tree.test.ts). Lint clean.

Out of scope: other killProcessTree callers (mcp-stdio-transport,
bash-tools.process, etc.) keep the default group-kill behaviour because
those processes are typically detached from the gateway. Only the
supervisor/adapters/child.ts path threads `detached` through, since it's
the path that knows whether the child was actually spawned detached.

* fixup(process): also gate kill-tree group-kill on the no-detach spawn fallback (openclaw#71662)

Greptile review on the original PR caught a P1 gap: when
spawnWithFallback's initial detached spawn fails and it retries with the
no-detach fallback (label: "no-detach", options.detached: false), the
child runs detached:false but my variable useDetached was still true.
The kill closure then passed `detached: useDetached` = true to
killProcessTree, which still group-killed the gateway — same bug, just
on the fallback path.

Compute the actual detachment as
`useDetached && !spawned.usedFallback` after spawn returns, and pass
that through. This closes the gap: the kill path now correctly skips
group-kill in BOTH:
1. Service-managed runtime (useDetached=false from the start, original case)
2. Detached-spawn fallback to no-detach (useDetached=true at intent
   time but spawned.usedFallback=true)

Tests:
- existing 'uses process-tree kill for default SIGKILL' updated to
  assert the new {detached} option is forwarded.
- new: passes detached:false to killProcessTree when spawn fell back.
- new: passes detached:false in service-managed mode (regression guard
  for the original fix).

11/11 tests pass in child.test.ts. 6/6 in kill-tree.test.ts.

* Bound native hook permission fingerprints (openclaw#71758)

* fix: bound native hook permission fingerprints

* fix: address native hook fingerprint review

* test: isolate native jiti runtime assertions

* fix: allow route bindings to override DM session scope (openclaw#71750)

Co-authored-by: 따온이네 맥북프로 <[email protected]>

* fix(memory-wiki): skip bridge pruning when memory-core is not loaded (openclaw#71764)

When memory-core plugin is not registered (e.g. CLI context),
listActiveMemoryPublicArtifacts returns an empty array. The previous code
would then call pruneImportedSourceEntries with an empty activeKeys Set,
which removes ALL bridge-imported entries.

Now checks getMemoryCapabilityRegistration() instead of relying on artifact
count as a proxy, correctly distinguishing between 'plugin not loaded' and
'plugin loaded with no artifacts'.

Fixes openclaw#68373

* fix(active-memory): enforce timeoutMs as hard deadline via Promise.race (openclaw#71687)

Wrap runRecallSubagent() with Promise.race so maybeResolveActiveRecall
returns a timeout result at the configured timeoutMs even when the
embedded run has not cooperatively checked the abort signal. Late
subagent rejections are caught silently to prevent unhandled promise
errors.

Fixes openclaw#71629

* fix(memory-core): skip stale dreaming recall sources (openclaw#71695)

* fix(memory-core): skip stale dreaming recall sources

* fix(memory-core): parallelize live recall filtering

* test: extend Windows Parallels agent turn timeout

* fix(plugins): anchor runtime dependency installs

* fix(plugins): resolve bundled channel doctor metadata from package root

* fix: preserve disabled plugin registry migration

* fix: resolve oneshot ACP identities before close

* Add startup progress indicators (openclaw#71720)

* Add startup progress indicators

* Narrow startup progress scope

* Revert startup spinner delay to immediate feedback

* Improve install.sh progress feedback for quiet steps

* Show progress for installer download phases

* Add TUI context mode selector (openclaw#71760)

Co-authored-by: kevinlin-openai <[email protected]>
Co-authored-by: Codex <[email protected]>

* docs(msteams): add Teams CLI setup instructions (openclaw#71747)

* docs(msteams): add Teams CLI setup instructions

Replace manual Azure Bot setup as primary path with
@microsoft/teams.cli workflow. Manual steps collapsed
into <details> blocks for users who can't use the CLI.

* docs(msteams): fix devtunnel instructions to use persistent tunnels

Use devtunnel create + host for stable URLs across sessions
instead of throwaway tunnels that change each time.

* docs(msteams): address PR feedback

- Remove "Abandon all hope" quote (showed as net-addition in diff)
- Add preview disclaimer for @microsoft/teams.cli
- Add security note for --allow-anonymous devtunnel flag
- Clarify where to find teamsAppId from create output
- Link to official devtunnel getting started guide

* docs(msteams): fix oxfmt formatting

* docs(msteams): clarify install step references create prompt

* docs(msteams): drop --env flag, use terminal output instead

Avoids writing secrets to a file that could be accidentally committed.

* docs(msteams): remove redundant H1, match other channel docs

* perf(plugin-sdk): add narrow outbound send deps entry

* test(discord): mock message process dependencies narrowly

* test(infra): import diagnostic duplicate from source url

* feat(tts): add Inworld speech provider (openclaw#55972)

Adds the bundled Inworld speech provider with docs, config surface, SSRF-guarded fetches, directive overrides, native voice-note/telephony output coverage, and live `.profile` verification.

Co-authored-by: cshape <[email protected]>

* fix: update Ollama web search endpoint

* fix: keep agents list JSON config-only

* fix: lazy-load Microsoft Edge TTS runtime

* docs: update changelog for Discord triage fixes

* fix(cli): avoid plugin preload for agent bindings

* perf(ui): split chat role normalization imports

* test(i18n): load registry locale fixtures concurrently

* fix(plugins): force dependency installs local

* test(matrix): cover destructive E2EE backup recovery flows (openclaw#71311)

Merged via squash.

Prepared head SHA: fd5fc06
Co-authored-by: gumadeiras <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras

* chore: update workspace dependencies

* test(ui): split tool card render coverage

* fix(onboarding): scope video-only provider auth choices

* docs(plugins): clarify local dependency installs

* fix(gateway): keep diagnostic probes non-mutating

* fix(cli): trim plugin preloads for setup-safe commands

* test(ui): split chat avatar render coverage

* test: retry cli backend live cleanup

* test: harden QA cleanup and update preflight

* fix(image): resolve configured image models

* fix(gateway): decouple backend RPC from CLI pairing

* fix(openai): extend Azure image timeout

Closes openclaw#71705

* fix: stabilize remote skill node probes

* feat(tts): add BytePlus Seed Speech provider

Add Volcengine/BytePlus Seed Speech as a bundled TTS provider with current API-key auth, legacy AppID/token fallback, native Ogg/Opus voice-note output, and MP3 audio-file output.

Co-authored-by: Peter Steinberger <[email protected]>

* ci: split auto-reply shard timing

* fix(agents): keep queued announces session-only without route

* test: stabilize cron mcp cleanup docker smoke

* [codex] Consolidate RuntimePlan and Harness V2 package (openclaw#71722)

* refactor: centralize runtime plan policy surface

* refactor: route embedded attempts through runtime plan

* feat: add agent harness v2 lifecycle adapter

* docs: document agent harness runtime plan

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* fix(image): resolve provider-prefixed configured models

Closes openclaw#33185

* build: bump bundled acpx to 0.6.1

* fix: keep local embedding batches from flooding providers

* fix: ignore compaction checkpoints in session usage

* docs: update changelog for memory fixes

* fix(plugins): normalize registry migration env flags

* fix(qqbot): schedule reminders through cron gateway (openclaw#70937)

* fix(qqbot): schedule reminders through cron gateway

* fix(qqbot): update reminder cron instruction

* fix(qqbot): schedule reminders directly (openclaw#70937) (thanks @GaosCode)

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix(channels): refresh plugin registry after on-demand installs

* docs(gateway): clarify backend RPC pairing

* test(exec): cover control ui approval turn-source resolution

* fix(onboarding): refresh plugin registry after plugin installs

* fix: gate acp spawn affordances

* fix(feishu): accept v2 card action callbacks

* docs: split OpenTelemetry export into its own page under gateway

Logging.md had grown to 487 lines with ~300 lines dedicated to
OpenTelemetry export — wire protocol, full metric/span catalog, env
vars, captureContent shape, sampling, the diagnostic event catalog,
and protocol notes — leaving the genuine logging overview buried
behind exporter reference material.

Move the OTEL surface to a dedicated page and slim logging.md to a
focused logs overview:

- Add docs/gateway/opentelemetry.md (OpenTelemetry export). Same
  content reorganized: how it fits together, quick start, signals,
  configuration reference + env vars table, privacy/captureContent,
  sampling/flushing, full metric and span catalog, diagnostic event
  catalog, no-exporter mode, diagnostics flags pointer, disable.
- docs/logging.md: drop the OTEL section in favor of a short
  'Diagnostics and OpenTelemetry' summary that cross-links the new
  page and the diagnostics-flags page. Drops 273 lines net. Also
  drops the redundant body H1, retitles to 'Logging' (was 'Logging
  overview' which mismatched sidebar usage), and refreshes the
  Related list.
- docs/docs.json: insert gateway/opentelemetry into the
  'Health and diagnostics' sidebar group, reorder pages so the user-
  facing health/run pages come before exporter/internals pages, and
  put logging next to opentelemetry where readers naturally
  associate them.
- docs/gateway/diagnostics.md, docs/gateway/logging.md,
  docs/gateway/configuration-reference.md: cross-link the new page
  and sentence-case stale Title-Cased Related entries on
  diagnostics.md.

* chore(pr-triage): route low-signal cleanup to ClawHub

* Manage the Codex app-server binary in OpenClaw (openclaw#71808)

* Manage Codex app-server binary

* Use plugin deps for Codex app-server binary

* Stabilize media model registry test

* Exclude checkpoint transcripts from memory ingestion

* fix: hide runtime context from submitted prompts

* fix(feishu): separate synthetic ids from reply targets

* fix: prefer native codex app-server controls

* fix(ci): stabilize media and gateway tests

* refactor: consolidate plugin install index store

* refactor: remove plugin install config fallback

* docs: describe plugin install index store

* fix: remove unused plugin index import

* refactor: split plugin index record reader

* fix: preserve plugin index records in update flows

* fix: keep plugin audit check ids stable

* fix: strip plugin install records before config validation

* fix: type plugin install config strip test

* fix: guide config users to plugin commands

* docs: update plugin index changelog entries

* fix: model plugin index records in cli tests

* test: expect plugin install index records on refresh

* docs: fix plugin reference indentation

* fix: migrate shipped plugin install config records

* fix: block config writes when plugin install migration fails

* fix: preserve plugin install records without manifests

* fix: preserve install records during registry refresh

* fix: rank plugin duplicates with pending install records

* fix: prevent duplicate channel plugin tools

* fix(bonjour): bound stuck advertiser restarts

* fix: roll back plugin index on config write conflicts

* fix(triage): classify low-signal prs

* feat(plugins): add before agent finalize hook (openclaw#71765)

* fix(browser): preserve tabs across target swaps

* refactor(control-ui): keep quick settings personal card balanced (openclaw#71585)

* fix: roll back plugin index for update channel writes

* fix(ci): repair plugin registry test lanes

* fix: skip checkpoint transcripts in memory dreaming

* test: add Droid ACP bind Docker lane

* fix: seed gateway control UI origins from runtime bind

* fix(ci): hide configured workspace setup candidates

* fix: defer onboarding plugin install records

* test: fix doctor symlink cleanup

* fix(model): preserve LM Studio '@' quant suffixes in model name resolution

stripModelProfileSuffix() in providers.ts naively truncated model names at
the first '@', discarding quant variants like @iq3_xxs, @iq4_xs, @q4_k_xl
that LM Studio uses to distinguish quantization levels.

This caused two user-facing bugs (fixes openclaw#71474):
1. /model lmstudio/qwen3.6-27b@iq3_xxs → 'model not allowed: lmstudio/qwen3.6-27b'
2. API requests sent truncated model name → LM Studio picked a random quant

Changes:
- Replace the naive indexOf('@') strip in providers.ts with
  splitTrailingAuthProfile() which already handles quant suffixes
- Extend the quant-suffix regex (q\d+...) to also match importance-
  quantization tags (iq3_xxs, iq4_xs, ...) via i?q\d+ pattern
- Add tests for @iq* quant suffixes and auth-profile-after-iq combos

* fix: preserve LM Studio quant model refs (openclaw#71486)

* feat(tts): add Azure Speech provider

Co-authored-by: Leon Chui <[email protected]>

* fix(triage): extract barnacle workflow

* fix(status): clarify tailscale exposure state

* test: narrow live Docker ACP changed gate

* Avoid duplicate generated media attachments

Generated media can be produced in intermediate tool results before the assistant chooses which assets to share in its final reply. This change keeps those intermediate files from being appended a second time when the final reply already names the assets to deliver, and tightens the media directive parsing around unsafe or ambiguous URLs.

* docs: clarify Crestodian rescue audit metadata

* test: narrow live Docker package script changes

* fix: commit pending plugin install records in config flows

* docs: note GitHub search boolean fallback

* Expose cron jobId in plugin hook context

* test: keep packaged provider setup discoverable

* fix(cron): preserve current delivery target context

* test(cron): cover delivery context edge cases

* fix: wait for acp backend before startup reconcile

* fix: bootstrap gateway env proxy dispatcher

Co-authored-by: mjamiv <[email protected]>

* chore(tokenjuice): bump bundled runtime to 0.6.3

* fix(acpx): isolate Codex ACP config from desktop hooks

Isolate Codex ACP launches with an OpenClaw-managed CODEX_HOME/config wrapper so global Codex desktop notify hooks do not leak into acpx sessions.\n\nValidation:\n- OPENCLAW_LOCAL_CHECK=0 OPENCLAW_VITEST_MAX_WORKERS=1 pnpm check:changed\n- pnpm test extensions/acpx/src/codex-auth-bridge.test.ts\n\nThanks @91wan.

* Respect retryable Codex app-server errors

Codex app-server sends retryable stream error notifications while a turn is still recovering. OpenClaw now ignores retryable app-server errors and preserves nested terminal error messages instead of replacing them with a generic fallback.

* fix(ui): hide chat skeleton during reload

* fix: keep system events from extending session resets (openclaw#71845)

* feat(fal): support Seedance reference video

Adds fal Seedance 2.0 reference-to-video support with model-aware reference input limits.

* refactor: scope plugin capabilities to manifests

* fix: preserve bundle format in plugin index

* feat(diagnostics-otel): add exporter health diagnostics

Adds diagnostics-otel exporter health events and signal-specific endpoint wiring, with docs and config schema coverage.

* fix: persist pending onboarding plugin installs

* fix: bound configured acp binding readiness

* fix(status): support lancedb memory runtime probes

* docs(security): add 2026-09-13 full security audit report

10-dimension audit (credentials/SCA/containers/authnz/injection/network/config/sensitive-data/supply-chain/compliance) with scanner evidence (gitleaks, pnpm audit, trivy) and confirmed findings.

Co-Authored-By: Claude Code <[email protected]>

* chore(sca): fix core runtime dependency chain (RIC-760)

Migrate pnpm.overrides from package.json to pnpm-workspace.yaml (pnpm v10
no longer reads the package.json pnpm field) and bump vulnerable prod deps:

- tar 7.5.13 -> 7.5.22 (GHSA-23hp-3jrh-7fpw critical)
- undici 8.1.0 -> 8.10.2, undici 7.25.0 -> 7.29.1
- ws 8.20.0 -> 8.21.3 (version-scoped ws@8)
- hono 4.12.14 -> 4.13.7
- linkify-it 5.0.0 -> 5.0.2
- fast-uri 3.1.0 -> 3.1.7
- basic-ftp 5.3.0 -> 5.3.1
- brace-expansion 5.0.5 -> 5.0.9
- form-data 2.5.4 -> 2.5.6
- ip-address 10.1.0 -> 10.7.0
- fast-xml-builder 1.1.5 -> 1.3.1

Reduces prod audit-gate findings from 67 to 25; remaining findings are
extension-chain (RIC-761) and @mariozechner/pi-coding-agent (no fixed
release; package renamed to @earendil-works).

Co-Authored-By: Claude Code <[email protected]>

* chore(sca): fix extension chain dependency vulnerabilities (RIC-761)

- whatsapp: baileys 7.0.0-rc.9 -> 7.0.0-rc12 (GHSA-qvv5-jq5g-4cgg); remove
  now-redundant encrypted-stream finish hotfix patch (upstreamed in rc12)
- feishu: @larksuiteoapi/node-sdk ^1.61.1 -> ^1.73.3 (axios ^1.16.0)
- diagnostics-otel: OTel coordinated set 0.215.0/2.7.0 -> 0.220.0/2.9.0
  (sdk-node/exporter-prometheus <0.217.0, propagator-jaeger <2.9.0);
  adapt BatchLogRecordProcessor to single-options API
- media-understanding-core: sharp ^0.34.5 -> ^0.35.4; failOnError ->
  failOn option rename
- document-extract: pdfjs-dist ^5.6.205 -> ^6.2.108
- root overrides: axios 1.15.0 -> 1.18.0, protobufjs 7.5.5 -> 7.6.1,
  @grpc/grpc-js -> 1.14.4

Extension-chain prod audit clean (25 remaining advisories are core-runtime
scope, tracked in RIC-760).

Co-Authored-By: Claude Code <[email protected]>

---------

Co-authored-by: Chris Zhang <[email protected]>
Co-authored-by: Chris Zhang <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Poo-Squirry <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Troy Hitch <[email protected]>
Co-authored-by: 91wan <[email protected]>
Co-authored-by: Quratulain-bilal <[email protected]>
Co-authored-by: mushuiyu_xydt <[email protected]>
Co-authored-by: Chris Staples <[email protected]>
Co-authored-by: Fourier <[email protected]>
Co-authored-by: alex-latitude <[email protected]>
Co-authored-by: InvalidPanda ツ <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Rohan Shiralkar <[email protected]>
Co-authored-by: Blockchain Oracle <[email protected]>
Co-authored-by: Blockchain-Oracle <[email protected]>
Co-authored-by: Tars <[email protected]>
Co-authored-by: pashpashpash <[email protected]>
Co-authored-by: 周辉 <[email protected]>
Co-authored-by: Fabian Williams <[email protected]>
Co-authored-by: Seungwoo hong <[email protected]>
Co-authored-by: hongsw <[email protected]>
Co-authored-by: Fabian Williams <[email protected]>
Co-authored-by: sudhindrat <[email protected]>
Co-authored-by: Sudhindra Tatti <[email protected]>
Co-authored-by: hcl <[email protected]>
Co-authored-by: Mara 🌿 <[email protected]>
Co-authored-by: Evgeniy <[email protected]>
Co-authored-by: 따온이네 맥북프로 <[email protected]>
Co-authored-by: Yao <[email protected]>
Co-authored-by: Ted Li <[email protected]>
Co-authored-by: Shakker <[email protected]>
Co-authored-by: Sebastien Tardif <[email protected]>
Co-authored-by: kevinlin-openai <[email protected]>
Co-authored-by: kevinlin-openai <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Aamir Jawaid <[email protected]>
Co-authored-by: Cale Shapera <[email protected]>
Co-authored-by: cshape <[email protected]>
Co-authored-by: Gustavo Madeira Santana <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Co-authored-by: RoomWithOutRoof <[email protected]>
Co-authored-by: zhang-guiping <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Rui Xu <[email protected]>
Co-authored-by: EVA <[email protected]>
Co-authored-by: Eva <[email protected]>
Co-authored-by: MrBrain <[email protected]>
Co-authored-by: pash-openai <[email protected]>
Co-authored-by: Val Alexander <[email protected]>
Co-authored-by: Bartok9 <[email protected]>
Co-authored-by: Leon Chui <[email protected]>
Co-authored-by: Scott Glover <[email protected]>
Co-authored-by: mjamiv <[email protected]>
Co-authored-by: Shivanker Goel <[email protected]>
Co-authored-by: Ant Rich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants