Skip to content

fix(web): agent message senders show "Unnamed participant" after a page reload #635

Closed

Description

@Jacksondr5

After a full page load (reload, or opening the thread URL directly) of a thread with agent-to-agent messages, the sender name on the message cards can read Unnamed participant. Switching to another thread and back shows the right names. Delivery, content and placement are unaffected.

Found by the Astra live tester on PR #634. It reproduces on j5/main (6ff4e78dd0) as well as on the PR head, so it predates the upstream advance.

Steps

  1. On a test server, have one agent message another, so the receiver's thread shows a message card.
  2. Reload the receiver's thread in the browser.
  3. The card's sender reads "Unnamed participant".
  4. Open another thread, then come back: the name is right.

Likely cause

apps/web/src/j5/a2a/ParticipantIdentitiesClient.ts (around lines 23–36) reads the identities keyed only by environment and participant ids, with no dependency on the connection. On a full load the read can run before the connection is ready. archiveFlowClient.ts:23 turns the failed read into an empty result, and nothing retries it once the connection comes up.

Fix direction: have the read follow the environment connection, so it runs (or runs again) once the connection is ready, rather than adding a retry timer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions