Attach a document to a chat session and ask about it, and a Hub-installed flagship agent answers as if the file were not there. The agent never sees it.
The Agent UI relays a sidecar turn over the agent's /query contract, and that request body carries the transcript and the session id but not the session's attached file paths. An in-process agent gets them through its constructor, so the same session behaves differently depending only on whether the agent was installed as a wheel or as a Hub binary.
Pre-existing for any binary install, but #4165 is what makes the path reachable for the flagship, so it will start being hit. Noted in a comment at the relay call site in _dispatch_sidecar_query.
Fixing it needs a decision first: whether the host sends paths the sidecar then indexes itself, or whether indexing stays host-side and the sidecar receives retrieved context. The second keeps the sidecar free of filesystem access it otherwise does not need.
Test plan
Attach a document to a chat session and ask about it, and a Hub-installed flagship agent answers as if the file were not there. The agent never sees it.
The Agent UI relays a sidecar turn over the agent's
/querycontract, and that request body carries the transcript and the session id but not the session's attached file paths. An in-process agent gets them through its constructor, so the same session behaves differently depending only on whether the agent was installed as a wheel or as a Hub binary.Pre-existing for any binary install, but #4165 is what makes the path reachable for the flagship, so it will start being hit. Noted in a comment at the relay call site in
_dispatch_sidecar_query.Fixing it needs a decision first: whether the host sends paths the sidecar then indexes itself, or whether indexing stays host-side and the sidecar receives retrieved context. The second keeps the sidecar free of filesystem access it otherwise does not need.
Test plan