cmd_sidechat_create: remove Ctrl+J toggle\n\nPanel is always open; Ctrl+J toggle was closing it.\nJust find the + button directly.

This commit is contained in:
operator-main
2026-10-04 03:26:17 +00:00
parent 7938322e6d
commit 5feca52602
+3 -17
View File
@@ -269,23 +269,9 @@ def cmd_sidechat_create(ws):
Fixed 2026-10-04: sidebar is actually the chat panel, toggled by Ctrl+J. Fixed 2026-10-04: sidebar is actually the chat panel, toggled by Ctrl+J.
""" """
import time as _time import time as _time
import json as _json # Chat panel is always open in the React app - no toggle needed.
# Ensure chat panel is open via Ctrl+J (CDP Input.dispatchKeyEvent, # Ctrl+J would CLOSE it (it's a toggle). Just proceed to find + button.
# same proven method as cmd_sidechat_main). # Fixed 2026-10-04: removed Ctrl+J, it was closing the always-open panel.
# The panel contains Main chat, Side chats, and the + button.
ws.send(_json.dumps({
"id": 20, "method": "Input.dispatchKeyEvent",
"params": {"type": "keyDown", "key": "j", "code": "KeyJ",
"ctrlKey": True, "modifiers": 2}
}))
_json.loads(ws.recv())
ws.send(_json.dumps({
"id": 21, "method": "Input.dispatchKeyEvent",
"params": {"type": "keyUp", "key": "j", "code": "KeyJ",
"ctrlKey": True, "modifiers": 2}
}))
_json.loads(ws.recv())
_time.sleep(2)
# The + button sits next to the "Side chats" header (see screenshot 2026-10-04). # The + button sits next to the "Side chats" header (see screenshot 2026-10-04).
# It's not labeled "New side chat" - find it by proximity to the header text. # It's not labeled "New side chat" - find it by proximity to the header text.
result = ev(ws, """(() => { result = ev(ws, """(() => {