mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 02:49:40 +08:00
When chatting with a partner or executing subtasks under partner context, the system installs a synthetic user scope (e.g. partner_ada) and redirects PathService workspace root to data/partners/<id>/workspace. As a result, _codex_user_root() resolved to the partner's virtual user root where no Codex credentials existed, immediately failing with: Error calling Codex: Sign in to Codex before using this model. Fix: Detect if the current user ID belongs to a synthetic partner (starts with PARTNER_USER_PREFIX) and resolve to the admin/owner's user root instead, allowing partners to inherit and use the owner's active Codex login token. Closes #711