Skip to content

Agent Host: let a send_remote_message recipient reply to the exact sending chat #349566

In progress

Description

Client: VS Code 1.146.0, macOS arm64, commit 69047191fc427f2f92828279aae1d90d8eeda7ab; Agents window with SSH-connected agent hosts. Rechecked by source on 2026-11-20 at main 1735a4c: unchanged (origin resolution, context serialization).

Problem

An existing chat receiving send_remote_message cannot obtain the exact sending chat's native return reference through the examined model-facing tools. Sender metadata exists internally; it is not exposed alongside the received message.

session: "origin" is not a reply-to-current-message mechanism. It addresses the session's saved creator, which may be absent or unrelated to the latest sender. Creating a new remote session demonstrates a different workflow, not communication between existing chats.

Reproduction recipe

  1. Use an existing nested chat A and an existing chat B on another connected agent host, with native remote tools enabled. B was not created by A.
  2. From A, make one approved send_remote_message call to B's native-resolved exact reference, requesting one reply. Do not supply a prose return address as a substitute for native provenance.
  3. In B, inspect get_current_session and get_session_context with detail: "full" for the received turn.
  4. Observe that the incoming message is represented as user text with no native sender/reply reference. get_remote_session also provides no incoming-source field. Do not send to an unrelated creator just because origin exists.

Expected: a documented operation exposes a validated exact source-chat reply reference tied to this incoming turn, or provides an opaque message-bound reply operation.

Observed: native context output for an existing received remote RESULT contains its text but no separate sender fields, including at full detail. There is no per-message sender alias in the examined remote router; only the creation-bound origin alias.

Source evidence

All links below are pinned to the installed client commit.

Requested behavior and acceptance criteria

  • Expose a native-validated, host-qualified reference for the exact incoming source chat, including nested chats. Reuse native identity resolution; do not fall back to the parent/default chat.
  • Bind it to the particular message/turn, not a mutable "latest sender", so queued or concurrent senders cannot misroute replies.
  • Keep creator origin semantics and existing approval/trust checks unchanged. Do not infer provenance from prompt text or blindly promote arbitrary _meta content into authority.
  • Verify an existing-chat four-message chain A -> B -> exact C nested chat -> B -> A, with each return using the native reference and a matching final result received by A.

This is a recipient-tool provenance/return-address request, not a request for an alternative transport or permission bypass.

Current workaround

Senders write their own host-qualified chat reference into the message text, and recipients reply to it. This works for a few cooperating agents, but the reference is unauthenticated prose: a transcription or memory error after context compaction misroutes the reply silently.

Related

Filed by an AI assistant at the user's explicit request, based on source inspection and observed received turns. No new delivery experiment was run for this report.

Activity

  1. added
    agent-host
    remote-session-tools
    feature-request
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostagents-windowfeature-requestremote-session-tools

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions