Skip to content

Desktop first attachment send briefly flashes the empty-chat hero #4245

Closed

Description

@Sun-GLiang

What happened

On the Desktop new-chat surface, sending the first prompt with an image attachment briefly renders the empty-chat Maka wordmark and greeting beside the submitted prompt before the conversation content takes over.

Expected: once the optimistic user message is available, it should replace the empty state atomically. The empty-chat hero should never be rendered in the same frame as submitted content.

How to reproduce

  1. Open Desktop in a workspace with no active Session.
  2. Drop or paste an image into the composer.
  3. Enter a text request, for example Please analyze this image.
  4. Click Send.
  5. Watch the transition from the new-chat surface to the first conversation turn.

The issue is easiest to see when attachment ingestion or first-Session observation makes the transition last longer.

Environment

  • Maka commit: a70750937 (refactor(desktop): derive composer attachment capability)
  • OS and version: macOS 15.6
  • Surface: Desktop
  • Node.js version: v24.19.0

Logs, screenshots, or additional context

An isolated real-Electron E2E capture froze the first renderer mutation batch containing [data-transient-message-id]. In the broken state, both of these were present simultaneously:

  • .maka-hero-empty-chat: present
  • [data-transient-message-id]: 1 submitted user message

There are two timing gaps:

  1. The first optimistic row is registered only after new-Session observation completes, leaving an empty-session render window.
  2. ChatView still prepends emptyContent whenever durable chat is empty, even when a transient user row already exists.

Filed by Maka on behalf of @Sun-GLiang after reproducing the report in an isolated Electron E2E environment.

Activity

  1. Sun-GLiang commented on Aug 30, 2026

    @Sun-GLiang
    MemberAuthor

    take

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

Metadata

Metadata

Assignees

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