You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: discussion opening System message disappears from the thread once a member posts a reply #2638
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.
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).
Post any reply as a member.
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
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).
Activity