Skip to content

Commit 8cc5405

Browse files
style(mobile): format Live Activity stale-date calls
1 parent 59b83c5 commit 8cc5405

1 file changed

Lines changed: 32 additions & 26 deletions

File tree

‎apps/mobile/src/features/agent-awareness/remoteRegistration.ts‎

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -532,25 +532,28 @@ function armAgentAwarenessLiveActivityForLocalWorkNow(input: {
532532
return;
533533
}
534534
const nowIso = new Date(Date.now()).toISOString();
535-
const activity = startAgentLiveActivity({
536-
title: "T3 Code",
537-
subtitle: "Agent work in progress",
538-
activeCount: 1,
539-
updatedAt: nowIso,
540-
activities: [
541-
{
542-
environmentId: "",
543-
threadId: "",
544-
projectTitle: input.projectTitle,
545-
threadTitle: input.threadTitle,
546-
modelTitle: "",
547-
phase: "starting",
548-
status: "Connecting",
549-
updatedAt: nowIso,
550-
deepLink: "/",
551-
},
552-
],
553-
}, liveActivityStaleDate());
535+
const activity = startAgentLiveActivity(
536+
{
537+
title: "T3 Code",
538+
subtitle: "Agent work in progress",
539+
activeCount: 1,
540+
updatedAt: nowIso,
541+
activities: [
542+
{
543+
environmentId: "",
544+
threadId: "",
545+
projectTitle: input.projectTitle,
546+
threadTitle: input.threadTitle,
547+
modelTitle: "",
548+
phase: "starting",
549+
status: "Connecting",
550+
updatedAt: nowIso,
551+
deepLink: "/",
552+
},
553+
],
554+
},
555+
liveActivityStaleDate(),
556+
);
554557
if (!activity) {
555558
return;
556559
}
@@ -1136,13 +1139,16 @@ export function refreshActiveLiveActivityRemoteRegistration(): Effect.Effect<
11361139
const aggregate = snapshot.aggregate;
11371140
const primed = yield* Effect.try({
11381141
try: () =>
1139-
startAgentLiveActivity({
1140-
title: aggregate.title,
1141-
subtitle: aggregate.subtitle,
1142-
activeCount: aggregate.activeCount,
1143-
updatedAt: aggregate.updatedAt,
1144-
activities: aggregate.activities,
1145-
}, liveActivityStaleDate()),
1142+
startAgentLiveActivity(
1143+
{
1144+
title: aggregate.title,
1145+
subtitle: aggregate.subtitle,
1146+
activeCount: aggregate.activeCount,
1147+
updatedAt: aggregate.updatedAt,
1148+
activities: aggregate.activities,
1149+
},
1150+
liveActivityStaleDate(),
1151+
),
11461152
catch: (cause) =>
11471153
new AgentAwarenessOperationError({
11481154
operation: "prime-live-activity",

0 commit comments

Comments
 (0)