Repository navigation
test(terminal): bump the pane hook-order parity pin past #9035 - #21276
Conversation
#9035 added a useRef and a useCallback to use-terminal-pane-foundation (search input ref, focus-search-input) without moving the parity pin, and its own PR run never executed the shard that holds it. Every PR opened since fails `tests node 24 7/8` on `expected 211 to have a length of 209`. The two hooks are in order behind the existing ones and useMemo stays at 8. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
The count alone was not the pin: the flattened order is hashed too. The new order is the old one with useRef and useCallback inserted at the foundation stage and nothing else moved (diffed before and after #9035). Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
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: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe terminal pane hook parity test now expects 211 render hooks instead of 209. It updates the hook order SHA-256 digest and documents the added Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The parity expectations match the current terminal hook traversal, and this test-only change introduces no established production risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the hook-count mismatch, the two added hooks, the updated hash, the verification performed, and the absence of product changes. However, it omits most required template sections, including ELI5, Why, Linked Issue with a Fixes link, Visual Proof or N/A, Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. Resolution Complete the required template sections. Add an ELI5 summary, a Why section, a Linked Issue entry such as "Fixes
✨ 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.
✅ No new issues found.
Reviewed changes
Reviewed the full PR at head c6b10a3 (both commits, one file).
- Hook-order count re-pinned — the flattened TerminalPane hook count moves from 209 to 211.
- Hook-order hash re-pinned —
PRE_REFACTOR_HOOK_ORDER_SHA256moves fromf6de13ab…toed41829b…. - Header comment — documents the two
#9035additions (useRefsearch-input ref,useCallbackfocus-search-input).
I reproduced the test's flattening over the pre-#9035 sources (de15227a1d^) and the current sources: 209 hooks / f6de13ab… before, 211 hooks / ed41829b… after, and the diff of the two hook lists is exactly two insertions (useRef, then useCallback) at a single position. The test passes at the current head. The author's "order otherwise untouched" claim holds, so the re-pin does not mask a hidden reorder.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
stablyai#21276) * test(terminal): bump the pane hook-order parity pin past stablyai#9035 stablyai#9035 added a useRef and a useCallback to use-terminal-pane-foundation (search input ref, focus-search-input) without moving the parity pin, and its own PR run never executed the shard that holds it. Every PR opened since fails `tests node 24 7/8` on `expected 211 to have a length of 209`. The two hooks are in order behind the existing ones and useMemo stays at 8. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb * test(terminal): re-pin the hook-order hash for the two stablyai#9035 hooks The count alone was not the pin: the flattened order is hashed too. The new order is the old one with useRef and useCallback inserted at the foundation stage and nothing else moved (diffed before and after stablyai#9035). Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

What this is
terminal-pane-hook-order-parity.test.tspins TerminalPane's flattened hook order: the count (209), theuseMemocount (8) and a sha256 of the order. #9035 (search match count + Cmd+F focus parity, merged 2026-09-17 10:00Z) added auseRefand auseCallbacktouse-terminal-pane-foundation.tswithout moving the pin, and its own PR run never executed the shard that holds it. Every PR opened since failstest / tests node 24 7/8withexpected [ Array(211) ] to have a length of 209 but got 211; the failure reproduces onorigin/maindirectly.Change
Count 209 → 211 and the order hash re-pinned, with the usual header line naming the two hooks.
useMemostays at 8 and the source-file count stays at 20.Proof the order is otherwise untouched: the test's flattening, run over the 20 files at
de15227a1d^(before #9035) and at main, reproduces the old hash at 209 hooks and the new one at 211; the diff of the two lists is exactly two insertions,useRefthenuseCallback, at the foundation stage.No product code changes.