Skip to content

fix: imsg unhandled promises#359

Merged
steipete merged 2 commits intoopenclaw:mainfrom
antons:fix/imsg-unhandled-promises
Jan 7, 2026
Merged

fix: imsg unhandled promises#359
steipete merged 2 commits intoopenclaw:mainfrom
antons:fix/imsg-unhandled-promises

Conversation

@antons
Copy link
Contributor

@antons antons commented Jan 7, 2026

Unahndled promise in imsg watcher caused clawdbot shut down.

Steps to Reproduce

Ask Can you cause your config to reload when imsg is active.

Before Fix

  [clawdbot] Unhandled promise rejection: Error: imsg rpc closed
      at ChildProcess.<anonymous> (file:///Users/Bender/Developer/clawdbot/src/imessage/client.ts:1:1484)
      at ChildProcess.emit (node:events:508:28)
      at maybeClose (node:internal/child_process:1101:16)
      at Socket.<anonymous> (node:internal/child_process:457:11)
      at Socket.emit (node:events:508:28)
      at Pipe.<anonymous> (node:net:346:12)
   ELIFECYCLE  Command failed with exit code 1.

After

03:09:24 [imessage] imessage block reply failed: Error: imsg rpc not running

@steipete
Copy link
Contributor

steipete commented Jan 7, 2026

Thanks Anton! iMessage is still a bit WIP, merging.

@antons
Copy link
Contributor Author

antons commented Jan 7, 2026

Building and debugging clawd is half the fun!

@steipete steipete merged commit 9c9ae5a into openclaw:main Jan 7, 2026
@steipete
Copy link
Contributor

steipete commented Jan 7, 2026

Landed via rebase+merge + extra hardening.\n\n- Applied fix + added shutdown guard + regression test + changelog + README clawtributor avatar\n- Local gate: pnpm lint && pnpm build && pnpm test\n\nMerged commits:\n- 08fc0b3 fix: imsg unhandled promises\n- 9c9ae5a fix(imessage): harden abort shutdown

@antons antons deleted the fix/imsg-unhandled-promises branch January 7, 2026 03:49
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 9, 2026
* refactor(ui): design token audit — replace hardcoded colors with CSS custom properties

- Add chart, log-level, and syntax-highlighting token families to design-system.css
  (dark + light variants)
- Migrate agent-dashboard.css from hardcoded surface/border/text colors to design tokens
  (--surface-1, --border, --text, --muted, --ok, --danger, etc.)
- Migrate logs.css level-chip colors to --log-* tokens using color-mix() for alpha variants
- Migrate usage.ts inline styles from #ff4d4d / rgba(...) to --danger / --danger-muted tokens
- Migrate chat layout.css and text.css to use design-system border/surface/muted tokens
- Migrate layout.css to use --surface-1, --border, --text, --radius-lg tokens
- Update command-palette.ts and CTA modals to use design-system tokens
- Update app-render.ts and helpers to use semantic color tokens

13 files changed, ~316 insertions, ~204 deletions — zero functional changes

* UI: fix skip-nav focus outline color (openclaw#323)

* WIP: design token audit - CSS + component updates + landing demos

* Fix ReferenceError: import `nothing` from lit in renderTab (openclaw#359)

The `aria-current` attribute used `nothing` to remove itself on inactive
tabs, but `nothing` was never imported from lit. This caused a
ReferenceError on every inactive tab render, breaking navigation.

https://claude.ai/code/session_01GVGyw7dEgvPFFqwnfSNZr2

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants