Mobile Agents sheet shows the OpenAI logo for a task delegated to another environment when the app is not connected to it
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- mobile
调研方向
从 apps/mobile/src/features/threads/SubagentRow.tsx 开始:该行通过 useEnvironmentServerConfig(...) 解析 provider,并回退到 provider?.driver ?? subagent.driver,即 "remote" 占位符,来自 apps/server/src/peer/RemoteDelegation.ts。与 thread-subagent-group.tsx(SubagentAvatar)和 web 的 ThreadRelationshipsControl.tsx(fallbackIcon={BotIcon})中已经使用的守卫进行比较,然后检查 apps/mobile/src/components/ProviderIcon.tsx,其中通用 fallback 渲染 OpenAI 结。完成后的样子是:委派给已断开环境的任务所在行显示中性的机器人字形,而不是 OpenAI 标志,对于到达通用 fallback 的 "remote" driver 也是如此。
由索引模型根据 Issue 内容生成。
描述
What happened
On the iPad app, a thread on my MacBook delegated a task to my desktop environment with delegate_task, using Claude Opus 5.5. The iPad is connected to the MacBook but not to the desktop. In the thread's Agents sheet, that task's row shows the OpenAI/ChatGPT logo next to "Claude Opus 5.5". Local Claude tasks in the same sheet show the Claude logo correctly.
Reproduced with a placeholder task on Claude Haiku 5.5 delegated to the other environment: the row shows "Working on" followed by that environment's name and "Claude Haiku 5.5" with the OpenAI logo.
Diagnosis
The server records a cross-environment task with the placeholder driver "remote" (apps/server/src/peer/RemoteDelegation.ts: driver: ProviderDriverKind.make("remote"), commented "The driver runs there; this side only labels the task with it").
SubagentMetadata in apps/mobile/src/features/threads/SubagentRow.tsx looks up the provider instance in the remote environment's server config (useEnvironmentServerConfig(subagent.remoteChild?.environmentId ?? environmentId)). When the client is not connected to that environment, there is no config, so provider is undefined and the row falls back to <ProviderIcon provider={provider?.driver ?? subagent.driver} />, which means provider="remote".
ProviderIcon (apps/mobile/src/components/ProviderIcon.tsx) has no branch for "remote", and getProviderClient("remote") returns undefined, so it reaches the generic fallback at the end. That fallback is the OpenAI knot glyph (the same path as the OpenAI icon in apps/web/src/components/Icons.tsx). So any task whose driver cannot be resolved is drawn as an OpenAI task.
The other surfaces already handle this case:
- the mobile chat subagent card (
thread-subagent-group.tsx,SubagentAvatar) skipsitem.driverwhenremoteChildis set ("A remote task's own driver is only a "remote" label") and shows a neutralrobotsymbol; - web's lineage row (
ThreadRelationshipsControl.tsx) does the same withfallbackIcon={BotIcon}.
Only the Agents sheet row passes the "remote" placeholder through. The code is unchanged on current main.
Possible fixes: apply the same remoteChild guard and robot fallback in SubagentRow; or, since launched.modelSelection is already stored, record or derive the real driver so the sheet can show the Claude logo even when it is offline. Separately, a generic fallback that is a real vendor's logo makes any unresolved driver look like Codex; a neutral glyph would be safer.
Steps to reproduce
- Link two environments, A and B.
- Connect the mobile app to A only.
- In a thread on A, have the agent run
delegate_taskwith a target in environment B and a Claude model. - On mobile, open the thread and tap the "Waiting on N subagents" pill to open the Agents sheet.
- The delegated row shows "Working on" followed by B's name, the model name, and the OpenAI logo instead of the Claude logo.
From the code, connecting the mobile app to B as well should make the row show the correct icon and instance name, because the config lookup then succeeds. This has not been tested.
Version
Mobile 2.3.0 (iPadOS). Parent server: 0.1.10-nightly.20261115.4723 (macOS desktop app). Delegated environment's server: 0.1.10-nightly.20261112.4580 (Windows desktop app).
Environment
iPad mini, T3 Code 2.3.0 (App Store). Parent environment: macOS desktop app. Delegated environment: Windows desktop app, linked to the parent but not connected from the iPad.
Evidence
apps/server/src/peer/RemoteDelegation.ts
driver: ProviderDriverKind.make("remote"),
apps/mobile/src/features/threads/SubagentRow.tsx
const config = useEnvironmentServerConfig(subagent.remoteChild?.environmentId ?? environmentId);
...
<ProviderIcon provider={provider?.driver ?? subagent.driver} ... /> // "remote" when config is missing
apps/mobile/src/components/ProviderIcon.tsx
// last return: the OpenAI knot, used for any driver without an icon
<Svg ... viewBox="100 100 411 411"> <Path d="M252.794 108.802 ..." />
Related issues
#26854 (iPhone listed cross-machine delegated tasks as top-level threads, fixed) and #24831/#24896 (account badges on subagent rows) touch the same rows but not the icon fallback. No existing issue found for this.
Fix applied or workaround
None. Connecting the mobile app to the delegated environment should work around it (from the code, untested).
Filed by
Claude Code (claude-opus-5-5) via T3 Code triage, main author.
Automated comment from a coding agent. Model: claude-opus-5-5
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 3 小时 40 分钟
- 30 天内合并 PR
- 543
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
Hide the code block header label when a fence has no language可能已有人在做 @ashx-j 于 1 天前认领。 未关闭via-triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
[Bug]: MCP App inline frames never go below 80px, so compact apps get blank space under them可能已有人在做 @rafi-the-dev 今天认领。 未关闭
难度 2/5 半天 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
open-webui/tether#52 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/void#835 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
AykutSarac/jsoncrack.com#616 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#4679 ·
维护者通常 1 天内回复
-
enhancement size:medium
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复