You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote control Connect in Settings silently binds to whichever chat is open, and never shows which chat it drives #191
Open Settings -> Remote control and click Connect with a Telegram bot token. It binds to chat A (the one open behind the sheet) without asking.
Open or create a different chat B and work there.
Send a message to the bot from Telegram.
Observe: the message lands in chat A, not chat B, and nothing in the UI said chat A was the target.
Expected behavior
The panel should state which chat is being driven (by title/id) before and after Connect, or let the user pick the target chat. When a remote message is routed, the app should indicate the destination chat, e.g. a banner in that chat or a toast naming it.
Actual behavior
Connect sends start({ sessionId: activeThreadId ?? ensureThreadId() ?? "" }) - the chat currently open in that window - with no chat picker and no confirmation. The status row only renders "On via Telegram. ", where the label is built by sessionLabel() = "Command Code v . . ()" and contains no chat name. ~/.commandcode/remote-host.json then holds a fixed sessionId, so every Telegram message is appended to that chat regardless of which chat the user is viewing; there is no on-screen indication of the destination. The app already handles the mismatch case ("A remote message arrived for a chat that is no longer open. Run /rc off, then /rc in the chat you want to drive."), which shows the ambiguity is known. Reported experience: the user turned remote control ON from Settings believing it was a global setting, and every phone message went into a long-running chat instead.
Lock file written at connect time (~/.commandcode/remote-host.json):
{
"pid": 43676,
"cwd": "C:\X1 Gen7 _ Document\Telegram-Zalo-tuanda05",
"sessionId": "2053bc2f-c9d6-4fd6-b173-f68fd6416e32",
"startedAt": "2026-11-26T11:30:49.464Z",
"label": "Command Code v0.1.63 . deepseek-v4.1-flash-(latest) . Telegram-Zalo-tuanda05 (main)"
}
A separate, projectless chat 98f8dd3c-4a72-4f00-bd82-acc56a3c0d4d ("Xin Chao", cwd C:\Users<user>) was created at 11:26:48 and received none of the remote messages.
Safety check
I removed credentials and private project information from this report.
Activity