Skip to content

fix: ensure terminal properly resizes after startup script failure#49

Closed
cdr-robot wants to merge 1 commit into
mainfrom
fix/issue-46-terminal-fit
Closed

fix: ensure terminal properly resizes after startup script failure#49
cdr-robot wants to merge 1 commit into
mainfrom
fix/issue-46-terminal-fit

Conversation

@cdr-robot
Copy link
Copy Markdown
Contributor

Summary

  • Fixes a bug where the web terminal doesn't display the entire screen when a startup script fails
  • Adds a delayed secondary call to fitAddon.fit() after terminal alerts change to ensure proper sizing

Test plan

  1. Create a template with a failing startup script
  2. Observe that the terminal now properly displays text at the bottom of the screen

Fixes #46

Workspace URL: https://demo.coder.com/ben/issue-46

🤖 Generated with Claude Code

This change fixes a bug where the web terminal doesn't fit the screen properly
when a startup script fails, causing text at the bottom of the terminal to be
hidden. The solution adds a delayed second call to fitAddon.fit() after alert
changes to ensure proper terminal sizing.

Fixes #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: web terminal doesn't fit screen when startup script failed

1 participant