Skip to content

test(terminal): re-pin the pane hook-order parity past #23049 - #23090

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix/terminal-pane-hook-parity-repin
Sep 26, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix/terminal-pane-hook-parity-repin

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2
Prod 0 0 0 0

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 a useRef, a useLayoutEffect and a useEffect across 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.

#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
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: c82920b1-5bc3-4be4-aabf-dd1af55a6d27

📥 Commits

Reviewing files that changed from the base of the PR and between 457a84d and 5e0bbf4.

📒 Files selected for processing (1)
  • src/renderer/src/components/terminal-pane/terminal-pane-hook-order-parity.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The 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 useMemo calls.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 5e0bb

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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… 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 sect…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the test-only change: re-pinning terminal pane hook-order parity after changes from #23049.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

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.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Minor suggestions only.

Reviewed changes

  • Re-pin the pane hook-order parity test — terminal-pane-hook-order-parity.test.ts now 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment on lines +27 to +28
// 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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
// 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant