Skip to content

test(terminal): bump the pane hook-order parity pin past #9035 - #21276

Merged
Jinwoo-H merged 2 commits into
mainfrom
fix-terminal-pane-hook-parity-pin
Sep 17, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
fix-terminal-pane-hook-parity-pin

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor

What this is

terminal-pane-hook-order-parity.test.ts pins TerminalPane's flattened hook order: the count (209), the useMemo count (8) and a sha256 of the order. #9035 (search match count + Cmd+F focus parity, merged 2026-09-17 10:00Z) added a useRef and a useCallback to use-terminal-pane-foundation.ts without moving the pin, and its own PR run never executed the shard that holds it. Every PR opened since fails test / tests node 24 7/8 with expected [ Array(211) ] to have a length of 209 but got 211; the failure reproduces on origin/main directly.

Change

Count 209 → 211 and the order hash re-pinned, with the usual header line naming the two hooks. useMemo stays 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, useRef then useCallback, at the foundation stage.

No product code changes.

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

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

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: 47dce2ba-8ee2-4f43-ad89-622919ddff5c

📥 Commits

Reviewing files that changed from the base of the PR and between 09622f0 and c6b10a3.

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

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


📝 Walkthrough

Walkthrough

The 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 useRef and useCallback for search functionality and Cmd+F focus parity.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to c6b10

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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 sectio… Complete the required template sections. Add an ELI5 summary, a Why section, a Linked Issue entry such as "Fixes #9035" if appropriate, Visual Proof with "N/A" and a reason, Testing details and checkbox status, AI Disclosure, Review, Agent …
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly identifies the terminal hook-order parity pin update and links it to #9035. It is concise and accurately describes the main change.
Full details: Description check

Explanation

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 #9035" if appropriate, Visual Proof with "N/A" and a reason, Testing details and checkbox status, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist responses.

  • 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.

✅ 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_SHA256 moves from f6de13ab… to ed41829b….
  • Header comment — documents the two #9035 additions (useRef search-input ref, useCallback focus-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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 9de6f2c into main Sep 17, 2026
27 checks passed
@Jinwoo-H
Jinwoo-H deleted the fix-terminal-pane-hook-parity-pin branch September 17, 2026 20:28
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
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
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