Repository navigation
Conversation
… a tab close by a split's handle finds it (dark, layout-owner build only) Co-Authored-By: Claude <[email protected]>
…r yet" terminal list Co-Authored-By: Claude <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments: 2
tests/e2e/terminal-tab-close-restart-persistence.spec.ts: 1
42-48: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRemove the trace logging before merge, or keep it only on the throwaway branch.
The stderr listener and the
[e26]log line are diagnostic code. The PR is marked "do not merge," so this is acceptable only if the PR is closed unmerged, as stated. If any part is merged, remove this logging first.Also applies to: 121-121
src/main/runtime/session-graph/e26-trace.ts: 1
4-25: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueUnconditional
console.warnruns on every graph sync.
traceE26GraphSyncruns on everysyncWindowGraphcall. It logs once per sync and once per changed or removed leaf.JSON.stringifyof all terminal tabs runs each time, even when nobody reads the log. This is a hot path. The PR is labeled "do not merge", so this is acceptable only if the PR stays unmerged. Gate the trace behind an env flag if any of it ships.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fe62ac95-2e42-4c7b-9f41-7dd5be220b65
📒 Files selected for processing: 20
.github/workflows/pr.ymlconfig/scripts/pr-layout-owner-switch-on-route.mjssrc/main/runtime/session-graph/e26-trace.tssrc/main/runtime/session-graph/session-window-graph.tssrc/main/runtime/session-lifecycle/close/close-mobile-session-tab.tssrc/main/runtime/session-tabs/explicit-terminal-close-stops.tssrc/main/runtime/terminal/identity/pty-worktree-record.tssrc/main/runtime/terminal/identity/terminal-handle-bindings.tssrc/main/runtime/terminal/launch/terminal-split-surface.tssrc/main/runtime/terminal/launch/terminal-split.tssrc/main/runtime/terminal/lifecycle/pty-exit-lifecycle.tssrc/main/runtime/terminal/lifecycle/pty-handle-invalidation.tssrc/main/runtime/terminal/lifecycle/pty-registration.tssrc/main/runtime/terminal/query/pty-terminal-summary.tssrc/main/runtime/terminal/view/mobile-terminal-surface.tssrc/renderer/src/runtime/sync-runtime-graph/mobile-session-capture.tssrc/renderer/src/runtime/sync-runtime-graph/mobile-session-surfaces.tssrc/renderer/src/runtime/sync-runtime-graph/mobile-session-terminal-tabs-layout-owner.test.tstests/e2e/terminal-tab-close-restart-persistence.spec.tstests/playwright.config.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
| ref: ${{ github.sha }} | ||
| # LAYOUT_OWNER_SWITCH_ON_E2E_SPECS in config/scripts/pr-layout-owner-switch-on-route.mjs. | ||
| test_files: '["tests/e2e/workspace-layout-oracle-headless.spec.ts","tests/e2e/workspace-layout-oracle.spec.ts","tests/e2e/cli-file-open-position.spec.ts","tests/e2e/relaunch-first-terminal.spec.ts","tests/e2e/relaunch-sleeping-agents-resume-on-view.spec.ts","tests/e2e/terminal-cold-activation-deferral.spec.ts","tests/e2e/cli-first-worktree-single-terminal.spec.ts","tests/e2e/unopened-workspace-agent-single-resume.spec.ts","tests/e2e/terminal-pane-close-layout-consistency.spec.ts","tests/e2e/golden-file-open-edit-save.spec.ts","tests/e2e/golden-source-control-open-diff.spec.ts","tests/e2e/paired-cli-terminal-graph-sync-tab-retention.spec.ts","tests/e2e/floating-workspace-pane-height.spec.ts","tests/e2e/editor-model-host-isolation.spec.ts","tests/e2e/editor-tab-selection-restore.spec.ts","tests/e2e/finished-agent-ghost-resume.spec.ts","tests/e2e/live-background-terminal-mount-authority.spec.ts","tests/e2e/workspace-back-forward-navigation.spec.ts","tests/e2e/worktree-lineage-toggle-shortcut.spec.ts","tests/e2e/local-cli-terminal-retention.spec.ts","tests/e2e/default-tabs-mark-crash-relaunch.spec.ts","tests/e2e/terminal-cli-split-closed-before-mount.spec.ts","tests/e2e/layout-stream-loss-reopen.spec.ts","tests/e2e/ssh-orcad-"]' | ||
| test_files: '["tests/e2e/terminal-tab-close-restart-persistence.spec.ts"]' |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Restore the full spec list before merge.
The hardcoded test_files replaces the full list with one spec. The comment on Line 1558 says the value mirrors LAYOUT_OWNER_SWITCH_ON_E2E_SPECS. That list now has many more specs, so the two diverge. If merged, the layout-owner switch-on job loses its coverage. The PR states it is a throwaway trace run, so revert this line if any part is merged.
| // Throwaway trace run: ten passes of each selected spec. | ||
| repeatEach: process.env.CI ? 10 : undefined, |
There was a problem hiding this comment.
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
Do not merge repeatEach: 10 for all CI specs.
When CI is set, this setting repeats every selected spec ten times in every CI job. This multiplies the runtime of all E2E jobs. The PR states it will be closed unmerged. Revert this line if any part of the PR is merged.
…keeps main's terminal (dark, layout-owner build only) Co-Authored-By: Claude <[email protected]>
…n's own record of the pane (dark, layout-owner build only) Replaces the window-side listing and the binding fill: the window's list lags main in three ways (built before main wrote the pane, from it before the binding, or before the window mounts it), and only main's own layout answers all three. Co-Authored-By: Claude <[email protected]>
…yout-owner build only) Co-Authored-By: Claude <[email protected]>
|
Ten switch-on runs collected; closing unmerged. |
Throwaway: runs terminal-tab-close-restart-persistence ten times in the switch-on CI job on top of #30786. Will be closed unmerged.