Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d76afbef55
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (ERROR_PREFIX_RE.test(trimmed)) { | ||
| if (isOverloadedErrorMessage(trimmed) || isRateLimitErrorMessage(trimmed)) { | ||
| return "The AI service is temporarily overloaded. Please try again in a moment."; | ||
| } | ||
| if (isTimeoutErrorMessage(trimmed)) { | ||
| return "LLM request timed out."; | ||
| // Only rewrite short, single-block text that looks like a raw error dump. | ||
| // Multi-paragraph replies that happen to start with "Error:" or "Failed:" | ||
| // are legitimate assistant content and should not be rewritten. | ||
| const isShortErrorDump = trimmed.length < 300 && !trimmed.includes("\n\n"); | ||
| if (isShortErrorDump) { |
There was a problem hiding this comment.
Keep sanitizing long error dumps
The new isShortErrorDump guard means any error-prefixed output longer than 300 chars skips all sanitization and falls through to collapseConsecutiveDuplicateBlocks. That’s a regression for common SDK/provider failures that start with Error: and include stack traces or verbose error bodies (often >300 chars but still single-block). In that case users now see raw error/stack content instead of the friendly message or truncation that formatRawAssistantErrorForUi provided. This triggers whenever the assistant emits a long error dump with an error prefix, so the sanitization is silently bypassed.
Useful? React with 👍 / 👎.
Fix SwiftFormat lint failures across 100 files in apps/macos/Sources. Applies wrapMultilineStatementBraces, trailingCommas, blankLinesBetweenScopes, hoistTry, hoistPatternLet, sortImports, and other formatting rules per .swiftformat config. Co-Authored-By: Claude Opus 4.5 <[email protected]>
d76afbe to
c75dd98
Compare
…penclaw#4593) OAuth credentials with a refresh token auto-renew on first API call, so the doctor should not warn about access token expiration when a refresh token is present. This avoids unnecessary "expired" warnings that prompt users to re-auth when no action is needed. Fixes openclaw#3032 Co-authored-by: Ayush Ojha <[email protected]>
What: swap sessions_list for agents_list in /tools/invoke tests Why: avoid nested gateway calls that can hang under CI; still validates tool invocation + allowlist Tests: not run (CI should cover)
Co-authored-by: jlowin <[email protected]>
- .pre-commit-config.yaml: update comment header - AGENTS.md: update plugin-sdk import path and state directory paths - skills/bluebubbles/SKILL.md: update plugin-sdk import reference - skills/discord/SKILL.md: update example sticker name
Co-authored-by: Hisleren <[email protected]>
…Hisleren) Co-authored-by: Hisleren <[email protected]>
…hanks @YuriNachos) Co-authored-by: YuriNachos <[email protected]>
…ession display names
…unce routing (openclaw#4957) * fix: prefer requesterOrigin over stale session entry in subagent announce routing When a subagent finishes and announces results back, resolveAnnounceOrigin merged the session entry (primary) with requesterOrigin (fallback). If the session store had a stale lastChannel (e.g. whatsapp) from a previous interaction but the user was now on a different channel (e.g. bluebubbles), the announce would route to the wrong channel. Swap the merge order so requesterOrigin (captured at spawn time, reflecting the actual current channel) takes priority, with the session entry as fallback for any missing fields. Error before fix: Delivery failed (whatsapp to bluebubbles:chat_guid:...): Unknown channel: whatsapp Adds regression test for the stale-channel scenario. * fix: match test to exact failure scenario and improve reliability (openclaw#4957) (thanks @tyler6204) - Remove lastTo from stale session store to match the exact mismatch scenario described in the PR - Replace 5ms setTimeout sleeps with expect.poll for better test reliability - Prevents flakiness on slower CI machines
…xt+image messages (openclaw#4984) * fix(bluebubbles): debounce by messageId to preserve attachments in text+image messages BlueBubbles fires multiple webhook events for a single message - first without attachment metadata, then ~350ms later with it. Previously, messages with attachments bypassed debouncing and were processed immediately, while the text-only version was also queued. Now the debouncer uses messageId as the key when available, coalescing all webhook events for the same message. The existing combineDebounceEntries function merges attachments from all events. Closes openclaw#4848 * fix: increase debounce and handle balloon messages - Increase DEFAULT_INBOUND_DEBOUNCE_MS from 350ms to 500ms - Update buildKey to use associatedMessageGuid for balloon messages - Add regression test for debouncing behavior Fixes issues identified in code review. --------- Co-authored-by: Yurii Chukhlib <[email protected]> Co-authored-by: Tyler Yust <[email protected]>
|
The rebase completely failed. Please recreate the PR from a clean branch. |
|
Closing this PR because it has more than 20 labels, which usually means the branch is too noisy. Please recreate the PR from a clean branch. |
Summary
sanitizeUserFacingText()so only short, single-block error dumps get rewrittenRoot Cause
sanitizeUserFacingText()applies error-pattern matching to ALL assistant reply text (streaming and final). When the assistant legitimately discusses error concepts (e.g., "Error handling in Node.js requires..."), theERROR_PREFIX_REregex matched the "Error" prefix and the text was rewritten to a generic error message like "The AI service is temporarily overloaded."This happened because:
ERROR_PREFIX_REmatches any text starting with "Error:", "Failed:", etc.Fix
Added a check: the error rewriting branch only activates when the text is short (<300 chars) and doesn't contain multiple paragraphs. Raw API error messages are always short single-block strings, while legitimate assistant replies discussing errors are typically longer and multi-paragraph.
Fixes #3594