Repository navigation
Conversation
…ation (openclaw#59112) * fix(exec): strip invalid security/ask enum values during config normalization * fix(exec): narrow invalid approvals config cleanup --------- Co-authored-by: scoootscooob <[email protected]>
* fix: keep acp prompts alive across gateway reconnects * fix: bound ACP prompts after disconnect grace * fix: preserve ACP send timeout semantics * fix: defer pre-ack ACP disconnect failures * fix: reconcile ACP runs after reconnect * fix: keep ACP reconnect deadlines monotonic * fix: keep pre-ack ACP deadlines after reconnect * fix: keep ACP prompts alive across gateway reconnects (openclaw#59473) * fix: reject superseded ACP pre-ack prompts (openclaw#59473) * style: format ACP reconnect regression updates (openclaw#59473) * style: format ACP reconnect regression updates (openclaw#59473) * fix: guard ACP send acceptance by run id (openclaw#59473) * fix: scope ACP reconnect deadline by prompt (openclaw#59473) * fix: recheck ACP prompts at reconnect deadline (openclaw#59473) * fix: key ACP reconnect deadline by run (openclaw#59473)
…juliabush) * fix(ui): install devDependencies during ui:build * fix: keep ui:build self-heal documented (openclaw#59267) (thanks @juliabush) --------- Co-authored-by: Ayaan Zaidi <[email protected]>
* fix(qqbot): restrict structured payload local paths * fix(qqbot): narrow structured payload file access * test(qqbot): cover payload path traversal guards * fix(qqbot): reduce structured payload log exposure * fix(qqbot): preserve inline image payload URLs
* fix(doc):update wecom doc and qq doc * Update CHANGELOG with recent changes and enhancements Added various updates including new features, improvements, and documentation changes across multiple components.
* Slack: filter thread context by allowlist * Slack: honor room thread allowlists * Slack: keep open-room thread context * Slack: keep non-room thread context * Changelog: add Slack thread context fix
Merged via squash. Prepared head SHA: c990938 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
* fix(agents): recover Anthropic thinking after crash * fix(agents): avoid duplicate Anthropic recovery chunks * fix(agents): preserve Anthropic stream result
Merged via squash. Prepared head SHA: e6cdde6 Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
…w#59608) * fix(providers): centralize Anthropic endpoint classification * fix(agents): share Anthropic thinking recovery gating
Cherry-pick of openclaw#61291 (kiranvk-2011). Resolves conflict: our branch already has direct imports where PR used lazy-loaded helpers; core fix in session.ts applied cleanly. Added payloadModel pass-through at resolveCronSession call site in run.ts to complete the wire-up.
…ared-session jobs from being silently skipped
Cherry-pick of openclaw#61239 (Linux2010). Cron jobs with timeoutSeconds > 60s no longer abort early at the default 60s LLM idle timeout. idle_timeout = min(overall_timeout * 0.5, 60s). CHANGELOG conflict resolved by keeping HEAD.
Tool call blocks that still carry a partialJson field are incomplete streaming assembly artifacts left behind when the provider stream is interrupted before message_stop (e.g. Kimi k2p5 Unexpected event order errors). Keeping them in session history causes the next request to send malformed tool call blocks to the provider, cascading the error. Drop any tool call block that has a partialJson key in repairToolCallInputs so session-transcript repair removes these artifacts before replaying history. Co-authored-by: Copilot <[email protected]>
When the heartbeat interval exceeds ~24.8 days (2^31-1 ms), Node.js clamps the setTimeout duration to 1 ms, causing a runaway hot-loop that floods logs with TimeoutOverflowWarning and generates 500 MB+ of log spam. Cap the delay passed to setTimeout at 2_147_483_647 ms. The timer will re-arm and recompute the remaining delay on wake, so large intervals still fire at the correct time. Fixes openclaw#41240
## Summary - Problem: auth profiles were not being rotated on prompt-timeout failures, and retry-after hints from errors were not automatically honored during the retry loop. - Why it matters: when a profile times out it should be immediately retried on a healthy profile without marking the timed-out profile as failed; also, rate-limit signals with retry-after hints should drive intelligent backoff instead of blindly exponential-bumping delays. - What changed: - Removed the timeout guard from `resolveAuthProfileFailureReason()` in `run.ts` so prompt timeouts trigger auth-profile rotation. The existing `reason === "timeout"` guard inside `maybeMarkAuthProfileFailure()` stays intact, so timed-out profiles never enter cooldown (identity pass-through is safe: null stays null, timeout stays timeout). - Added automatic retry-after inference inside `retryAsync()` (`retry.ts`): rate-limit-like errors now surface `retryAfterMs`, `retryAfter`, `headers['retry-after']`, nested response headers, and message-based hints before falling back to exponential backoff. String `retry-after` values are converted from seconds to ms, numeric `retry-after` values are treated as seconds to match HTTP semantics, and numeric `retryAfterMs` fields remain in ms. - Tests: added e2e and unit coverage for both behaviors. ## Change Type - [x] Bug fix ## Scope - [ ] Gateway / orchestration - [ ] Skills / tool execution - [x] Auth / tokens - [ ] Memory / storage - [ ] Integrations - [x] API / contracts - [ ] UI / DX - [ ] CI/CD / infra ## Root Cause - Timeout handling: `resolveAuthProfileFailureReason()` filtered out `timeout` before `maybeMarkAuthProfileFailure()` could decide to rotate. Removing the identity guard lets the existing cooldown-exclusion logic drive correct behavior. - Retry-after detection: the retry utility accepted an explicit `retryAfterMs` callback but did not inspect well-known retry-after properties on the error itself, leaving rate-limit signals to fall through to generic exponential backoff. ## Regression Test Plan - Coverage level: - [x] Unit test - [x] End-to-end test - Target files: `src/infra/retry.test.ts`, `src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts` - Scenario: prompt timeouts rotate profiles without cooling down the origin profile; rate-limit errors with retry-after hints drive correct delay inference. ## User-visible / Behavior Changes - Prompt timeouts no longer block auth-profile rotation; timed-out profiles are retried on the next profile immediately. - Rate-limit errors now honor retry-after hints from headers, error properties, and error messages. ## Human Verification - Verified: `pnpm build`, `pnpm test:serial src/infra/retry.test.ts` Reviewed By: AI-assisted --- [AI-assisted] [lightly tested]
Adds direct tests for extractRetryAfterMsFromError, isRateLimitLikeError, and parseRetryAfterFromMessage: retryAfterMs property (ms), retryAfter property (seconds), nested response.headers['retry-after'], and nested response.status detection. --- [AI-assisted]
Use vi.useFakeTimers() / vi.runAllTimersAsync() in the four inference tests instead of real wall-clock sleep. Brings test suite from ~11.5 s down to ~88 ms without changing what is verified. --- [AI-assisted]
…arse test ## What changed - parseRetryAfterHeaderValue now also handles HTTP-date absolute timestamp values (e.g. "Sat, 05 Apr 2025 12:00:05 GMT"). When a non-numeric header is encountered, Date.parse() is used to extract the reset timestamp and convert it to a non-negative millisecond delta from the current time. - Added test: HTTP-date Retry-After header → correct delay extraction. All 19 tests pass (92 ms, fake timers). --- [AI-assisted]
…during channel plugin loading Cherry-pick of openclaw#61323. Resolves Telegram/channel init failures on 4.2 (issue openclaw#61273). Conflict resolved: HEAD still had ajv.compile on cron/skills/devicePair validators not yet converted; took PR's full lazyCompile conversion + new SkillsSearch/Detail/ExecApprovalGet validators.
…rovalGet) not in 4.2 types
commented
Apr 5, 2026
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commented
Apr 5, 2026
|
Keeping this fix on upgrade/2026-04-02 directly; not opening a main-targeted PR because that release branch is intentionally divergent from main. |
What changed
createRequirefromnode:moduleinsrc/version.tscreateRequireonly at runtime when a Node environment is actually availableWhy
The Control UI browser bundle was pulling
src/version.tsthrough Vite/Rollup. The staticnode:moduleimport was externalized for browser compatibility and then failed the build becausecreateRequireis not exported by the browser shim.Impact
createRequirewhen bundling browser codeui:buildsuccessfully after upgradeValidation
mac-mini.lanrh-bot.lanNotes
This is intentionally a single-file fix to prevent the install-time hotfix from regressing on the next update.