mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Force stream out path to be absolute
This commit is contained in:
parent
3bf7ce2c25
commit
488585c2a1
1 changed files with 6 additions and 6 deletions
|
|
@ -50,8 +50,8 @@ fn list_sessions(control_path: &Path) -> Result<(), anyhow::Error> {
|
||||||
"status": session_info.status,
|
"status": session_info.status,
|
||||||
"exit_code": session_info.exit_code,
|
"exit_code": session_info.exit_code,
|
||||||
"started_at": session_info.started_at,
|
"started_at": session_info.started_at,
|
||||||
"stream-out": stream_out_path.to_string_lossy(),
|
"stream-out": stream_out_path.canonicalize().unwrap_or(stream_out_path.clone()).to_string_lossy(),
|
||||||
"stdin": stdin_path.to_string_lossy()
|
"stdin": stdin_path.canonicalize().unwrap_or(stdin_path.clone()).to_string_lossy()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Fallback to old behavior if JSON parsing fails
|
// Fallback to old behavior if JSON parsing fails
|
||||||
|
|
@ -62,8 +62,8 @@ fn list_sessions(control_path: &Path) -> Result<(), anyhow::Error> {
|
||||||
};
|
};
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"status": status,
|
"status": status,
|
||||||
"stream-out": stream_out_path.to_string_lossy(),
|
"stream-out": stream_out_path.canonicalize().unwrap_or(stream_out_path.clone()).to_string_lossy(),
|
||||||
"stdin": stdin_path.to_string_lossy()
|
"stdin": stdin_path.canonicalize().unwrap_or(stdin_path.clone()).to_string_lossy()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -75,8 +75,8 @@ fn list_sessions(control_path: &Path) -> Result<(), anyhow::Error> {
|
||||||
};
|
};
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"status": status,
|
"status": status,
|
||||||
"stream-out": stream_out_path.to_string_lossy(),
|
"stream-out": stream_out_path.canonicalize().unwrap_or(stream_out_path.clone()).to_string_lossy(),
|
||||||
"stdin": stdin_path.to_string_lossy()
|
"stdin": stdin_path.canonicalize().unwrap_or(stdin_path.clone()).to_string_lossy()
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue