huskies: merge 927
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user