fix: incorrect function call handling with session in non-REPL (#777)

pull/778/head^2
LifetimeMistake 2 months ago committed by GitHub
parent 514a3689e8
commit 5c559f616a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -198,8 +198,6 @@ async fn start_directive(
.write()
.after_chat_completion(&input, &output, &tool_results)?;
config.write().exit_session()?;
if need_send_tool_results(&tool_results) {
start_directive(
config,
@ -207,10 +205,11 @@ async fn start_directive(
code_mode,
abort_signal,
)
.await
} else {
Ok(())
.await?;
}
config.write().exit_session()?;
Ok(())
}
async fn start_interactive(config: &GlobalConfig) -> Result<()> {

Loading…
Cancel
Save