← Commit history

v1.3.7 (insiders): A hidden Grok Bot window that grok_open shows again now lands behind every other window, not just under the foreground app.

John Lauer ·facae567a8 ·5d ago ·parent 13f3a41
3 files changed +7−4
BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.3.6\ No newline at end of file+1.3.7\ No newline at end of file
bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "grok",   "displayName": "Grok Bot",-  "version": "1.3.6",+  "version": "1.3.7",   "description": "Drive Grok Bot (standalone Electron app, Grok Bot.exe) from Adom Bridge: open/close/resize/screenshot/record the app, read thinking vs idle and the visible transcript of the focused thread, queue messages, bind the Grok Bridge webhook and create bots/channels. No public Grok HTTP API \u2014 the runtime talks back to ab over desktop_* callbacks. Cursor is last-resort fallback only if Grok Bot.exe is missing.",   "homepage": "https://wiki.adom.inc/adom/grok-bridge",   "author": "Adom Inc.",
handlers/windows.py+5−2
@@ -393,8 +393,11 @@ def show_hidden_main() -> tuple[int | None, dict | None, dict | None]:     res = _cb("desktop_set_window_state", {"hwnd": h, "state": "show"})     if not _callback_ok(res) or (isinstance(res, dict) and res.get("error")):         return None, None, res-    _cb("desktop_set_window_state", {"hwnd": h, "state": "bottom"})-    time.sleep(0.5)+    # show is asynchronous: a bottom sent at once lands before the window is up and it+    # surfaces just under the foreground app. Wait, send it to the back, then once more.+    for _ in range(2):+        time.sleep(0.5)+        _cb("desktop_set_window_state", {"hwnd": h, "state": "bottom"})     hwnd, win = grok_hwnd(allow_cursor=False)     return hwnd, win, res