Repository navigation
Fix AUP4 save path and file filter - #12123
Conversation
Findings
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Advanced
Run ID: 5577a1c3-cd96-4eac-9c7c-d71a8ca4010e
📒 Files selected for processing (6)
src/project/CMakeLists.txtsrc/project/internal/opensaveprojectscenario.cppsrc/project/internal/projectpathutils.cppsrc/project/internal/projectpathutils.hsrc/project/tests/CMakeLists.txtsrc/project/tests/projectpathutils_tests.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
@embarc-gabriel please review |
| std::vector<std::string> filter { | ||
| muse::trc("project", "Audacity 4 files") + " (*.aup4)" | ||
|
|
||
| #ifdef Q_OS_MAC |
There was a problem hiding this comment.
@iibaranov-IG thanks for your interest in audacity.
In fact, the problem here is the filter is ill-formed. We are passing (.aup4) () and this way selectSavignFileSync is not working as expected.
If we pass only (*.aup4) we don't need the string processing as far as I could tell.
Could you check if removing lines 188 to 192 fixes the issue on your end without extra code?
|
Yes — I checked exactly that simpler variant independently before replying.
In BCL I replaced the helper with the direct filter:
`muse::trc("project", "Audacity 4 files") + " (*.aup4)"`
and removed the extra filter helper. The focused rework passed,
including strict C++17 compilation and the separate
filename-normalisation regression (`.aup4.aup4` / hidden `.aup4`
cases).
BCL run #154: https://github.com/iibaranov-IG/broadcast-control-lab/actions/runs/35074109943
So your diagnosis is correct: the save-dialog filter itself does not
need the extra string-processing helper. I have not marked the PR
branch as reworked yet; this reply is only confirming the tested
result.
…On Tue, 15 Sep 2026 04:12:03 -0700, embarc-gabriel ***@***.***> wrote:
@embarc-gabriel commented on this pull request.
In [src/project/internal/opensaveprojectscenario.cpp](#12123 (comment)):
> @@ -183,13 +184,7 @@ RetVal<muse::io::path_t> OpenSaveProjectScenario::askLocalPath(IAudacityProjectP
muse::io::path_t defaultPath = configuration()->defaultSavingFilePath(project, filenameAddition);
std::vector<std::string> filter {
- muse::trc("project", "Audacity 4 files") + " (*.aup4)"
-
-#ifdef Q_OS_MAC
***@***.***(https://github.com/iibaranov-IG) thanks for your interest in audacity.
In fact, the problem here is the filter is ill-formed. We are passing (.aup4) () and this way selectSavignFileSync is not working as expected.
If we pass only (*.aup4) we don't need the string processing as far as I could tell.
Could you check if removing lines 188 to 192 fixes the issue on your end without extra code?
—
Reply to this email directly, [view it on GitHub](#12123?email_source=notifications&email_token=CES56AOLK4K3A4HJEKIV5WT5PEPYHA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQHEYTSNBXHEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#pullrequestreview-5209194792), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/CES56AMP5Z6KRUGNBKLQTCL5PEPYHAVCNFSNUABEKJSXA33TNF2G64TZHMZTEOJSGE3TGNR3JFZXG5LFHM2TIMZQGA4DSMRTHCQXMAQ).
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for [iOS](https://github.com/notifications/mobile/ios/CES56AMSAIWYNUNKMRMS6DL5PEPYHA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQHEYTSNBXHEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y) and [Android](https://github.com/notifications/mobile/android/CES56AK65G6DDVPZ3XR4JGD5PEPYHA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQHEYTSNBXHEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI). Download it today!
You are receiving this because you were mentioned.
|
59ed289 to
3c453ea
Compare
Pass only "(*.aup4)" in the save dialog filter. The extra "(*)" / "(*.)" entry made the filter ill-formed, which caused the duplicated extension. Assisted-By: Claude Sonnet 5.5 <[email protected]>
3c453ea to
17c1127
Compare
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI (base), Organization UI (inherited)
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1a8f1e45-2dc3-4d20-9358-d7b5c80972df
Files selected for processing: 3-
src/au3wrap/internal/au3project.cppsrc/project/internal/opensaveprojectscenario.cppsrc/project/internal/opensaveprojectscenario.h
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
Assisted-by: Claude Code
Assisted-by: Claude Code
17c1127 to
fc5884a
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Remove repeated AUP4 extensions. · opensaveprojectscenario.cpp:198-199
src/project/internal/opensaveprojectscenario.cpp:198-199
Minor · Functional Correctness · Quick win Remove repeated AUP4 extensions.
If the dialog returns
song.aup4.aup4, this code removes and re-adds only the last suffix. The result remainssong.aup4.aup4, contrary to the requested normalization. Collapse repeated.aup4suffixes before returning the path.

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI (base), Organization UI (inherited)
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1b67f6d8-c4e9-4218-a8b8-ad8609867439
Files selected for processing: 6-
au3/libraries/au3-project-file-io/ProjectFileIO.cppau3/libraries/au3-project-file-io/ProjectFileIO.hsrc/au3wrap/internal/au3project.cppsrc/project/internal/opensaveprojectscenario.cppsrc/project/internal/projectprovider.hsrc/project/types/projecttypes.h
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
Assisted-by: Claude Code
fc5884a to
b7d4d96
Compare
b7d4d96 to
b3bec8e
Compare
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI (base), Organization UI (inherited)
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7d71a964-a5fa-4d0d-bfe7-69882bfe2232
Files selected for processing: 1-
src/project/internal/opensaveprojectscenario.cpp
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
Fix the AUP4 save path and Save As filter. Includes the AU3 translations for the new error message.
Resolves: #12117
Resolves: #12105
Resolves: #12572
Resolves: #12405
This change centralizes AUP4 save-path and file-filter handling:
.aup4suffixes and replaces unrelated extensions before saving;Audacity 4 files (*.aup4)filter so AUP4 files remain visible in the Windows Save As dialog;Validation:
-Wall -Wextra -Werror;A full Audacity application build was not run locally.