Skip to content

tui: initial user message can be missing from a new session #35988

Description

@opencode-agent

Summary

In the V2 TUI, the initial user message can be missing from a new session even though the assistant response renders normally. This appears correlated with slow MCP server startup, but that cause is not yet confirmed.

Environment

  • opencode version: local V2 development build
  • OS: Unavailable: not captured in the report
  • Terminal: Unavailable: not captured in the report
  • Shell: Unavailable: not captured in the report
  • Install/channel: local development build
  • Active plugins: Unavailable: not captured in the report

Reproduction

  1. Configure one or more MCP servers that are slow to initialize.
  2. Start the V2 TUI and submit the first prompt in a new session.
  3. Wait for the assistant response to render.

Expected Behavior

The initial user message appears in the session before the assistant response.

Actual Behavior

The initial user message is absent from the transcript. The assistant response and subsequent session UI render normally.

Additional Context

Observed by multiple team members. In the captured occurrence, the session showed the assistant greeting (Hi! How can I help you?) and its timing metadata, but no preceding user message. Slow MCP initialization is the leading suspicion and still needs confirmation with a minimal reproduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions