Skip to content

Commit 891f566

Browse files
committed
fix: Claude Notification
1 parent bf32d80 commit 891f566

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/services/ws/stable/claude.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,17 @@ async fn run_session(
663663
{
664664
Ok(_) => {}
665665
Err(SendStateError::ClientError) => {
666-
run_session_state.notify.mark();
666+
if !matches!(
667+
run_session_state.cc_session.state,
668+
cc_session::ClaudeCodeState::Idle
669+
) {
670+
run_session_state.notify.mark();
671+
} else {
672+
log::info!(
673+
"Claude session {} client disconnected during idle state, ending session",
674+
id
675+
);
676+
}
667677
}
668678
Err(SendStateError::ClaudeError) => {
669679
return Err(anyhow::anyhow!(

0 commit comments

Comments
 (0)