Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Remote control Connect in Settings silently binds to whichever chat is open, and never shows which chat it drives #191

Backlog

Description

@nbzezo

GUI version

0.1.63

Operating system

Windows

Reproduction steps

  1. Open chat A in the app.
  2. 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.
  3. Open or create a different chat B and work there.
  4. Send a message to the bot from Telegram.
  5. 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.

Screenshots, recordings, or sanitized logs

Session: 2053bc2f-c9d6-4fd6-b173-f68fd6416e32
Traces: 691a1a07ec829d178762407f22157bf3, 7a84ba3e9c9df0e53adcd199adfa8f2d, 693a16c8b63719276951d1d845c3a307, fc36e624501df484a26546e80c18e4ba, f6885731e28eb8b690446cf8589c9292

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

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions