@@ -17,7 +17,7 @@ use std::sync::mpsc::Sender;
17use uuid::Uuid;
17use uuid::Uuid;
19use crate::{
19use crate::{
20− session_manager::INSTANCE_DIR_NAME,
20+ session_manager::{GLOBAL_DIR_NAME, INSTANCE_DIR_NAME},
21 tui::{self, AppState},
21 tui::{self, AppState},
22 vm::{self, DirectoryShare, LoginAction, VmInput},
22 vm::{self, DirectoryShare, LoginAction, VmInput},
@@ -25,7 +25,6 @@ use crate::{
25const INSTANCE_TOML: &str = "instance.toml";
25const INSTANCE_TOML: &str = "instance.toml";
26const SSH_KEY_NAME: &str = "ssh_key";
26const SSH_KEY_NAME: &str = "ssh_key";
27const SERIAL_LOG_NAME: &str = "serial.log";
27const SERIAL_LOG_NAME: &str = "serial.log";
28−const SSH_GUEST_DIR: &str = "/root/.vibebox";
29const DEFAULT_SSH_USER: &str = "vibecoder";
28const DEFAULT_SSH_USER: &str = "vibecoder";
30const SSH_CONNECT_RETRIES: usize = 30;
29const SSH_CONNECT_RETRIES: usize = 30;
31const SSH_CONNECT_DELAY_MS: u64 = 500;
30const SSH_CONNECT_DELAY_MS: u64 = 500;
@@ -66,14 +65,16 @@ pub fn run_with_ssh(
67 let config = Arc::new(Mutex::new(config));
66 let config = Arc::new(Mutex::new(config));
68+ let ssh_guest_dir = format!("/root/{}", GLOBAL_DIR_NAME);
69 let extra_shares = vec![DirectoryShare::new(
70 let extra_shares = vec![DirectoryShare::new(
70 instance_dir.clone(),
71 instance_dir.clone(),
71− SSH_GUEST_DIR.into(),
72+ ssh_guest_dir.clone().into(),
75 let extra_login_actions =
76 let extra_login_actions =
76− build_ssh_login_actions(&config, &project_name, SSH_GUEST_DIR, SSH_KEY_NAME);
77+ build_ssh_login_actions(&config, &project_name, ssh_guest_dir.as_str(), SSH_KEY_NAME);
78 vm::run_with_args_and_extras(
79 vm::run_with_args_and_extras(