Commit Graph

46839 Commits

Author SHA1 Message Date
Ayaan Zaidi
1ff833d66d ci(mantis): fit telegram proof gifs in comments 2026-05-11 19:59:54 +05:30
YBoy
ff8bc72c81 fix: consolidate gateway doctor service notes (#78688)
Fixes #80287.

Co-authored-by: YB0y <brianandez6@gmail.com>
2026-05-11 15:29:14 +01:00
Shakker
f9c3d683cd test: cover queued followup retargeting 2026-05-11 15:28:54 +01:00
Peter Steinberger
f994094cb4 fix(cron): sanitize target-last heartbeat wakes 2026-05-11 15:28:39 +01:00
Shakker
ec5a97467c test: cover reply routing decisions 2026-05-11 15:28:05 +01:00
Peter Steinberger
8ad588d9e6 test: tighten isolated cron assertions 2026-05-11 15:27:33 +01:00
Shakker
3255d2e09d test: check session fork headers 2026-05-11 15:27:15 +01:00
Shakker
754450cbb9 test: verify transcript replay records 2026-05-11 15:26:14 +01:00
Shakker
c4b551f85e test: check capability cli error text 2026-05-11 15:25:22 +01:00
Shakker
a4b95296ed test: exercise command policy resolvers 2026-05-11 15:22:20 +01:00
Peter Steinberger
0ddf10ff89 test: tighten cron assertions 2026-05-11 15:22:15 +01:00
Shakker
bc6b34a67a test: check mcp config messages 2026-05-11 15:19:34 +01:00
Peter Steinberger
601b70557d test: tighten config validation assertions 2026-05-11 15:17:26 +01:00
Shakker
17c75df670 test: check config guard error output 2026-05-11 15:16:59 +01:00
Peter Steinberger
9074f08fc3 test: tighten channel assertion checks 2026-05-11 15:15:12 +01:00
Shakker
5ad73cb995 test: verify default account warning copy 2026-05-11 15:14:43 +01:00
Shakker
6c19f389a8 test: spell out gateway send responses 2026-05-11 15:13:07 +01:00
Shakker
50a9f9a3ce test: cover exec safe bin warning text 2026-05-11 15:11:20 +01:00
Gabriel
83ffc1f47a fix(gateway): dedupe inflight outbound requests (#68341)
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-11 15:10:21 +01:00
Shakker
0343a2e689 test: pin realtime relay requests 2026-05-11 15:09:19 +01:00
Peter Steinberger
281a88d6df test: tighten cli gateway assertions 2026-05-11 15:08:14 +01:00
Shakker
fd7448299f test: pin browser state errors 2026-05-11 15:07:16 +01:00
Peter Steinberger
3dd2266723 test: tighten cli smoke assertions 2026-05-11 15:04:49 +01:00
Shakker
8ee4290e06 test: pin Zalo lifecycle logs 2026-05-11 15:04:34 +01:00
Peter Steinberger
02eff52f16 test(plugin-sdk): align compact progress draft expectation 2026-05-11 15:04:30 +01:00
Peter Steinberger
f3f1509ee9 fix(plugin-sdk): restore compact progress draft cap 2026-05-11 15:04:30 +01:00
Peter Steinberger
b2153e01d8 docs: add memory budget changelog entry (#74088) 2026-05-11 15:04:30 +01:00
YB0y
3b8cfc3657 fix(memory-core): cap MEMORY.md size during dreaming promotions to prevent unbounded growth (#73691)
Dreaming's deep-phase promotion path appends to ~/.openclaw/workspace-<agent>/MEMORY.md
without a durable size budget. After weeks of use, the file grows past the bootstrap
injection cap (~12KB/file), at which point bootstrap silently truncates promoted memory
and (per the issue body) session writes can hit lock timeouts that wedge the gateway.

Adds a bounded compaction step in applyShortTermPromotions: before each write, drop the
OLDEST auto-promoted sections (date-ordered) until existing + new section fits within
memoryFileMaxChars (default 10,000 chars, safely below the 12KB bootstrap cap).
User-authored content is preserved unconditionally; only dreaming-owned sections are
eligible for compaction.

Verified:
- pnpm install --frozen-lockfile
- pnpm test extensions/memory-core/src/memory-budget.test.ts extensions/memory-core/src/short-term-promotion.test.ts
- pnpm exec oxfmt --check --threads=1 extensions/memory-core/src/memory-budget.ts extensions/memory-core/src/memory-budget.test.ts extensions/memory-core/src/short-term-promotion.ts extensions/memory-core/src/short-term-promotion.test.ts CHANGELOG.md
- pnpm check:changed
- pnpm tsgo:core
- pnpm tsgo:extensions
- pnpm tsgo:test:src
- git diff --check
- live driver: real applyShortTermPromotions across 5 sweeps with oversized seeded MEMORY.md — file stayed bounded, oldest sections compacted, user content preserved

Closes #73691
2026-05-11 15:04:30 +01:00
Shakker
1317779a05 test: pin gh config discovery results 2026-05-11 15:02:11 +01:00
Peter Steinberger
6b2b7d12e5 test: tighten media understanding assertions 2026-05-11 15:01:19 +01:00
Shakker
54edf9513b test: pin cron channel delivery calls 2026-05-11 15:00:20 +01:00
Peter Steinberger
2858afd4cf test: tighten config session assertions 2026-05-11 14:59:09 +01:00
Peter Steinberger
4615f08817 fix: harden gh config discovery 2026-05-11 14:57:42 +01:00
tmimmanuel
72b5cddbe1 fix(doctor): surface GH_CONFIG_DIR hint when gh auth lives at a different HOME
When OpenClaw spawns an agent shell with a different HOME than the user
that ran `gh auth login` (per-agent codex homes, systemd User= services,
sudo'd shells), `gh` looks at $XDG_CONFIG_HOME/gh or $HOME/.config/gh and
reports "not logged into any GitHub hosts" even though the operator HOME
has a valid hosts.yml.

Add `detectGhConfigDirMismatch` in src/agents/skills/gh-config-discovery.ts:
a pure helper that takes process env plus a fileExists probe and returns
either "auth-discoverable", "no-known-auth", "explicit-gh-config-dir-set",
or a "mismatch" with the alternate config dir, the host file path, and a
suggested GH_CONFIG_DIR value to set on the gateway service environment.
The helper checks `/root`, `$SUDO_USER`'s home, and `$USER`'s home as
candidate operator homes on Linux/macOS, and uses platform-specific path
joins so the same logic works on Windows test runners.

Wire the helper into the doctor skills health flow: when the github skill
is reported and the gh binary is present, call the discovery helper and,
on a mismatch, print a "GitHub CLI" note with the operator-actionable
fix instructions before any unavailable-skill repair prompt.

Update skills/github/SKILL.md with a troubleshooting subsection that
documents GH_CONFIG_DIR for service/agent environments where HOME differs
from the user that ran `gh auth login`.

Fixes #78063.
2026-05-11 14:57:42 +01:00
Shakker
0abf14777d test: pin cron model switch retry 2026-05-11 14:57:04 +01:00
Peter Steinberger
0c2296015c test: tighten cli assertion checks 2026-05-11 14:56:43 +01:00
Peter Steinberger
511d706cf5 test: tighten crestodian assertions 2026-05-11 14:54:32 +01:00
Peter Steinberger
bfcd816953 test: tighten provider live assertions 2026-05-11 14:52:12 +01:00
Peter Steinberger
ed6d72efcf test: tighten browser mcp assertions 2026-05-11 14:50:16 +01:00
Peter Steinberger
5dbeacabc9 test: tighten browser route assertions 2026-05-11 14:47:22 +01:00
Peter Steinberger
248207dace test: tighten browser server assertions 2026-05-11 14:45:43 +01:00
Peter Steinberger
09fcd19814 test: tighten codex event assertions 2026-05-11 14:42:25 +01:00
Peter Steinberger
c20d45e346 test: tighten codex binding assertions 2026-05-11 14:40:27 +01:00
Feelw00
c1b59a95bf fix(cron): mark manual cron runs active (#78243)
Summary:
- Mark forced/manual cron runs active in the task registry until completion and clear them in finally.
- Add regression coverage for manual run success and failure cleanup.
- Update changelog for #78243 and apply a small lint-only test fix needed after rebasing on latest main.

Fixes #78233

Verification:
- pnpm test src/plugin-sdk/channel-streaming.test.ts src/cron/active-jobs-manual-run.test.ts
- pnpm run lint:extensions:bundled
- pnpm test extensions/codex/src/app-server/side-question.test.ts
- CI: https://github.com/openclaw/openclaw/actions/runs/25673031776

Co-authored-by: Feelw00 <dhrtn1006@naver.com>
2026-05-11 14:40:21 +01:00
Peter Steinberger
ebf0d6bc8e test: tighten qa lab live assertions 2026-05-11 14:38:49 +01:00
Peter Steinberger
1320e0ec80 test: tighten qa lab web assertions 2026-05-11 14:36:53 +01:00
Peter Steinberger
1f1a1412ff test: tighten qa lab config assertions 2026-05-11 14:34:40 +01:00
Shakker
6f3fd2410c test: pin browser fallback calls 2026-05-11 14:32:39 +01:00
Peter Steinberger
c8c1f46da1 test: tighten qa lab runtime assertions 2026-05-11 14:30:10 +01:00
Shakker
563bbd3df4 test: pin Telegram dispatch drafts 2026-05-11 14:28:38 +01:00