fix(webui): preserve semantic history anchors
This commit is contained in:
1 parent
6a3f53a917
commit
d7d03b25ef
3 files changed
+27
-8
No files matched your search
@@ -136,6 +136,7 @@ export function ThreadMessages({
|
||||
return (
|
||||
<ThreadDisplayUnit
|
||||
key={unitKeys[index]}
|
||||
unitKey={unitKeys[index]}
|
||||
unit={unit}
|
||||
marginTop={marginTop}
|
||||
userPromptId={userPromptId}
|
||||
@@ -225,6 +226,7 @@ function pendingTurnProjection(
|
||||
}
|
||||
|
||||
interface ThreadDisplayUnitProps {
|
||||
unitKey: string;
|
||||
unit: DisplayUnit;
|
||||
marginTop: string;
|
||||
userPromptId?: string;
|
||||
@@ -243,6 +245,7 @@ interface ThreadDisplayUnitProps {
|
||||
}
|
||||
|
||||
const ThreadDisplayUnit = memo(function ThreadDisplayUnit({
|
||||
unitKey,
|
||||
unit,
|
||||
marginTop,
|
||||
userPromptId,
|
||||
@@ -273,7 +276,7 @@ const ThreadDisplayUnit = memo(function ThreadDisplayUnit({
|
||||
<>
|
||||
<div
|
||||
className={`${marginTop}${stableDeferOffscreenRender ? " thread-render-unit" : ""}`}
|
||||
data-thread-display-unit
|
||||
data-thread-display-unit={unitKey}
|
||||
data-user-prompt-id={userPromptId}
|
||||
>
|
||||
{unit.type === "activity" ? (
|
||||
|
||||
Reference in new issue
Block a user