Skip to content

chore(layout): delete the dev-only layout round-trip watch - #27597

Merged
Jinwoo-H merged 1 commit into
mainfrom
layout-p15-delete-round-trip-watch
Oct 11, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
layout-p15-delete-round-trip-watch

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 11, 2026 •

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

ELI5

In development and test runs, the app had a small background logger that, one second after each burst of saves, re-checked the saved window layout and printed warnings. The layout test suite now does that same check itself, at every step, and fails the run when something is wrong. The logger is redundant, so this removes it.

What Changed

  • Deletes src/main/runtime/workspace-layout-round-trip-watch.ts and its test, plus the one call that started it in orca-runtime.ts. It only ran in development, e2e, or with ORCA_LAYOUT_ROUND_TRIP_CHECK=1. It never ran in shipped builds.
  • Keeps the shared checkLayoutRoundTrip (src/shared/workspace-layout/workspace-layout-round-trip-check.ts), because the layout oracle (tests/e2e/helpers/workspace-layout-oracle.ts, the roundTrip record at each settled step) and two unit tests still use it.
  • Updates the oracle notes in tests/e2e/AGENTS.md and drops the deleted test from the CI shard timings.

Before: dev and e2e runs printed [workspace-layout] round-trip check: and first-load changes: lines in the console, on a 1 s timer after each burst of writes. After: those lines are gone. The layout oracle runs the same check on the saved profile at every step and fails on a finding.

Why

The logger only warned, and a person had to notice the warning. The oracle runs the same check and fails the run. Keeping both means two copies of one check plus a timer that does nothing in production. Deleting it also removes one of the layout env switches before the layout rework stack lands.

Linked Issue

N/A (maintainer cleanup within the terminal layout rework).

Visual Proof

N/A. Nothing changes for users: the removed code never ran in shipped builds.

Testing

  • pnpm tc passes. oxlint and pnpm run check:code-quality:changed pass.

  • vitest on src/shared/workspace-layout/ and workspace-layout-stream.test.ts: 196 passed.

  • Layout oracle specs, run hidden (ORCA_BACKGROUND_LAUNCH=1) against an --mode e2e build: workspace-layout-oracle.spec.ts and the orcad cases of workspace-layout-oracle-headless.spec.ts pass. The 9 Electron orca serve headless cases fail with TypeError: Cannot read properties of undefined (reading 'deviceToken'). They fail the same way on unmodified main: the oracle helper still passes a decoded pairing offer where subscribeRemoteRuntimeRequest now expects a paired connection. That is outside this PR.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below (deleted the removed module's own test, and no new behaviour)

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Deletion only, dev/e2e-only code. No effect on security, platforms, SSH, mobile, compatibility, or performance in shipped builds.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in 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: ea2e126d-abf4-4e69-8096-73437c819672

📥 Commits

Reviewing files that changed from the base of the PR and between 56a432ecb353e1fee83dad8e278a6185a5654de1 and eabdcef.


📒 Files selected for processing (1)
  • config/scripts/ci-shard-timings.json

💤 Files with no reviewable changes (1)
  • config/scripts/ci-shard-timings.json

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



📝 Walkthrough

Walkthrough

The change removes the workspace layout round-trip watcher and its conditional startup from OrcaRuntimeService. It also deletes the watcher tests and their CI timing entry. The E2E documentation now describes checking the saved profile at each settled step.


Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to eabdc

No merge-blocking issue is established by the selected timing-data change.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: deleting the development-only layout round-trip watcher.
Description check Passed The description is complete and aligned with the template. It explains the change, reason, testing, scope, visual impact, and checklist status. The maintainer-specific lack of a linked issue is explic…
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 0…
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.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

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

🧹 Nitpick comments (1)
src/main/runtime/orca-runtime.ts (1)

87-92: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Preserve a write-triggered round-trip check for in-memory sessions.

The current oracle is not equivalent to the removed watcher for every covered state. The watcher checked each workspace-session write before persistence completed. The headless oracle checks only saved partitions at oracle.step, so it can miss a pending in-memory finding and any write that is not followed by a step. Add an equivalent write-triggered check against the current session while retaining the saved-profile check.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 82b56676-5841-475c-8b68-c51826e182b0
📥 Commits

Reviewing files that changed from the base of the PR and between 8e01e6d and 56a432ecb353e1fee83dad8e278a6185a5654de1.

📒 Files selected for processing (5)
  • config/scripts/ci-shard-timings.json
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/workspace-layout-round-trip-watch.test.ts
  • src/main/runtime/workspace-layout-round-trip-watch.ts
  • tests/e2e/AGENTS.md
💤 Files with no reviewable changes (4)
  • src/main/runtime/workspace-layout-round-trip-watch.test.ts
  • config/scripts/ci-shard-timings.json
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/workspace-layout-round-trip-watch.ts

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

The layout oracle checks the saved profile's round trip at every settled step and the live layout's model rules on every published frame, which covers what this 1 s settle logger did.
@Jinwoo-H
Jinwoo-H force-pushed the layout-p15-delete-round-trip-watch branch from 56a432e to eabdcef Compare October 11, 2026 22:03
@Jinwoo-H
Jinwoo-H merged commit aa1eca1 into main Oct 11, 2026
39 checks passed
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