fix: address compilation issue in main (#6776)
This commit is contained in:
@@ -30,7 +30,7 @@ fn truncate_with_ellipsis(s: &str, max_len: usize) -> String {
|
||||
|
||||
fn parse_cli_flag_extensions(
|
||||
extensions: &[String],
|
||||
streamable_http_extensions: &[String],
|
||||
streamable_http_extensions: &[StreamableHttpOptions],
|
||||
builtins: &[String],
|
||||
) -> Vec<(String, ExtensionConfig)> {
|
||||
let mut extensions_to_load = Vec::new();
|
||||
@@ -55,9 +55,9 @@ fn parse_cli_flag_extensions(
|
||||
}
|
||||
}
|
||||
|
||||
for (idx, ext_str) in streamable_http_extensions.iter().enumerate() {
|
||||
let config = CliSession::parse_streamable_http_extension(ext_str);
|
||||
let hint = truncate_with_ellipsis(ext_str, EXTENSION_HINT_MAX_LEN);
|
||||
for (idx, opts) in streamable_http_extensions.iter().enumerate() {
|
||||
let config = CliSession::parse_streamable_http_extension(&opts.url, opts.timeout);
|
||||
let hint = truncate_with_ellipsis(&opts.url, EXTENSION_HINT_MAX_LEN);
|
||||
let label = format!("http #{}({})", idx + 1, hint);
|
||||
extensions_to_load.push((label, config));
|
||||
}
|
||||
@@ -580,7 +580,6 @@ pub async fn build_session(session_config: SessionBuilderConfig) -> CliSession {
|
||||
)
|
||||
.await;
|
||||
|
||||
|
||||
if let Err(e) = session
|
||||
.agent
|
||||
.persist_extension_state(&session_id.clone())
|
||||
|
||||
Reference in New Issue
Block a user