Skip to content

Fix release terminal E2E crash - #5869

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/e2e-tests-failing
Jun 20, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/e2e-tests-failing

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Why

Release CI run https://github.com/stablyai/orca/actions/runs/27856843732 failed because terminal-workbench hit React error #185 in CodexRestartChip, preventing PaneManager from mounting and cascading into terminal/e2e timeouts.

Verification

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/codex-restart-chip.test.ts
  • pnpm run test:e2e:terminal-rendering-golden
  • SKIP_BUILD=1 pnpm run test:e2e:terminal-rendering-release-evidence

Made with Orca 🐋


Open in Stage

Co-authored-by: Orca <help@stably.ai>
@ghost

ghost commented Jun 20, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 3 individual chapters for you:

Title
1 Fix React state update loop in CodexRestartChip
2 Add regression test for CodexRestartChip rendering
3 Broaden terminal cursor raster probe detection
Open in Stage

Chapters generated by Stage for commit ba99f58 on Jun 20, 2026 2:41am UTC.

@Jinwoo-H
Jinwoo-H merged commit 3478efc into main Jun 20, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/e2e-tests-failing branch June 20, 2026 02:43
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4ee4c76d-36b4-4e80-b0d6-246ddc66263c

📥 Commits

Reviewing files that changed from the base of the PR and between 230297b and ba99f58.

📒 Files selected for processing (3)
  • src/renderer/src/components/CodexRestartChip.tsx
  • src/renderer/src/components/codex-restart-chip.test.ts
  • tests/e2e/terminal-cursor-raster-probe.ts

📝 Walkthrough

Walkthrough

CodexRestartChip is refactored to remove the useShallow import and replace the combined shallow store selector with three separate useAppStore calls; staleWorktreePtyIds is now derived via useMemo and restartNotice is set from the first stale PTY ID. The render-time collapse-state conditional is replaced by a useEffect keyed on noticeKey. A new component-level test runs under happy-dom, mounts a React root with store reset hooks, and asserts the chip renders the expected stale-notice text. Separately, isCursorProbePixel in the E2E cursor probe gains an early alpha guard and a second composited color range check.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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 and usage tips.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Co-authored-by: Orca <help@stably.ai>
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