Repository navigation
test(terminal): re-pin the pane hook-order parity past #23049 - #23090
Conversation
#23049 added a useRef, a useLayoutEffect and a useEffect to the terminal pane's chat-state, layout-persistence and title-effects hooks and merged with the parity shard red, so main fails 'preserves the recursively flattened render hook order' (211 vs 214). Pin 214 hooks, 7 useMemo, and the new order hash. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe hook-order parity test baseline comment now records three added hooks and a total of 214 hooks. The expected hook-order SHA-256 value and hook-count assertion were updated. The baseline still records seven Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This updates a test baseline without changing production behavior. No merge-blocking issue is established; the normal test run should validate the recorded hook-order digest. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the test failure, the expected-value updates, the cause, and the verification result. However, it omits required template sections and information, including ELI5, Why, Linked Issue, Visual Proof with N/A, Testing checkboxes, AI Disclosure, Review, Notes, and the Checklist. Resolution Complete the required template sections. Add the linked issue after “Fixes #”, state “N/A” with a reason under Visual Proof, document testing and platform coverage, complete the applicable checkboxes, and address the remaining required sections.
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
- Re-pin the pane hook-order parity test —
terminal-pane-hook-order-parity.test.tsnow expects 214 flattened hooks (was 211) and carries the matching order hash after #23049 added three render hooks; a history comment records the move.
I verified the pin against the live source: the test passes at head, forcing the old length of 211 fails as expected, and #23049 (merge 2ed6505a) added exactly useRef (chatOwnerRef), useLayoutEffect, and useEffect — all three in use-terminal-pane-layout-persistence.ts, so 211 + 3 = 214 with useMemo still 7. No production change, no correctness concern.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| // Then chat ownership through toggles and restore (#23049) added a `useRef`, a `useLayoutEffect` | ||
| // and a `useEffect` across chat-state, layout-persistence and title-effects (214 hooks, still 7 useMemo). |
There was a problem hiding this comment.
The three hooks #23049 added all landed in use-terminal-pane-layout-persistence.ts; chat-state and title-effects only received the effectiveChatViewMode → isChatViewMode rename. As written, this reads as if the hooks were spread across all three files.
| // Then chat ownership through toggles and restore (#23049) added a `useRef`, a `useLayoutEffect` | |
| // and a `useEffect` across chat-state, layout-persistence and title-effects (214 hooks, still 7 useMemo). | |
| // Then chat ownership through toggles and restore (#23049) touched chat-state, layout-persistence | |
| // and title-effects; the hooks it added (a `useRef`, a `useLayoutEffect`, a `useEffect`) all landed | |
| // in layout-persistence (214 hooks, still 7 useMemo). |
Picks up #23090 (terminal-pane hook-order parity re-pin) so the desktop test shard runs on a current merge ref. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

What
Main's desktop test shard 7/8 is red:
terminal-pane-hook-order-parity.test.ts"preserves the recursively flattened render hook order" expects 211 hooks and main has 214 since #23049 (which added auseRef, auseLayoutEffectand auseEffectacross the pane's chat-state, layout-persistence and title-effects hooks and merged with that shard failing).This re-pins the count to 214, keeps 7
useMemo, updates the order hash, and adds the history line the file keeps for each move. No production change.Reproduced on main's head 457a84d before the change; 3/3 after.