feat(cli): add --debug flag to goose session / run (#1564)

This commit is contained in:
Kalvin C
2025-03-06 18:58:25 -08:00
committed by GitHub
parent 798d657e7e
commit 7b37ab0b52
5 changed files with 91 additions and 40 deletions

View File

@@ -15,6 +15,7 @@ pub async fn build_session(
resume: bool,
extensions: Vec<String>,
builtins: Vec<String>,
debug: bool,
) -> Session {
// Load config and get provider/model
let config = Config::global();
@@ -92,7 +93,7 @@ pub async fn build_session(
};
// Create new session
let mut session = Session::new(agent, session_file.clone());
let mut session = Session::new(agent, session_file.clone(), debug);
// Add extensions if provided
for extension_str in extensions {