huskies: merge 927

This commit is contained in:
dave
2026-05-12 17:49:44 +00:00
parent b8945654bf
commit 03a99b3cf1
33 changed files with 119 additions and 25 deletions
+1
View File
@@ -409,6 +409,7 @@ pub async fn swap_to_next_available_account(
///
/// Returns the URL portion when the error indicates missing or expired credentials,
/// `None` otherwise.
#[allow(clippy::string_slice)] // start + marker.len() is after the ASCII marker found by find() → valid boundary
pub fn extract_login_url_from_error(err: &str) -> Option<&str> {
let marker = "Please log in: ";
let start = err.find(marker)?;
@@ -182,6 +182,7 @@ impl ClaudeCodeProvider {
/// via `--permission-prompt-tool`. Claude Code calls the MCP tool when it
/// needs user approval, and the server bridges the request to the frontend.
#[allow(clippy::too_many_arguments)]
#[allow(clippy::string_slice)] // end is walked to a char boundary before slicing &trimmed[..end]
fn run_pty_session(
user_message: &str,
cwd: &str,
+1
View File
@@ -43,6 +43,7 @@ impl OllamaProvider {
}
/// Streaming chat that calls `on_token` for each token chunk.
#[allow(clippy::string_slice)] // newline_pos from find('\n'); '\n' is ASCII so pos and pos+1 are valid
pub async fn chat_stream<F>(
&self,
model: &str,