feat(webui): add prompt rail navigation

This commit is contained in:
Xubin Ren
2026-06-02 16:18:57 +08:00
parent e8d4aff5be
commit 1af2bc513f
8 changed files with 312 additions and 7 deletions
+10 -1
View File
@@ -98,8 +98,17 @@ export function ThreadMessages({
&& next?.type === "message"
&& next.message.role === "assistant";
const userPromptId =
unit.type === "message" && unit.message.role === "user"
? unit.message.id
: undefined;
return (
<div key={unitKey(unit, index)} className={marginTop}>
<div
key={unitKey(unit, index)}
className={marginTop}
data-user-prompt-id={userPromptId}
>
{unit.type === "activity" ? (
<AgentActivityCluster
messages={unit.messages}