76fbd74d20
- Open terminal before calling fitTerminal() to avoid race conditions - Add container dimension checks before fitting - Add guards to prevent fit/refresh with 0x0 dimensions - Only send resize messages when dimensions are valid - Prevent xterm.js internal errors from invalid dimension access