Repository navigation
Conversation
…e-session paths Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesGrouping unification
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR consolidates duplicate grouping logic without changing the public API or intended behavior, and no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Comment |
There was a problem hiding this comment.
Pull request overview
Consolidates plain and page-session grouping into one grouping machine while preserving the public API.
Changes:
- Removes duplicated plain-grouping helpers.
- Uses an empty page-action set for plain grouping.
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| return groupPlain(parts, standalone) | ||
| return groupWithPageSessions( | ||
| parts, | ||
| options?.pageActNames ?? emptyPageActNames, |
There was a problem hiding this comment.
Fixed in 088f974 — foldableParentIds now short-circuits on an empty pageActNames, so the plain path does a single grouping pass again.
…s configured Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Closes #456.
grouping.tskept two parallel grouping machines:groupPlainandgroupWithPageSessions, duplicating reply placement, standalone classification, chain placement, and result-into-trailing-chain folding — the drift flagged twice during #437 review.With
pageActNamesempty and no session ever opening, the page-session machine degenerates to exactly the plain machine's behavior:foldableParentIdsreturns the empty set,sessionMemberCallnever matches, the fold-into-open-session branch is unreachable, andopenCallIdsbookkeeping is inert.pageToolPrefixwithoutpageActNamesstays inert too (prefix folding only fires inside an open session), matching the old plain-path behavior.So: the plain machine is deleted and
groupSegmentsalways runs the single machine with an empty-set sentinel. Public API unchanged. Net −37 lines.Gates: ui-kit-chat suite 172 tests green (incl. grouping 35 + grouping-diff 14),
typecheck --filter=...@conciv/ui-kit-chat69/69, fallow audit pass (0 introduced), lint clean on changed file.🤖 Generated with Claude Code
Summary by CodeRabbit