You are browsing as a guest. Sign up (or log in) to start making projects!

27m 1s logged

REDC2 DEVLOG 3 - squashed two nasty bugs
Spent today hunting down two bugs that were making the SSH terminal panel basically unusable.
Bug #1: crashing on select
Selecting a machine from the command bar threw a DuplicateIds exception and killed the terminal widget. Turns out Textual’s Widget.remove() is async — it just schedules the removal, it doesn’t happen instantly. My code was removing the old terminal widget and then immediately mounting a new one with the same hardcoded id (ssh-terminal), so the two calls raced each other and Textual saw two widgets claiming the same id at once. Fixed it by giving each terminal instance a unique id (ssh-terminal-1, ssh-terminal-2, …) instead of reusing one.
Bug #2: invisible typing in the command bar
Typing into the main redc2> input box showed nothing on screen even though the input was working fine under the hood. Textual’s Input widget defaults to a border: tall style that needs ~3 rows to actually render the text row. My CSS forced the input down to height: 1 without accounting for the border, so the text row got squeezed to zero height and effectively vanished. Fix: stripped the border and added proper padding on the compact input.
Both fixed now — dashboard select → terminal open → typing all work smoothly. Butter on warm bread. 🧈🍞

0
2

Comments 0

No comments yet. Be the first!