Skip to content

Commit 3f2feb3

Browse files
committed
feat: show working directory in session start message
1 parent 2e2523e commit 3f2feb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/handler/command.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,20 @@ pub async fn handle_command(
122122
.create_session(
123123
ts.to_string(),
124124
agent_name.to_string(),
125-
workspace,
125+
workspace.clone(),
126126
channel.to_string(),
127127
session_id,
128128
)
129129
.await
130130
{
131131
Ok(_) => {
132+
let workspace_path =
133+
workspace.unwrap_or_else(|| config.bridge.default_workspace.clone());
132134
let _ = slack
133135
.send_message(
134136
channel,
135137
Some(ts),
136-
&format!("Session started with agent: {}. Send messages in this thread to chat.\n\n{}", agent_name, HELP_MESSAGE),
138+
&format!("Session started with agent: `{}`.\nWorking directory: `{}`\nSend messages in this thread to interact with it.\n\n{}", agent_name, workspace_path, HELP_MESSAGE),
137139
)
138140
.await;
139141
}

0 commit comments

Comments
 (0)