Skip to content

Bug: discussion opening System message disappears from the thread once a member posts a reply #2638

Closed

Description

@yannickmonney

Problem

The seeded starter discussion's opening System message ("Welcome! This is a discussion — … @Assistant, can you suggest three things a new team should do first?") vanishes from the message list after a member posts into the thread. The conversation loses its own opening question — members who join later see replies with no context.

Current behaviour

Repro (fresh mode-A org, seeded "Getting started" project):

  1. Open the seeded discussion "How should we get started?" → the System welcome message renders as the first message (author label "System", Copy/Show info actions).
  2. Post any reply as a member.
  3. The System message is gone from the thread — only the member's messages remain. Persists across a full page reload; the scroll container has no hidden overflow (scrollHeight == clientHeight, verified via DOM).

The discussion is opened by seedStarterContent via agentOpenDiscussion with actorId: 'system' (convex/provisioning/seed_starter.ts:95-107). Whatever the message-list query keys on (actor resolution, message kind), the system-authored opener stops being returned once member messages exist.

Code pointers

  • convex/provisioning/seed_starter.ts:95-107 — seeds the discussion via internal.discussions.internal_mutations.agentOpenDiscussion with actorId: 'system'
  • convex/discussions/ — message list query + agentOpenDiscussion internal mutation
  • app/features/projects/ discussions thread view (message log)

Proposed change

Make the opening message a first-class, permanently-listed discussion message regardless of author type; add a regression test that posts a reply and asserts the opener is still returned.

Acceptance criteria

  • The System/seeded opening message remains visible after members reply (and after reload)
  • A regression test covers "opener still listed after N member replies"

Related: #2637 (the same seeded discussion's mention never gets answered).

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

    bugpriority: highservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions