mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 15:20:10 +08:00
A partner web chat runs as a synthetic user, so ``workspace_present`` writes its manifest under ``data/partners/<id>/workspace``. The download route resolved the item against the caller's own bindings only, ``binding_by_id`` refused a workspace no human account has registered, and the attachment the transcript was still offering 404'd on click (#1267). ``/files/outputs`` already reaches into the caller's visible partner workspaces for the same reason (#1012); this is the other artifact URL shape and it had been left behind. Reading the two routers side by side was what showed the asymmetry. The two differ in one respect, and deliberately: an output is addressed by a relative path that several partners could each hold, so that endpoint serves only a unique match. A workspace id is derived from the owning user id together with the physical root and re-derived before a stored row is trusted, so a hit inside a partner scope is that partner's by construction and the first one is the answer. The reported issue named three further causes — an unmounted router and two rejected path shapes. None of them hold: both routers are mounted, and the partner output fallback has been there since #1012.