Skip to content

Commit c339ff0

Browse files
authored
Merge branch 'main' into codex/pr-65802-feishu-ws-proxy
2 parents 77b3f4b + 23c5808 commit c339ff0

47 files changed

Lines changed: 2253 additions & 72 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,20 @@ jobs:
945945
--runtime-pair pi,codex \
946946
--output-dir ".artifacts/qa-e2e/runtime-parity-standard"
947947
948+
- name: Run soak runtime parity tier
949+
id: runtime_parity_soak_lane
950+
if: ${{ always() && needs.resolve_target.outputs.run_release_soak == 'true' && steps.runtime_parity_lane.outcome != 'skipped' && steps.runtime_parity_lane.outcome != 'cancelled' }}
951+
run: |
952+
set -euo pipefail
953+
pnpm openclaw qa suite \
954+
--provider-mode mock-openai \
955+
--runtime-parity-tier soak \
956+
--concurrency "${QA_PARITY_CONCURRENCY}" \
957+
--model "${OPENCLAW_CI_OPENAI_MODEL}" \
958+
--alt-model "openai/gpt-5.5-alt" \
959+
--runtime-pair pi,codex \
960+
--output-dir ".artifacts/qa-e2e/runtime-parity-soak"
961+
948962
- name: Generate runtime parity report
949963
if: always()
950964
run: |
@@ -965,6 +979,21 @@ jobs:
965979
--summary .artifacts/qa-e2e/runtime-parity-standard/qa-suite-summary.json \
966980
--output-dir .artifacts/qa-e2e/runtime-parity-standard-report
967981
982+
- name: Generate soak runtime parity report
983+
if: ${{ always() && needs.resolve_target.outputs.run_release_soak == 'true' && steps.runtime_parity_soak_lane.outcome != 'skipped' && steps.runtime_parity_soak_lane.outcome != 'cancelled' }}
984+
run: |
985+
set -euo pipefail
986+
summary=".artifacts/qa-e2e/runtime-parity-soak/qa-suite-summary.json"
987+
if [[ ! -f "$summary" ]]; then
988+
echo "No soak runtime parity summary was produced."
989+
exit 0
990+
fi
991+
pnpm openclaw qa parity-report \
992+
--repo-root . \
993+
--runtime-axis \
994+
--summary "$summary" \
995+
--output-dir .artifacts/qa-e2e/runtime-parity-soak-report
996+
968997
- name: Upload runtime parity artifacts
969998
if: always()
970999
uses: actions/upload-artifact@v7

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ Docs: https://docs.openclaw.ai
1010
- Dependencies: refresh provider, plugin, UI, and tooling packages, update `protobufjs` to 8.4.0 to clear the current npm advisory, and carry the Claude ACP completion patch forward to `@agentclientprotocol/claude-agent-acp` 0.36.1.
1111
- Agents/tools: remove the old sender-owner tool gating path so configured tools stay visible for trusted sessions while command and channel-action auth still carry real sender identity.
1212
- QA-Lab: add curated mock JSONL replay fixtures and first-drift reporting for runtime-parity audits. (#80323, refs #80176) Thanks @100yenadmin.
13+
- QA-Lab: include the optional 100-turn runtime parity soak in release-soak artifacts so long-run Codex/Pi transcript drift stays visible outside the default gate. (#80395) Thanks @100yenadmin.
1314
- QA-Lab: add a personal-agent failure recovery scenario that checks honest partial status, retry boundaries, and local recovery artifacts. (#83872) Thanks @iFiras-Max1.
15+
- QA-Lab: add GitHub issue evidence metadata to audited runtime scenarios so parity and tool-fixture coverage links back to the source threads.
16+
- QA-Lab: include an opt-in `update.run` package self-upgrade sentinel for destructive latest-package recovery checks.
1417
- Tests/perf: isolate doctor core health check unit coverage from real skills/workspace discovery so `doctor-core-checks` no longer dominates unit perf while keeping one real skills-readiness smoke. (#84493) Thanks @frankekn.
1518

1619
### Fixes
1720

21+
- Infra/json: retry transient `File changed during read` races while loading JSON state so config and state reads recover instead of failing the turn. (#84285)
22+
- Gateway/sessions: preserve compatible session auth profile overrides when switching models within the same provider, including provider-auth aliases. Fixes #81837. (#81886) Thanks @TurboTheTurtle.
23+
- Gateway/status: surface inbound delivery telemetry counters and transport-liveness warnings in `openclaw status --all`. Fixes #49577. (#72724)
24+
- Docker: prune package-excluded plugin source workspaces and dependency closures so runtime images do not keep packages for plugins that were not opted in.
1825
- Providers/Ollama: treat Docker/OrbStack host aliases as local Ollama endpoints so `ollama-local` marker auth works when OpenClaw runs inside a VM/container and Ollama runs on the host. Fixes #84875.
1926
- QA-Lab: keep explicitly searchable/deferred OpenClaw dynamic tool rows report-only by default so tool-coverage gates do not treat mock discovery gaps as hard product failures. (#80319) Thanks @100yenadmin.
2027
- Feishu: keep WebSocket receive connections direct by default instead of inheriting ambient proxy env, and document `OPENCLAW_FEISHU_WS_USE_PROXY=1` for HTTP(S)-proxy-only deployments that need the previous behavior. Fixes #65799.
@@ -42,6 +49,7 @@ Docs: https://docs.openclaw.ai
4249
- CLI/perf: keep `secrets --help` and `nodes --help` on the precomputed help path so parent help avoids loading action-heavy command runtime modules. (#84818) Thanks @frankekn.
4350
- CLI/perf: serve `doctor`, `gateway`, `models`, and `plugins` parent help from startup metadata so common subcommand help avoids full CLI program construction. (#84786) Thanks @frankekn.
4451
- Codex/Lossless: keep context-engine history on the canonical run session when Telegram DMs use per-peer runtime policy keys. Fixes #84936. (#84954) Thanks @neeravmakwana.
52+
- Auth/OAuth: skip the refresh adapter when a stored OAuth credential has no refresh token so agent turns fail fast on missing-key instead of waiting on the 120s refresh timeout. Thanks @romneyda.
4553

4654
## 2026.5.20
4755

‎Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ ENV OPENCLAW_PREFER_PNPM=1
117117
RUN pnpm_config_verify_deps_before_run=false pnpm ui:build
118118
RUN pnpm_config_verify_deps_before_run=false pnpm qa:lab:build
119119

120-
# Prune dev dependencies and strip build-only metadata before copying
121-
# runtime assets into the final image.
120+
# Prune dev dependencies, omitted plugin runtime packages, and build-only
121+
# metadata before copying runtime assets into the final image.
122122
FROM build AS runtime-assets
123123
ARG OPENCLAW_EXTENSIONS
124124
ARG OPENCLAW_BUNDLED_PLUGIN_DIR
@@ -128,8 +128,8 @@ RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/sto
128128
--config.supportedArchitectures.os=linux \
129129
--config.supportedArchitectures.cpu="$(node -p 'process.arch')" \
130130
--config.supportedArchitectures.libc=glibc && \
131+
OPENCLAW_EXTENSIONS="$OPENCLAW_EXTENSIONS" OPENCLAW_BUNDLED_PLUGIN_DIR="$OPENCLAW_BUNDLED_PLUGIN_DIR" node scripts/prune-docker-plugin-dist.mjs && \
131132
node scripts/postinstall-bundled-plugins.mjs && \
132-
OPENCLAW_EXTENSIONS="$OPENCLAW_EXTENSIONS" node scripts/prune-docker-plugin-dist.mjs && \
133133
find dist -type f \( -name '*.d.ts' -o -name '*.d.mts' -o -name '*.d.cts' -o -name '*.map' \) -delete && \
134134
node scripts/check-package-dist-imports.mjs /app
135135

‎docs/gateway/opentelemetry.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ When any subkey is enabled, model and tool spans get bounded, redacted
189189
- `openclaw.webhook.error` (counter, attrs: `openclaw.channel`, `openclaw.webhook`)
190190
- `openclaw.webhook.duration_ms` (histogram, attrs: `openclaw.channel`, `openclaw.webhook`)
191191
- `openclaw.message.queued` (counter, attrs: `openclaw.channel`, `openclaw.source`)
192+
- `openclaw.message.received` (counter, attrs: `openclaw.channel`, `openclaw.source`)
193+
- `openclaw.message.dispatch.started` (counter, attrs: `openclaw.channel`, `openclaw.source`)
194+
- `openclaw.message.dispatch.completed` (counter, attrs: `openclaw.channel`, `openclaw.outcome`, `openclaw.reason`, `openclaw.source`)
195+
- `openclaw.message.dispatch.duration_ms` (histogram, attrs: `openclaw.channel`, `openclaw.outcome`, `openclaw.reason`, `openclaw.source`)
192196
- `openclaw.message.processed` (counter, attrs: `openclaw.channel`, `openclaw.outcome`)
193197
- `openclaw.message.duration_ms` (histogram, attrs: `openclaw.channel`, `openclaw.outcome`)
194198
- `openclaw.message.delivery.started` (counter, attrs: `openclaw.channel`, `openclaw.delivery.kind`)
@@ -209,6 +213,7 @@ When any subkey is enabled, model and tool spans get bounded, redacted
209213
- `openclaw.session.state` (counter, attrs: `openclaw.state`, `openclaw.reason`)
210214
- `openclaw.session.stuck` (counter, attrs: `openclaw.state`; emitted only for stale session bookkeeping with no active work)
211215
- `openclaw.session.stuck_age_ms` (histogram, attrs: `openclaw.state`; emitted only for stale session bookkeeping with no active work)
216+
- `openclaw.session.turn.created` (counter, attrs: `openclaw.agent`, `openclaw.channel`, `openclaw.trigger`)
212217
- `openclaw.session.recovery.requested` (counter, attrs: `openclaw.state`, `openclaw.action`, `openclaw.active_work_kind`, `openclaw.reason`)
213218
- `openclaw.session.recovery.completed` (counter, attrs: `openclaw.state`, `openclaw.action`, `openclaw.status`, `openclaw.active_work_kind`, `openclaw.reason`)
214219
- `openclaw.session.recovery.age_ms` (histogram, attrs: same as the matching recovery counter)

‎docs/gateway/prometheus.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ For traces, logs, OTLP push, and OpenTelemetry GenAI semantic attributes, see [O
100100
| `openclaw_tool_execution_duration_seconds` | histogram | `error_category`, `outcome`, `params_kind`, `tool` |
101101
| `openclaw_harness_run_total` | counter | `channel`, `error_category`, `harness`, `model`, `outcome`, `phase`, `plugin`, `provider` |
102102
| `openclaw_harness_run_duration_seconds` | histogram | `channel`, `error_category`, `harness`, `model`, `outcome`, `phase`, `plugin`, `provider` |
103+
| `openclaw_message_received_total` | counter | `channel`, `source` |
104+
| `openclaw_message_dispatch_started_total` | counter | `channel`, `source` |
105+
| `openclaw_message_dispatch_completed_total` | counter | `channel`, `outcome`, `reason`, `source` |
106+
| `openclaw_message_dispatch_duration_seconds` | histogram | `channel`, `outcome`, `reason`, `source` |
103107
| `openclaw_message_processed_total` | counter | `channel`, `outcome`, `reason` |
104108
| `openclaw_message_processed_duration_seconds` | histogram | `channel`, `outcome`, `reason` |
105109
| `openclaw_message_delivery_started_total` | counter | `channel`, `delivery_kind` |
@@ -112,6 +116,7 @@ For traces, logs, OTLP push, and OpenTelemetry GenAI semantic attributes, see [O
112116
| `openclaw_queue_lane_wait_seconds` | histogram | `lane` |
113117
| `openclaw_session_state_total` | counter | `reason`, `state` |
114118
| `openclaw_session_queue_depth` | gauge | `state` |
119+
| `openclaw_session_turn_created_total` | counter | `agent`, `channel`, `trigger` |
115120
| `openclaw_session_recovery_total` | counter | `action`, `active_work_kind`, `state`, `status` |
116121
| `openclaw_session_recovery_age_seconds` | histogram | `action`, `active_work_kind`, `state`, `status` |
117122
| `openclaw_memory_bytes` | gauge | `kind` |

‎extensions/diagnostics-otel/src/service.test.ts‎

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,41 @@ describe("diagnostics-otel service", () => {
415415
source: "telegram",
416416
queueDepth: 2,
417417
});
418+
emitDiagnosticEvent({
419+
type: "message.received",
420+
channel: "telegram",
421+
source: "webhook",
422+
});
423+
emitDiagnosticEvent({
424+
type: "message.dispatch.started",
425+
channel: "telegram",
426+
source: "webhook",
427+
});
428+
emitDiagnosticEvent({
429+
type: "message.dispatch.completed",
430+
channel: "telegram",
431+
source: "webhook",
432+
durationMs: 25,
433+
outcome: "completed",
434+
});
435+
emitDiagnosticEvent({
436+
type: "message.received",
437+
channel: "telegram/custom",
438+
source: "webhook with secret sk-test",
439+
});
440+
emitDiagnosticEvent({
441+
type: "message.dispatch.started",
442+
channel: "telegram/custom",
443+
source: "webhook with secret sk-test",
444+
});
445+
emitDiagnosticEvent({
446+
type: "message.dispatch.completed",
447+
channel: "telegram/custom",
448+
source: "webhook with secret sk-test",
449+
durationMs: 30,
450+
outcome: "completed",
451+
reason: "progress draft / message tool 123",
452+
});
418453
emitDiagnosticEvent({
419454
type: "message.processed",
420455
channel: "telegram",
@@ -468,6 +503,66 @@ describe("diagnostics-otel service", () => {
468503
"openclaw.channel": "telegram",
469504
"openclaw.outcome": "completed",
470505
});
506+
expect(telemetryState.counters.get("openclaw.message.received")?.add).toHaveBeenCalledWith(1, {
507+
"openclaw.channel": "telegram",
508+
"openclaw.source": "webhook",
509+
});
510+
expect(telemetryState.counters.get("openclaw.message.received")?.add).toHaveBeenCalledWith(1, {
511+
"openclaw.channel": "unknown",
512+
"openclaw.source": "unknown",
513+
});
514+
expect(
515+
telemetryState.counters.get("openclaw.message.dispatch.started")?.add,
516+
).toHaveBeenCalledWith(1, {
517+
"openclaw.channel": "telegram",
518+
"openclaw.source": "webhook",
519+
});
520+
expect(
521+
telemetryState.counters.get("openclaw.message.dispatch.started")?.add,
522+
).toHaveBeenCalledWith(1, {
523+
"openclaw.channel": "unknown",
524+
"openclaw.source": "unknown",
525+
});
526+
expect(
527+
telemetryState.counters.get("openclaw.message.dispatch.completed")?.add,
528+
).toHaveBeenCalledWith(
529+
1,
530+
expect.objectContaining({
531+
"openclaw.channel": "telegram",
532+
"openclaw.outcome": "completed",
533+
"openclaw.source": "webhook",
534+
}),
535+
);
536+
expect(
537+
telemetryState.counters.get("openclaw.message.dispatch.completed")?.add,
538+
).toHaveBeenCalledWith(
539+
1,
540+
expect.objectContaining({
541+
"openclaw.channel": "unknown",
542+
"openclaw.reason": "none",
543+
"openclaw.source": "unknown",
544+
}),
545+
);
546+
expect(
547+
telemetryState.histograms.get("openclaw.message.dispatch.duration_ms")?.record,
548+
).toHaveBeenCalledWith(
549+
25,
550+
expect.objectContaining({
551+
"openclaw.channel": "telegram",
552+
"openclaw.outcome": "completed",
553+
"openclaw.source": "webhook",
554+
}),
555+
);
556+
expect(
557+
telemetryState.histograms.get("openclaw.message.dispatch.duration_ms")?.record,
558+
).toHaveBeenCalledWith(
559+
30,
560+
expect.objectContaining({
561+
"openclaw.channel": "unknown",
562+
"openclaw.reason": "none",
563+
"openclaw.source": "unknown",
564+
}),
565+
);
471566
expect(
472567
telemetryState.histograms.get("openclaw.message.duration_ms")?.record,
473568
).toHaveBeenCalledWith(55, {
@@ -493,6 +588,22 @@ describe("diagnostics-otel service", () => {
493588
"openclaw.attempt": 2,
494589
});
495590

591+
emitDiagnosticEvent({
592+
type: "session.turn.created",
593+
runId: "run-1",
594+
agentId: "agent.default",
595+
channel: "telegram",
596+
trigger: "user",
597+
});
598+
expect(telemetryState.counters.get("openclaw.session.turn.created")?.add).toHaveBeenCalledWith(
599+
1,
600+
{
601+
"openclaw.agent": "agent.default",
602+
"openclaw.channel": "telegram",
603+
"openclaw.trigger": "user",
604+
},
605+
);
606+
496607
const spanNames = telemetryState.tracer.startSpan.mock.calls.map((call) => call[0]);
497608
expect(spanNames).toContain("openclaw.webhook.processed");
498609
expect(spanNames).toContain("openclaw.message.processed");

0 commit comments

Comments
 (0)