upstream取り込み: v1 terminal dimensions sync fix (#3545, 手動移植)#316
upstream取り込み: v1 terminal dimensions sync fix (#3545, 手動移植)#316
Conversation
Manually port upstream 867ef87 (superset-sh#3545) to fork's useTerminalLifecycle. Straight cherry-pick failed because fork has diverged around cold-restore handling — notably the 2nd createOrAttach success handler does NOT call markTerminalSessionReady / startStream here (deferred until the real shell spawns), so upstream's syncBackendDimensions() call point shifts up by a few lines. Adds the same syncBackendDimensions() helper and calls it at both createOrAttach onSuccess sites so the backend PTY sees the settled container dims before flex layout has a chance to resize (preset tabs, new workspace bulk creation were spawning at stale defaults).
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 55 minutes and 18 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…al dim sync) - 1979f4c fix(desktop): v2 sidebar section count reflects visually grouped workspaces (superset-sh#3544) → PR #315 (clean cherry-pick) - 867ef87 fix(desktop): sync v1 terminal dimensions to backend on connect (superset-sh#3545) → PR #316 (manual port for fork cold-restore divergence)
概要
upstream から v1 terminal の backend dimension 同期 fix を取り込む PR。behind 1 → 0(PR8 と合わせて)。
取り込み commit
867ef8746fork 適応修正(手動移植の理由)
fork は
useTerminalLifecycle.tsの cold-restore 処理周りで upstream と diverge しているため、straight cherry-pick はgit applyfail。移植内容:
syncBackendDimensionshelper をconst { xterm, fitAddon, searchAddon } = cached;直後に追加(upstream と同じ位置)createOrAttach.onSuccessでsetConnectionError(null)直後に呼び出し(upstream と同じ)createOrAttach.onSuccessでsetConnectionError(null)直後に呼び出し(upstream はmarkTerminalSessionReady(paneId)直後だが、fork はそれを cold-restore 対応で deferred しているため setConnectionError 直後へ移動)Codex pre-review
Yes(全5項目):
"not found"で握り潰される実装)clientWidth/Height === 0ガード妥当検証
テストチェックリスト