Skip to content

Commit 1312573

Browse files
committed
Set tool call timeout to 1d
1 parent dfba71d commit 1312573

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/but-claude/src/mcp.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ impl Mcp {
4343
#[tool(aggr)] request: McpPermissionRequest,
4444
) -> Result<CallToolResult, McpError> {
4545
let approved = self
46-
.approval_inner(request.clone().into(), std::time::Duration::from_secs(60))
46+
.approval_inner(
47+
request.clone().into(),
48+
std::time::Duration::from_secs(60 * 60 * 24),
49+
)
4750
.map_err(|e| McpError::internal_error(e.to_string(), None))?;
4851

4952
let result = Ok(McpPermissionResponse {
@@ -94,7 +97,7 @@ impl Mcp {
9497
let start_time = std::time::Instant::now();
9598
for item in rx {
9699
if start_time.elapsed() > timeout {
97-
eprintln!("Timeout waiting for permission approval (60 seconds)");
100+
eprintln!("Timeout waiting for permission approval (1 day)");
98101
break;
99102
}
100103
match item {

0 commit comments

Comments
 (0)