Skip to content

Commit 49e8fbb

Browse files
Leos-Khaiclaude
andcommitted
fix(web): expose the proposed plan title as a heading
A plan's own markdown headings otherwise sat above the message headings in the outline. The visible title is now the h3 and the plan body nests beneath it, matching the message rows. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent 7282d14 commit 49e8fbb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export const ProposedPlanCard = memo(function ProposedPlanCard({
150150
<div className="flex flex-wrap items-center justify-between gap-3">
151151
<div className="flex min-w-0 items-center gap-2">
152152
<Badge variant="secondary">Plan</Badge>
153-
<p className="truncate text-sm font-medium text-foreground">{title}</p>
153+
{/* Same heading level as the message author headings in the timeline,
154+
so a plan's own headings nest beneath it in the outline. */}
155+
<h3 className="truncate text-sm font-medium text-foreground">{title}</h3>
154156
</div>
155157
<Menu>
156158
<MenuTrigger
@@ -177,13 +179,15 @@ export const ProposedPlanCard = memo(function ProposedPlanCard({
177179
cwd={cwd}
178180
threadRef={threadRef}
179181
isStreaming={false}
182+
headingLevelOffset={3}
180183
/>
181184
) : (
182185
<ChatMarkdown
183186
text={displayedPlanMarkdown}
184187
cwd={cwd}
185188
threadRef={threadRef}
186189
isStreaming={false}
190+
headingLevelOffset={3}
187191
/>
188192
)}
189193
{canCollapse && !expanded ? (

0 commit comments

Comments
 (0)