Repository navigation
Conversation
Normalize cross-swarm notification and injected-message titles and bodies through one parser. Keep the swarm label in the canonical title for deduplication, but use only the sender name for its emoji. Add event-handler and history-rendering regressions for duplicate suppression, quoted labels, delimiter-containing bodies, and distinct swarm identities. Fixes 1jehuang#1911
anateus
force-pushed
the
fix/cross-swarm-dm-normalization
branch
from
October 22, 2026 01:46
52827eb to
3c69798
Compare
xenking
added a commit
to xenking/jcode
that referenced
this pull request
Nov 22, 2026
Pair the receipt and model delivery so the transcript keeps the sender’s summary and icon. Keep identical messages from different swarms separate. Ports 1jehuang#1912 Co-authored-by: Michael Katsevman <[email protected]>
xenking
added a commit
to xenking/jcode
that referenced
this pull request
Nov 22, 2026
Upstream-PR: 1jehuang#1357 Upstream-PR-Commit: 1jehuang#1357 0da5e81 Upstream-PR: 1jehuang#1362 Upstream-PR-Commit: 1jehuang#1362 5962058 Upstream-PR: 1jehuang#1486 Upstream-PR-Commit: 1jehuang#1486 fadc624 Upstream-PR: 1jehuang#1733 Upstream-PR-Commit: 1jehuang#1733 01f3415 Upstream-PR: 1jehuang#1750 Upstream-PR-Commit: 1jehuang#1750 1ac0c82 Upstream-PR: 1jehuang#1822 Upstream-PR-Commit: 1jehuang#1822 73f85fc Upstream-PR: 1jehuang#1912 Upstream-PR-Commit: 1jehuang#1912 36d7682 Upstream-PR: 1jehuang#1978 Upstream-PR-Commit: 1jehuang#1978 0f55643 Upstream-PR: 1jehuang#2007 Upstream-PR-Commit: 1jehuang#2007 638f87c Upstream-PR: 1jehuang#2213 Upstream-PR-Commit: 1jehuang#2213 c5e1487 Upstream-PR: 1jehuang#2234 Upstream-PR-Commit: 1jehuang#2234 0d4d5d4 Upstream-PR: 1jehuang#2266 Upstream-PR-Commit: 1jehuang#2266 217ddc2 Upstream-PR: 1jehuang#2267 Upstream-PR-Commit: 1jehuang#2267 e98c40b
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1911: cross-swarm DMs appeared once as a notification and again when the queued message was injected, with the second row using
💫instead of the sender's emoji.Both presentation paths now use the same parser for the quoted cross-swarm wrapper. The canonical title retains the swarm label, so identical sender names and bodies from different swarms remain distinct. Only the emoji lookup removes that suffix. Parsing also handles colons inside labels without consuming delimiter-like text from the body.
The regressions use synthetic notification/injection events and cover long bodies with a supplied summary, injected-only and restored messages, distinct senders and swarms, and the existing whitespace-name rejection. Message delivery, provider transport, and the recent-card deduplication policy are unchanged. This does not add delivery IDs or an exactly-once protocol.
Verification
cargo test -p jcode-tui --lib cross_swarm_dm --offline --locked -- --test-threads=1: 2 passed.cargo test -p jcode-tui --lib tui::app::remote --offline --locked -- --test-threads=1: 110 passed.cargo fmt --all -- --checkandgit diff --check: passed.JCODE_HOME, a short scratchTMPDIR, andCOLORTERM=truecolor.The remaining failure is
idle_hibernation_frozen_frames_do_not_repopulate_prepared_caches, atscreen.contains("private mem"). I reproduced the same assertion with both production files restored byte-for-byte to base commitc607a88a9, selecting only that test. The added cross-swarm tests remained present but weren't selected for the comparison.Full-suite command:
COLORTERM=truecolor cargo test -p jcode-tui --lib --offline --locked -- \ --test-threads=1 \ --skip test_prompt_entry_shimmer_color_moves_across_positions \ --skip right_fact_stack_uses_neutral_gray_except_for_context_usageThe full suite is not green locally. Before merging, the idle-cache failure needs to be resolved or confirmed against the base in CI. No unrelated production behavior is changed to bypass it.
Closes #1911.