Repository navigation
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
- 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.
- From A, make one approved
send_remote_messagecall to B's native-resolved exact reference, requesting one reply. Do not supply a prose return address as a substitute for native provenance. - In B, inspect
get_current_sessionandget_session_contextwithdetail: "full"for the received turn. - Observe that the incoming message is represented as
usertext with no native sender/reply reference.get_remote_sessionalso provides no incoming-source field. Do not send to an unrelated creator just becauseoriginexists.
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.
- Remote router adds agent origin and source metadata, independently of message prose. Source resolution obtains the exact source chat from the host's chat catalog.
- Delegation metadata stores
sourceSessionandsourceChatundervscode.chat.delegation. Turn delegation persists/restores these fields but adds no sender instructions to the model. - UI projection builds a source-chat link. An existing regression test checks host and exact-chat preservation; this test was inspected, not run.
- Session-context serialization omits message origin/delegation at every detail level. Remote inspection returns status/latest response, not incoming provenance.
- Origin resolution uses saved session-origin metadata, not the latest incoming message.
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
originsemantics and existing approval/trust checks unchanged. Do not infer provenance from prompt text or blindly promote arbitrary_metacontent 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
- Agents window: built-in tools for remote session delegation #336682 / Test: Remote session delegation across agent hosts #337849 introduced and tested remote session delegation;
origincovers creator returns only.
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