Skip to content

Commit 0b5c825

Browse files
committed
fix(pulse-monitor): prevent false positive stalled detection after tool execution
Remove forced monitoring restart in tool.execute.after to avoid false positive stalled session detection when LLM legitimately completes response after tool run. Monitoring now resumes naturally on next session/message event. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent 66fcd85 commit 0b5c825

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/hooks/pulse-monitor.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@ export function createPulseMonitorHook(ctx: PluginInput) {
132132
// Pause monitoring while tool runs locally (tools can take time)
133133
stopMonitoring()
134134
},
135-
"tool.execute.after": async (input: { sessionID: string }) => {
136-
// Resume monitoring after tool finishes
137-
if (input.sessionID) {
138-
startMonitoring(input.sessionID)
139-
}
135+
"tool.execute.after": async (_input: { sessionID: string }) => {
136+
// Don't forcefully restart monitoring here to avoid false positives
137+
// Monitoring will naturally resume when next session/message event arrives
138+
// This prevents stalled detection on legitimately idle sessions
140139
}
141140
}
142141
}

0 commit comments

Comments
 (0)