Defer proposed plan markdown rendering until users expand in ChatView#751
Merged
juliusmarminge merged 3 commits intomainfrom Mar 9, 2026
Merged
Defer proposed plan markdown rendering until users expand in ChatView#751juliusmarminge merged 3 commits intomainfrom
juliusmarminge merged 3 commits intomainfrom
Conversation
- Keep long plan cards collapsed with lightweight preview text by default - Render full plan markdown only after explicit expand to reduce thread open slowness - Add tests for preview/strip helpers and browser coverage for expand behavior
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
- remove deferred collapsed preview state in `ProposedPlanCard` - always render collapsed preview with `ChatMarkdown` for simpler, consistent display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
partial improvement of #717, potentially need further improvement in follow up:
Summary
ChatViewso collapsed plans stay lightweightproposedPlan.tsto strip heavy content until explicit expandExpand planTesting
apps/web/src/proposedPlan.test.tsapps/web/src/components/ChatView.browser.tsxbun lintbun typecheckbun run testNote
Medium Risk
Changes proposed-plan rendering logic in
ChatView/PlanSidebar, which could affect plan display/export UX or introduce subtle UI regressions for long/edge-case markdown. Covered by new unit and browser tests, but still touches core chat UI layout.Overview
Defers heavy proposed-plan markdown rendering until the user expands it. Long plans in
ChatViewnow render a truncated preview by default and only render the full markdown after clicking Expand plan, keeping collapsed cards lightweight.Adds
stripDisplayedPlanMarkdownandbuildCollapsedProposedPlanPreviewMarkdownhelpers inproposedPlan.ts(with tests) to drop redundant title/Summaryheadings and generate a line-limited preview with an ellipsis. The plan sidebar also uses the stripped markdown for its expanded view, and a new browser-level regression test asserts hidden long-plan content is not present until expansion.Written by Cursor Bugbot for commit 039ce6e. This will update automatically on new commits. Configure here.
Note
Defer proposed plan markdown rendering until users expand in ChatView
stripDisplayedPlanMarkdownandbuildCollapsedProposedPlanPreviewMarkdownutilities inproposedPlan.tsto strip redundant title/Summary headings and generate truncated previews (default 8–10 lines) with an overflow...indicator.ProposedPlanCardinChatView.tsxnow renders the collapsed preview whencanCollapseis true, showing an 'Expand plan' button to reveal the full content.PlanSidebar.tsxappliesstripDisplayedPlanMarkdownwhen rendering the expanded proposed plan, hiding the title and initial Summary heading.Macroscope summarized 039ce6e.