You could just avoid using `dialogs_show_save_as()` and implement it manually similarly to e.g. `target_directory_button_clicked_cb()` but for saving files in this case (note the changes related to #3861 - if you copy the code of `target_directory_button_clicked_cb()` and modify it, you can reuse `file_chooser_run()` and `file_chooser_destroy()`).
i could try, but this would anyway be used only when we try to close temp file tab and chose save-as. But when user just tries to save-as temp file using menu - it will still be opening on temp folder