Skip to content

Commit e8cd233

Browse files
IM.codesclaude
andcommitted
refactor: remove duplicate notifySessionIdle from hook callback
All idle sources (CC hook, codex watcher, terminal streamer) already emit timeline session.state events. The unified timeline listener handles notifySessionIdle for all of them, so the hook-server-specific call was redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6c84477 commit e8cd233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daemon/lifecycle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export async function startup(): Promise<DaemonContext> {
287287
const record = listSessions().find((s) => s.name === payload.session);
288288
const projectName = record?.projectName ?? payload.session;
289289
if (payload.event === 'idle') {
290-
notifySessionIdle(payload.session);
290+
// notifySessionIdle is handled by the unified timeline listener below
291291
serverLink.send({ type: 'session.idle', session: payload.session, project: projectName, agentType: payload.agentType });
292292
} else if (payload.event === 'notification') {
293293
serverLink.send({ type: 'session.notification', session: payload.session, project: projectName, title: payload.title, message: payload.message });

0 commit comments

Comments
 (0)