fix: salvage tier-1 bug fixes from PRs #7387, #9091, #6293, #13131#13187
Conversation
…ersion The link regex in format_message used [^)]+ for the URL portion, which stopped at the first ) character. URLs with nested parentheses (e.g. Wikipedia links like Python_(programming_language)) were improperly parsed. Use a better regex, which is the same the Slack adapter uses.
… gibberish The colored ✓/✗ marks in /tools list, /tools enable, and /tools disable were showing up as "?[32m✓ enabled?[0m" instead of green and red. The colors come out as ANSI escape codes, but the tui eats the ESC byte and replaces it with "?" when those codes are printed straight to stdout. They need to go through prompt_toolkit's renderer. Fix: capture the command's output and re-print each line through _cprint(), the same workaround used elsewhere for #2262. The capture buffer fakes isatty()=True so the color helper still emits escapes (StringIO.isatty() is False, which would otherwise strip colors). The capture path only runs inside the TUI; standalone CLI and tests go straight through to real stdout where colors already work.
🚨 CRITICAL Supply Chain Risk DetectedThis PR contains a pattern that has been used in real supply chain attacks. A maintainer must review the flagged code carefully before merging. 🚨 CRITICAL: Install-hook file added or modifiedThese files can execute code during package installation or interpreter startup. Files: Scanner only fires on high-signal indicators: .pth files, base64+exec/eval combos, subprocess with encoded commands, or install-hook files. Low-signal warnings were removed intentionally — if you're seeing this comment, the finding is worth inspecting. |
✅ Review Complete - LGTMTested all 4 salvaged bug fixes - all passing: Test Results
Detailed Analysis1. PR #7387 - Telegram URL parentheses fix ✅
2. PR #6293 - Discord slash command detection ✅
3. PR #9091 - TUI colors fix ✅
4. PR #13131 - OpenClaw migration env var detection ✅
Follow-up Fixes
RecommendationMerge immediately. This is a high-quality salvage PR that:
No additional changes needed. Ready for merge. Reviewer: @teknium1 |
Summary
Salvages four community bug fixes onto current main with contributor authorship preserved.
Changes
PR #7387 (@dsocolobsky) — fix(telegram): handle parentheses in URLs during MarkdownV2 link conversion
telegram.pyfor Wikipedia-style URLs with balanced parensPR #9091 (@dsocolobsky) — fix(tui): make "/tools list" show real colors instead of garbled ANSI
redirect_stdoutand re-renders through_cprint()in interactive TUI modePR #6293 (@dsocolobsky) — fix(discord): slash command detection when auto-create-thread is on
create_thread()clobbersmessage.contentnormalized_contentfor command detection and event textPR #13131 (@IAvecilla) — fix: update openclaw migration env var detection
PROVIDER_REGISTRYand_GATEWAY_PLATFORMSlookupsFollow-up fixes
timezoneimport in e2e conftestValidation