Skip to content

Commit 20a66cb

Browse files
committed
Fix trpcVanilla references to use trpcClient
1 parent 48fc317 commit 20a66cb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/code/src/renderer/features/sessions/service/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ export class SessionService {
125125

126126
constructor() {
127127
this.idleKilledSubscription =
128-
trpcVanilla.agent.onSessionIdleKilled.subscribe(undefined, {
129-
onData: (event) => {
128+
trpcClient.agent.onSessionIdleKilled.subscribe(undefined, {
129+
onData: (event: { taskRunId: string }) => {
130130
const { taskRunId } = event;
131131
log.info("Session idle-killed by main process", { taskRunId });
132132
this.unsubscribeFromChannel(taskRunId);
133133
sessionStoreSetters.removeSession(taskRunId);
134134
},
135-
onError: (err) => {
135+
onError: (err: unknown) => {
136136
log.debug("Idle-killed subscription error", { error: err });
137137
},
138138
});

apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ export function TaskLogsPanel({ taskId, task }: TaskLogsPanelProps) {
133133
}, [taskId, requestFocus]);
134134

135135
useEffect(() => {
136-
trpcVanilla.agent.reportActivity.mutate({ taskId }).catch(() => {});
136+
trpcClient.agent.reportActivity.mutate({ taskId }).catch(() => {});
137137
const heartbeat = setInterval(
138138
() => {
139-
trpcVanilla.agent.reportActivity.mutate({ taskId }).catch(() => {});
139+
trpcClient.agent.reportActivity.mutate({ taskId }).catch(() => {});
140140
},
141141
5 * 60 * 1000,
142142
);

0 commit comments

Comments
 (0)