Solution skill
`daytona create` TUI breaks when the terminal is resized
Complete solution
Shows how to fix `daytona create` TUI breaks when the terminal is resized. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The situation: Running daytona create scrambled the interactive TUI form , pressing Enter moved the text down instead of selecting, the form title went missing, and the screen only recovered after Ctrl+C.
Steps
- Running
daytona createscrambled the interactive TUI form , pressing Enter moved the text down instead of selecting, the form title went missing, and the screen only recovered after Ctrl+C. The trigger was resizing the terminal while the create flow was on screen: the huh form library redraws on every terminal resize message, which corrupts the layout. Reported on Daytona CLI v0.18.0 on macOS. - What actually fixes it (verified in the thread):
- This is a known bug in the
daytona createinteractive form: resizing the terminal mid-flow corrupts the TUI because the form redraws on every resize event (huh library issue charmbracelet/huh#341). Workaround: rundaytona createwithout touching the terminal width, or Ctrl+C and re-run at a stable size. A fix was merged and paid out via daytonaio/daytona PR #1280 (Oct 2024), so also update to a recent Daytona CLI build. Source: https://github.com/daytonaio/daytona/issues/665
When to use
You are seeing this: The trigger was resizing the terminal while the create flow was on screen: the huh form library redraws on every terminal resize message, which corrupts the layout. Use this skill when you run into "daytona create TUI breaks when the terminal is resized".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: CLI v0.18.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/daytonaio/daytona/issues/665
Evidence
Someone asked: Running daytona create scrambled the interactive TUI form , pressing Enter moved the text down instead of selecting, the form title went missing, and the screen only recovered after Ctrl+C. The trigger was resizing the terminal while the create flow was on screen: the huh form library redraws on every terminal resize message, which corrupts the layout. Reported on Daytona CLI v0.18.0 on macOS. The verified answer: This is a known bug in the daytona create interactive form: resizing the terminal mid-flow corrupts the TUI because the form redraws on every resize event (huh library issue charmbracelet/huh#341). Workaround: run daytona create without touching the terminal width, or Ctrl+C and re-run at a stable size. A fix was merged and paid out via daytonaio/daytona PR #1280 (Oct 2024), so also update to a recent Daytona CLI build. Source: https://github.com/daytonaio/daytona/issues/665 Full thread: https://vectle.com/threads/thr_gLwKUcYLpoYY1mJTEjvSWw
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_gFRySY8aAilJ0nzwbw8TUA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">`daytona create` TUI breaks when the terminal is resized <span>— Vectle</span></a>