File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub struct CaptureManager {
3838 pub tag_to_index : HashMap < String , usize > ,
3939 pub num_turns : usize ,
4040 pub num_tools_this_turn : usize ,
41-
41+ // test
4242 pub last_user_message : Option < String > ,
4343 pub user_message_lock : bool ,
4444}
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ mod conversation;
55mod input_source;
66mod message;
77mod parse;
8- use std:: path:: {
9- MAIN_SEPARATOR ,
10- PathBuf ,
11- } ;
8+ use std:: path:: MAIN_SEPARATOR ;
129pub mod capture;
1310mod line_tracker;
1411mod parser;
@@ -149,7 +146,6 @@ use crate::cli::agent::Agents;
149146use crate :: cli:: chat:: capture:: {
150147 CAPTURE_MESSAGE_MAX_LENGTH ,
151148 CaptureManager ,
152- SHADOW_REPO_DIR ,
153149 truncate_message,
154150} ;
155151use crate :: cli:: chat:: cli:: SlashCommand ;
@@ -175,6 +171,7 @@ use crate::telemetry::{
175171 TelemetryResult ,
176172 get_error_reason,
177173} ;
174+ use crate :: util:: directories:: get_shadow_repo_dir;
178175use crate :: util:: {
179176 MCP_SERVER_TOOL_DELIMITER ,
180177 directories,
@@ -1333,9 +1330,9 @@ impl ChatSession {
13331330 }
13341331
13351332 // Initialize checkpointing if possible
1336- let path = PathBuf :: from ( SHADOW_REPO_DIR ) . join ( self . conversation . conversation_id ( ) ) ;
1333+ let path = get_shadow_repo_dir ( os , self . conversation . conversation_id ( ) . to_string ( ) ) ? ;
13371334 let start = std:: time:: Instant :: now ( ) ;
1338- let capture_manager = match CaptureManager :: auto_init ( os, path) . await {
1335+ let capture_manager = match CaptureManager :: auto_init ( os, & path) . await {
13391336 Ok ( manager) => {
13401337 execute ! (
13411338 self . stderr,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub enum DirectoryError {
4343type Result < T , E = DirectoryError > = std:: result:: Result < T , E > ;
4444
4545const WORKSPACE_AGENT_DIR_RELATIVE : & str = ".amazonq/cli-agents" ;
46- const GLOBAL_SHADOW_REPO_DIR : & str = ".aws/. amazonq/cli-captures" ;
46+ const GLOBAL_SHADOW_REPO_DIR : & str = ".aws/amazonq/cli-captures" ;
4747const GLOBAL_AGENT_DIR_RELATIVE_TO_HOME : & str = ".aws/amazonq/cli-agents" ;
4848const CLI_BASH_HISTORY_PATH : & str = ".aws/amazonq/.cli_bash_history" ;
4949
You can’t perform that action at this time.
0 commit comments