Skip to content

bug: first conversation click from clean state does not load messages #729

@kaitranntt

Description

@kaitranntt

Description

When navigating to the Chat page and clicking on a conversation for the first time, the conversation messages do not load. The URL updates correctly, the sidebar item highlights, and the agent auto-selects, but the main content area continues showing the "Start a conversation" empty-state placeholder.

Clicking a different conversation after the failed first click loads messages correctly. Going back to the originally-clicked conversation also works after that.

Steps to Reproduce

  1. Navigate to /chat (clean state, no conversation selected)
  2. Select an agent (e.g., "glm thục bô") or leave unselected
  3. Click the first conversation in the list (e.g., "Chat a95c8ffa")
  4. Observe: URL updates, sidebar highlights the conversation, but main area shows "Start a conversation"
  5. Click a different conversation (e.g., "Chat 9d511cea")
  6. Observe: messages load correctly

Expected Behavior

Clicking any conversation should immediately load and display its messages.

Actual Behavior

Click Target Result
1st (from clean state) Any conversation URL updates, item highlights, messages NOT loaded
2nd Different conversation Messages load correctly
3rd+ Any conversation Messages load correctly

Affected Files

  • ui/ — chat conversation panel component (likely a race condition between agent context initialization and conversation message fetch on first selection)

Environment

  • GoClaw v2.67.3
  • Tested via Playwright browser automation

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