GeezerVison is showing github.com — CWX: {CALL} placeholder in macros is not restored after restarting AetherSDR · Issue #7623 · aethersdr/AetherSDR
CWX: {CALL} placeholder in macros is not restored after restarting AetherSDR #7623Labels CWCW keying, decode, and operationSmartLinkSmartLink WAN remote connectionbugSomething isn't workingmaintainer-reviewRequires maintainer review before any action is taken DescriptionReport preparation
- I used the AI-assisted bug report tool (Help → Support → File an Issue)
- I have attached a support bundle or log file
What happened?
F2 now shows 5NN 5NN KP3B and F3 shows TU EE — the text stored in the radio, without {CALL}. The {CALL} version is not restored after a full program restart.
Notes: The {CALL} feature is new in v26.11.4 (#7213), following my request in #7024. Thank you for adding it — this report is about the placeholder not surviving an app restart.
What did you expect?
Per the CWX documentation ("AetherSDR keeps a {CALL} macro as you wrote it, for this radio, on this computer"), F2 and F3 should still show the macros with {CALL} after restarting, as long as the radio's slots hold the same text without the placeholder. No other client changed the radio's slots in between.
Steps to reproduce
- Connect to the radio.
- Open the CWX panel → Setup.
- Set F2 to
{CALL} 5NN 5NN KP3B and F3 to {CALL} TU EE.
- Fill the DX call box (double-click a callsign in the CW decoder) and fire F2. The macro keys correctly with the callsign substituted — the feature works during the session (I made a QSO this way).
- Quit AetherSDR completely and relaunch it; reconnect to the same radio.
- Open CWX → Setup again.
AetherSDR version
v26.11.4
Radio model & firmware
FLEX-6400, firmware 4.1.5
Operating system
Windows
OS version and hardware
Windows — connection: SmartLink (the macros were entered while connected) Activityaethersdr-agent commented on Nov 27, 2026 Thanks for the clear repro. The detail that you entered the macros over SmartLink is what explains it. The {CALL} text was never written to disk in that session, so a restart has nothing to bring back. This is a SmartLink-only gap, not a problem in the {CALL} matching logic.
Root cause
The typed {CALL} text is stored per radio, keyed by the radio's serial:
src/core/CwxMacroTemplateSettings.h — load() and save() both return early when scope.radioId().isEmpty(). Neither logs a warning in that case.
src/models/RadioModel.cpp:2723-2731 wires them to settingsScope().
src/models/RadioModel.h:1773 — settingsScope() takes its radio id from serial(), which is m_lastInfo.serial (RadioModel.cpp:11676).
m_lastInfo is only assigned on the LAN path (RadioModel.cpp:4211). connectViaWan() (RadioModel.cpp:4287) never sets it; the code says so itself at :2872 and :9000. On a fresh launch that goes straight to SmartLink:
serial() is empty, so settingsScope() has no radio id.
saveMacro() (CwxModel.cpp:483) does the two things that work: it keeps the typed text in memory (m_macros[idx], which is why your QSO worked) and sends the version without the placeholder to the radio. The call to CwxMacroTemplateSettings::save() returns false without saving anything.
- After a restart,
macroTextFor() (CwxModel.cpp:510) gets nothing back from load(), so F2/F3 show the radio's plain text.
The text comparison itself is fine: {CALL} 5NN 5NN KP3B reduces to 5NN 5NN KP3B, which matches what the radio reports.
The same empty scope also affects every other radio-scoped setting over SmartLink: operating-state memory (:434/:648), the backend settings scope (:634), ClientDisplay (:6610) and TX timeout (RadioModel_TxTimeout.cpp). A second, related problem: if a LAN session ran earlier in the same process, m_lastInfo.serial still holds that LAN radio's serial, so a later WAN session would save under the wrong radio.
Proposed fix (RadioModel)
-
Give WAN sessions a radio id. When m_wanConn is set, settingsScope() should use the WAN radio's serial instead of m_lastInfo.serial. Two candidates:
- pass
m_pendingWanRadio.serial from MainWindow_Session.cpp:1206 into connectViaWan(), or
- fall back to
m_chassisSerial, which the info reply fills in at RadioModel.cpp:7963.
Before choosing, check that the SmartLink list serial and chassis_serial use the same format as the LAN discovery serial. If they do, LAN and WAN sessions on the same radio share one settings document, as the docs promise.
-
Re-apply once the scope is known. If macroN= status arrives before the id is resolved (the info reply on WAN), macroTextFor() has already fallen back to the radio's text. Fix: re-run macroTextFor() over the current slots and emit macroChanged, plus re-run the other scope-dependent loads, when the WAN id becomes available.
-
Don't drop failed saves silently. Log a qWarning when save() exits early because the radio id is empty.
-
Test: a WAN-shaped connect (no m_lastInfo, serial from the WAN path) that saves {CALL} TU EE, then a fresh model that receives macro3="TU EE". The test passes when the slot shows {CALL} TU EE.
Workaround until fixed
Connect once over LAN, re-enter the {CALL} macros in CWX → Setup, and save. They are then stored under the radio's serial. Whether they show up on a later SmartLink session depends on fix item 1, because today the WAN session can't find them.
Handoff summary
- Known: over SmartLink,
settingsScope() has no radio id because connectViaWan() never fills m_lastInfo. CWX {CALL} templates (and other radio-scoped settings) are silently not saved or loaded.
- Fix: give
settingsScope() a WAN radio id (m_pendingWanRadio.serial or m_chassisSerial, same format as the LAN serial), and re-apply the stored templates once that id is known.
- Why it matters: the documented "kept for this radio, on this computer" promise silently fails for SmartLink users.
🤖 aethersdr-agent · cost: $0.7088 · model: claude-opus-5-5
📍 Citation health check (Foundry Constitution Principle I): 2 resolved, 7 unresolved against /Users/aetherclaude/workspace/AetherSDR at origin/main.
Unresolved citations (7)
| Citation |
Reason |
CwxModel.cpp:483 |
file not found in workspace |
CwxModel.cpp:510 |
file not found in workspace |
MainWindow_Session.cpp:1206 |
file not found in workspace |
RadioModel.cpp:11676 |
file not found in workspace |
RadioModel.cpp:4211 |
file not found in workspace |
RadioModel.cpp:4287 |
file not found in workspace |
RadioModel.cpp:7963 |
file not found in workspace |
MetadataMetadataCWCW keying, decode, and operationSmartLinkSmartLink WAN remote connectionbugSomething isn't workingmaintainer-reviewRequires maintainer review before any action is taken DevelopmentNo branches or pull requestsIssue actions
|