Commit 867ef87
authored
fix(desktop): sync v1 terminal dimensions to backend on connect (#3545)
When panes mount during new-workspace / preset flows, attachToContainer's
fit() can run before flex layout resolves, leaving the backend PTY spawned
at stale defaults (shell prompt wraps wrong until a manual resize).
Mirror v2's sendResize-on-open pattern: once createOrAttach succeeds,
re-fit against the now-settled container and push the real dims.1 parent 1979f4c commit 867ef87
1 file changed
Lines changed: 13 additions & 0 deletions
File tree
- apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/hooks
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
263 | 274 | | |
264 | 275 | | |
265 | 276 | | |
| |||
383 | 394 | | |
384 | 395 | | |
385 | 396 | | |
| 397 | + | |
386 | 398 | | |
387 | 399 | | |
388 | 400 | | |
| |||
595 | 607 | | |
596 | 608 | | |
597 | 609 | | |
| 610 | + | |
598 | 611 | | |
599 | 612 | | |
600 | 613 | | |
| |||
0 commit comments