Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/rustyclaw-core/src/gateway/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async fn handle_connection(
let user_prompt_rx = Arc::new(Mutex::new(user_prompt_rx));

// Channel for model task responses (concurrent execution).
let (model_task_tx, mut model_task_rx) = concurrent::channel();
let (_model_task_tx, mut model_task_rx) = concurrent::channel();

// Track active model tasks per thread.
let mut active_tasks = concurrent::ActiveTasks::new();
Expand Down
2 changes: 1 addition & 1 deletion crates/rustyclaw-core/src/gateway/thinking_clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use serde::{Deserialize, Serialize};
use std::time::Duration;
use tokio_util::sync::CancellationToken;
use tracing::{debug, info, warn};
use tracing::{debug, info};

/// Configuration for the Thinking Clock.
#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
5 changes: 3 additions & 2 deletions crates/rustyclaw-core/src/threads/manager.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Thread manager — manages all agent threads.

use super::{AgentThread, MessageRole, ThreadEvent, ThreadId, ThreadInfo, ThreadKind, ThreadStatus};
use super::{AgentThread, MessageRole, ThreadEvent, ThreadId, ThreadInfo, ThreadStatus};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::path::Path;
use std::sync::Arc;
use std::time::{Duration, SystemTime};
use tokio::sync::{broadcast, RwLock};
use tracing::{debug, warn};
use tracing::debug;

/// Configuration for thread management.
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -540,6 +540,7 @@ pub type SharedThreadManager = Arc<RwLock<ThreadManager>>;
#[cfg(test)]
mod tests {
use super::*;
use crate::threads::ThreadKind;

#[test]
fn test_create_chat_thread() {
Expand Down
8 changes: 4 additions & 4 deletions crates/rustyclaw-core/src/threads/subtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct SubtaskHandle<T: Send + 'static> {
thread_mgr: SharedThreadManager,

/// The underlying tokio JoinHandle (for abort).
join_handle: Option<tokio::task::JoinHandle<()>>,
_join_handle: Option<tokio::task::JoinHandle<()>>,
}

impl<T: Send + 'static> SubtaskHandle<T> {
Expand Down Expand Up @@ -243,7 +243,7 @@ where
cancel_token,
result_rx: Some(result_rx),
thread_mgr,
join_handle: Some(join_handle),
_join_handle: Some(join_handle),
}
}

Expand Down Expand Up @@ -321,7 +321,7 @@ where
cancel_token,
result_rx: Some(result_rx),
thread_mgr,
join_handle: Some(join_handle),
_join_handle: Some(join_handle),
}
}

Expand Down Expand Up @@ -396,7 +396,7 @@ where
cancel_token,
result_rx: Some(result_rx),
thread_mgr,
join_handle: Some(join_handle),
_join_handle: Some(join_handle),
}
}

Expand Down
Loading