Implement auth for edit_file_tool
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
parent
294109c6da
commit
da5f2978fd
3 changed files with 55 additions and 57 deletions
|
@ -103,7 +103,7 @@ impl AgentTool for ToolRequiringPermission {
|
|||
event_stream: ToolCallEventStream,
|
||||
cx: &mut App,
|
||||
) -> Task<Result<String>> {
|
||||
let auth_check = event_stream.authorize("Authorize?");
|
||||
let auth_check = event_stream.authorize("Authorize?".into());
|
||||
cx.foreground_executor().spawn(async move {
|
||||
auth_check.await?;
|
||||
Ok("Allowed".to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue