Fix TCP API RX.DIRECTED to match DIRECTED.txt output#176
Conversation
The value field in RX.DIRECTED messages was using the formatted 'text' variable which includes the FROM callsign prefix. When TCP clients reconstruct messages as "FROM: value", this resulted in duplicate callsigns (e.g., "W9TEK: W9TEK: KC1QKM SNR -05"). Changed the value parameter from 'text' to 'd.text' (the raw message body without FROM prefix) to match the TEXT parameter behavior. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
FROM prefix The previous fix incorrectly used d.text which is empty for simple directed messages. This fix properly constructs valueWithoutFrom from the message components (d.to, d.cmd, d.extra, d.text).
Both value and TEXT fields now contain the message body without the FROM prefix, making the API consistent and useful for clients. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Didn't read this quite as well as I meant to.
|
Why do you want the EOT character in the API feed? |
|
As you know, I’ve been working to fix an issue with duplicate callsigns in the API feed. My first attempt didn’t resolve the problem (#123). The second attempt did eliminate the duplicate callsigns by introducing a second variable, but it also removed the EOT character, which had always been present in the API output.
After reviewing the logic again, I realized the second variable wasn’t necessary. I refactored the code back to a single variable, which restores the EOT character while still addressing the original issue. I haven’t tested this version yet, but I’m confident it should work. I’ll verify it tonight when I get home.
…On Friday, January 30th, 2026 at 4:35 PM, Wyatt Miler ***@***.***> wrote:
wmiler left a comment [(JS8Call-improved/JS8Call-improved#176)](#176 (comment))
Why do you want the EOT character in the API feed?
—
Reply to this email directly, [view it on GitHub](#176 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACDJQ7GJVDLZ6BOEVQ3WC7L4JPFALAVCNFSM6AAAAACTK6VY7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQMRVHA3DSOBQHE).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Ah, ok, gotcha. |
|
I tested the changes I made for duplicate callsigns and everything is working as expected.
…On Friday, January 30th, 2026 at 5:24 PM, Wyatt Miler ***@***.***> wrote:
wmiler left a comment [(JS8Call-improved/JS8Call-improved#176)](#176 (comment))
> As you know, I’ve been working to fix an issue with duplicate callsigns in the API feed. My first attempt didn’t resolve the problem ([#123](#123)). The second attempt did eliminate the duplicate callsigns by introducing a second variable, but it also removed the EOT character, which had always been present in the API output. After reviewing the logic again, I realized the second variable wasn’t necessary. I refactored the code back to a single variable, which restores the EOT character while still addressing the original issue. I haven’t tested this version yet, but I’m confident it should work. I’ll verify it tonight when I get home.
Ah, ok, gotcha.
—
Reply to this email directly, [view it on GitHub](#176 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACDJQ7H6SRSXNEXUSDFBYXT4JPK2TAVCNFSM6AAAAACTK6VY7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQMRWGA3TQOJXGA).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
Merged. Thanks! |
Summary
baseTextvariable with clear comments explaining the data flowProblem
When JS8Call sends directed messages via TCP API, there were two issues:
Solution
Refactored to use a single
baseTextvariable:baseTextcontains"TO CMD EXTRA TEXT [eot]"(used for TCP API where FROM is a separate JSON field)textcontains"FROM: TO CMD EXTRA TEXT [eot]"(used for DIRECTED.txt file and UI display)This ensures the eot character is applied once and consistently appears in both outputs, while keeping FROM out of the VALUE/TEXT fields.
Test plan
FROM: TO CMD EXTRA TEXT ♢TO CMD EXTRA TEXT ♢(no FROM prefix, includes eot)🤖 Generated with Claude Code