Repository navigation
feat(session-summary): lead with the written summary, not the ledger - #200
Merged
nplez1 merged 1 commit intoOct 28, 2026
Merged
Conversation
…195) The pane sandwiched the prose between two disclosures, so opening it showed a Ledger row before a word of the summary. Reorder to title, summary, then the Ledger and Timeline disclosures and the full-session switch. Empty states keep their own slot: the 'nothing since your last message' fallback stays where the report was, and an absent section simply drops out. Adds the render-order assertion the issue noted was missing.
nplez1
deleted the
nplez1/feature-session-summary-written-summary-under-th
branch
October 28, 2026 03:54
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.
Fixes #195. The Session summary pane sandwiched the written summary between the two disclosures, so
opening it showed a
Ledger (3 items)row before a word of the summary.What changed
LedgerContent(src/renderer/src/components/activity/session-summary-ledger-view.tsx) now rendersthe title, then the written summary, then the Ledger and Timeline disclosures, then the
Show the full session switch.
Empty states keep their own slot rather than collapsing the summary's away:
report === null→ the "Nothing has happened since your last message" fallback sits where thereport was (already mutually exclusive with it:
nothingSincerequires!report);timeline.length === 0→ Timeline absent and Show the full session stays last.The Activity strip (
session-summary-panel.tsx) renders the same body, so it follows for free; it isunreachable today (
docs/reference/session-summary.md§ Where it is surfaced). The docstring aboveLedgerContentand the reference doc's "pane opens as a brief" bullet are updated with the order.Verification
pnpm test src/renderer/src/components/activity/session-summary-ledger-view.test.tsx— 10 passed,including two new order assertions: summary above both disclosures with the switch last, and empty
sections dropping out while the fallback keeps the summary's slot. The issue noted nothing pinned
the order; nothing did, and the new test fails against the old order.
pnpm tc:web— clean.pnpm run check:code-quality:changed— 0 new findings across the changed files.test.
Gate 1 not required: the diff touches only
src/renderer/**anddocs/**, no global inputs.Review
Reviewed by Opus 5.5, high: R1 (0 blocking, 2 MINOR, both addressed), delta clean on R2.
Reviewer
claude/opusat high reasoning, read-only packet review over the branch's own diff.SessionSummaryPane.tsxis wrong —session-summary-panel.tsxwraps the same view in aScrollAreacapped atmax-h-[40vh], wherea long report now pushes both disclosures below the fold. That strip is unreachable today, so
nothing anyone can see changes; recorded in case the Activity view returns.
asserted last after Timeline); the follow-up is test- and doc-only, so the review still covers the
source it read.