Item page: while Opus prepares a question, only the progress line shows, not the answers it is replacing

This commit is contained in:
aiongg committed 2026-11-06 21:09:34 +00:00
1 parent cc202322a2
commit 9d5b7ef5c3
1 file changed
+9 -3
+9 -3
View File
@@ -76,9 +76,15 @@ function Question({ d, siblings, choices, here, onAnswered, feedback }: { d: Dec
<p className="mt-2 text-pretty text-[15px] font-semibold leading-6">
<Refs text={d.question} repo={d.repo} />
</p>
{d.preparing && !d.answer && <OpusWorking text="Opus is preparing options…" className="mt-2" />}
{!choices && <div className="mt-2"><RecommendationLine d={d} /></div>}
<ChoiceGroup d={d} user={user} choices={choices} onAnswered={onAnswered} />
{/* While Opus prepares, the earlier answers are about to be replaced, so only the progress line shows. */}
{d.preparing && !d.answer ? (
<OpusWorking text="Opus is preparing options…" className="mt-2" />
) : (
<>
{!choices && <div className="mt-2"><RecommendationLine d={d} /></div>}
<ChoiceGroup d={d} user={user} choices={choices} onAnswered={onAnswered} />
</>
)}
{/* With several open questions the composer serves one; the others get their own box. */}
{feedback && canComment(user) && !canActOn(user, [d]) && <FeedbackBox d={d} className="mt-3" />}
</article>