Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/azd/extensions/azure.ai.agents/internal/cmd/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ Agent details are automatically resolved from the azd environment.`,
return err
}

remotePath := ""
remotePath := "/"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately at the moment the service doesn't seem to actually have a default root

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recent messaging is that the service may be adding a default, leaving this open until I get more details

if len(args) > 0 {
remotePath = args[0]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ func TestFilesListCommand_OptionalRemotePath(t *testing.T) {
assert.NotNil(t, cmd.Args)
}

func TestFilesListCommand_DefaultPathIsRoot(t *testing.T) {
cmd := newFilesListCommand()

// The Use line should show [remote-path] as optional with "/" as default behavior.
Comment thread
trangevi marked this conversation as resolved.
Outdated
Comment thread
trangevi marked this conversation as resolved.
Outdated
assert.Equal(t, "list [remote-path]", cmd.Use)
assert.Contains(t, cmd.Long, "lists the root directory")
}

func TestFilesDeleteCommand_MissingFile(t *testing.T) {
cmd := newFilesRemoveCommand()

Expand Down
Loading