Skip to content

Commit d4c1e99

Browse files
vitalyiegorovclaude
andcommitted
fix(mobile): handoff badges treat local ACP commands as web does
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 435cc81 commit d4c1e99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/features/threads/thread-handoff-row.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ function HandoffEndpoint(props: {
106106
// carry each ACP instance's agent, which tells its glyph apart.
107107
const badgeEntry = (candidate: ServerProvider) => {
108108
const config = props.providerInstances?.[candidate.instanceId]?.config;
109-
const agentId = typeof config === "object" && config ? Reflect.get(config, "agentId") : null;
109+
// A local ACP command has no registry agent, as on web.
110+
const agentId =
111+
typeof config === "object" && config && Reflect.get(config, "source") !== "local"
112+
? Reflect.get(config, "agentId")
113+
: null;
110114
return {
111115
driverKind: candidate.driver,
112116
...(typeof agentId === "string" && agentId.trim()

0 commit comments

Comments
 (0)