We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76baea6 commit 160eeb6Copy full SHA for 160eeb6
crates/but-claude/src/bridge.rs
@@ -41,6 +41,7 @@ use std::{
41
sync::Arc,
42
};
43
use tokio::{
44
+ fs,
45
process::{Child, Command},
46
sync::{
47
Mutex,
@@ -399,6 +400,11 @@ async fn spawn_command(
399
400
if let Some(current_id) = current_id {
401
command.args(["--resume", &format!("{current_id}")]);
402
} else {
403
+ // Ensure that there isn't an existant invalid transcript
404
+ let path = Transcript::get_transcript_path(&project_path, session.id)?;
405
+ if fs::try_exists(&path).await? {
406
+ fs::remove_file(&path).await?;
407
+ }
408
command.args(["--session-id", &format!("{}", session.id)]);
409
}
410
0 commit comments