worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Interactive picker leaves screen artifacts after exit

Open davidbeesley opened this issue 9 months ago • 0 comments

After exiting the interactive picker (wt switch/wt select), skim's TUI content stays on screen:

> ○ Already on worktree for test @ ~/git/worktrunk.test
    Branch  Status        HEAD±    main↕  Path               Remote⇅  Commit    Age   Message
[dave@host] [~/git/worktrunk.test] [ test]  fix(sty..
❯ ^ main     !? ^⇡💬    +1                .                  ⇡13      c0905e3d  1h    fix(sty..

───────────────────────────────────────────────────────────────────────────────────────────────
1: HEAD± | 2: log | 3: main…± | 4: remote⇅                                                 1/4
Enter: switch | alt-c: create | Esc: cancel | ctrl-u/d: scroll | alt-p: toggle

○ test has no uncommitted changes

skim-tuikit bug: partial-height mode (90%) skips alternate screen entry but cleanup still sends rmcup instead of erasing drawn content. Known issue: skim-rs/skim#880, fixed in skim 3.x (which requires nightly).

Reproduced on Linux tmux + foot terminals.

Fix: set no_clear_start(true) in skim options — forces tuikit to use cursor_goto + erase_down cleanup instead of the broken rmcup path.

davidbeesley avatar Feb 15 '26 04:02 davidbeesley