Repository navigation
fix(j5): agent message senders keep their names after a reload - #656
Merged
Merged
Conversation
The participant identity read ran once per set of ids. On a page load, or for a thread on a secondary environment, it ran before the environment connected, failed, and never ran again, so every card read "Unnamed participant". It now waits for the environment to connect and runs again on each reconnect. The server also drops an id that is not a participant id instead of failing the whole read, so one bad id can't blank the names beside it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
marked this pull request as ready for review
October 19, 2026 01:17
Jacksondr5
added a commit
that referenced
this pull request
Oct 19, 2026
Jacksondr5
added a commit
that referenced
this pull request
Oct 19, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully 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.
Problem
Agent-to-agent message cards showed the sender as "Unnamed participant" after a page load (#635), in threads on a secondary environment (#419), and in the threads #652 found. In every case the names came back only when the participant set changed, for example by switching threads.
Closes #635
Closes #419
Closes #652
What changed
useParticipantIdentitiesran its one identity read once per set of ids. On a page load, or for a secondary environment, that read went out before the environment had connected. It failed, the client turned the failure into an empty map, and nothing ran it again. The hook now waits until the environment is connected and runs the read again on each reconnect. That also covers a server restart. It uses the connection state the sidebar already reads, so there's no timer.readParticipantIdentitiesdecoded the whole id list, so one id that wasn't a participant id failed the read for every id in it. It now drops such an id, which then reads as unknown, and resolves the rest.#652's cause. #652 suspected a bad id. I checked the retained test home from the #466 run. Every sender id in thread
9ee45107…decodes, and the server's identity query names all four senders. On a copy of that database the thread showed "Unnamed participant" after a reload and the right names after an in-app thread switch. With this fix it shows the right names after every reload. So #652 is the reload race from #635. The server change still covers #652's "one unresolvable id" criterion.useScopedParticipantLabels(the Inbox) doesn't have this gap. It reads only the environments marked connected, and that list is part of its key, so a reconnect runs the read again.UI changes
Each pair shows the same card after a page reload, before and after this change.
Reloading the receiving thread, before:
base-reload.mp4
After:
head-reload.mp4
Live testing
PASS at
9aaeda8f1eagainst base3a55dfe5b1. Report:test-reports/j5-fix-unnamed-participant.md. All live turns used Claude Haiku 5.5, and the messages went throughj5_send_message.--peer). On base, a card in a thread on Remote, viewed from Local's origin, read "Unnamed participant". On head it was named after two reloads and after opening the thread's URL directly.9ee45107…) on a copy of the Upstream advance: No project and name-only projects work with J5 features #466 test home's database. On base it read "Unnamed participant" after a reload. With this change it was named on three reloads in a row.Not exercised live: the server's handling of an invalid id (a unit test covers it); desktop, mobile, relay, tunnel and second-machine connections; a Codex turn, since nothing here touches the turn path, adapters or the messaging tools. Nothing needs testing by hand.
Checklist
FORK.md(case text and file-table row) in this PR. None edited.docs/j5/product/upstream.md. Not applicable.docs/j5/product/and user docs rewritten where this changes them. No change needed.Claude Opus 5.5 in Claude Code, run from J5 Code.
🤖 Generated with Claude Code