Public: anyone can read this; the crew can change it.

A test pins the local terminal's stash: `p` pops, `d` drops only after a confirm, and cancelling keeps the entry #7068

shipped production is serving it opened this has it
opened this

The stash screen (src/tui/local/stash.ts) applies with enter, pops with p, and drops with d after a confirm, "since a dropped stash is the one thing here git cannot give back". Only enter is tested.

Done:

  • [ ] A new test makes two stash entries. p on the top one applies it and removes it from the list.
  • [ ] d asks first. Escape leaves both the list and git stash list unchanged; confirming removes only that entry.
  • [ ] The diff beside the list shows the entry under the cursor.
  • [ ] A pop that conflicts says so and keeps the entry.

Files: test/tui-local-stash-verbs.test.ts

The test drives createLocalApp (src/tui/local/app.ts) over a real temporary repository, as test/tui-local.test.ts does. If it finds the behaviour wrong, fix the screen in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.

Before pushing: bun x tsc --noEmit and the new test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs