Skip to content

Instantly share code, notes, and snippets.

@omarshahine
omarshahine / CheckAppleStock
Last active January 15, 2017 18:51
Checks Apple inventory for availability of any Apple SKU. In this example, AirPods
# If you don't have the requests module, you can download by typing:
#
# sudo easy_install -U requests
#
# into the terminal on macOS
#
# You can change the partnum below with any Apple SKU
#
import urllib
@omarshahine
omarshahine / fix-plugin-registry-jiti-realm-isolation.patch
Last active March 14, 2026 18:16
Workaround for openclaw/openclaw#45007 — webhook route registry isolation across jiti VM realms
diff --git a/src/plugins/runtime.ts b/src/plugins/runtime.ts
index 752908ddf..a0cc80ad8 100644
--- a/src/plugins/runtime.ts
+++ b/src/plugins/runtime.ts
@@ -8,7 +8,23 @@ type RegistryState = {
version: number;
};
+// Use process as the cross-realm bridge for the registry singleton.
+// In jiti VM realms, each realm gets its own `globalThis`, so
@omarshahine
omarshahine / fix-bb-reply-threading-tests.patch
Last active March 14, 2026 18:16
fix(bluebubbles): lazy-refresh Private API status for reply threading — openclaw/openclaw#43764
diff --git a/extensions/bluebubbles/src/send.test.ts b/extensions/bluebubbles/src/send.test.ts
index f820ebd9b..8e3013b73 100644
--- a/extensions/bluebubbles/src/send.test.ts
+++ b/extensions/bluebubbles/src/send.test.ts
@@ -1,7 +1,7 @@
import type { PluginRuntime } from "openclaw/plugin-sdk/bluebubbles";
import { beforeEach, describe, expect, it, vi } from "vitest";
import "./test-mocks.js";
-import { getCachedBlueBubblesPrivateApiStatus } from "./probe.js";
+import { fetchBlueBubblesServerInfo, getCachedBlueBubblesPrivateApiStatus } from "./probe.js";
@omarshahine
omarshahine / fix-wa-group-react-lid.patch
Created March 14, 2026 18:01
fix(whatsapp): resolve phone→LID for group reactions — openclaw/openclaw#36090
From fad771cfefdc36108e02771aead22ca6e968f187 Mon Sep 17 00:00:00 2001
From: Lobster <lobster@shahine.com>
Date: Thu, 5 Mar 2026 07:00:24 -0800
Subject: [PATCH 1/3] fix(whatsapp): resolve phone-based participant to LID for
group reactions
WhatsApp migrated group message keys from phone-based JIDs to LID-based
JIDs. When the agent sends a reaction with a phone number as participant,
the reaction key doesn't match the original message key, causing a silent
failure. Use Baileys' built-in getLIDForPN from the signal key store to
@omarshahine
omarshahine / landpr-prompt.txt
Created April 19, 2026 19:43
landpr handoff: PR #69070
Land PR #69070 via /landpr.
Context (self-contained — you don't have prior session history):
- Repo: openclaw/openclaw (cloned at ~/GitHub/openclaw)
- PR: https://github.com/openclaw/openclaw/pull/69070
- Branch: fix/bluebubbles-send-method-explicit
- Tip commit: acc1589305
- Author: me (omarshahine, maintainer)
- Title: "bluebubbles: always set method explicitly on text sends, force Private API on macOS 26"