Skip to content

Commit 42289dd

Browse files
committed
fix(web): show complete hook interruption reasons
1 parent 7071039 commit 42289dd

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎apps/web/src/components/chat/TimelineSystemDivider.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export function TimelineSystemDivider(props: {
1010
readonly tone?: "neutral" | "danger";
1111
readonly icon?: LucideIcon;
1212
readonly showDetailSeparator?: boolean;
13+
readonly wrapDetail?: boolean;
1314
readonly actionLabel?: string;
1415
readonly onAction?: () => void;
1516
}) {
@@ -22,7 +23,8 @@ export function TimelineSystemDivider(props: {
2223
<span
2324
className={cn(
2425
"inline-flex min-w-0 items-center opacity-70",
25-
typeof props.detail === "string" && "max-w-80 truncate",
26+
typeof props.detail === "string" &&
27+
(props.wrapDetail ? "max-w-80 whitespace-pre-wrap" : "max-w-80 truncate"),
2628
)}
2729
>
2830
{props.showDetailSeparator === false ? null : "·\u00a0"}

‎apps/web/src/components/chat/V2LifecycleRow.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ export function V2LifecycleRow(props: {
7272
const { item } = props;
7373
if (item.type === "run_interrupt_result") {
7474
return (
75-
<TimelineSystemDivider label="Run interrupted" detail={item.message} icon={CircleStopIcon} />
75+
<TimelineSystemDivider
76+
label="Run interrupted"
77+
detail={item.message}
78+
icon={CircleStopIcon}
79+
wrapDetail
80+
/>
7681
);
7782
}
7883
if (item.type === "handoff") {

0 commit comments

Comments
 (0)