Search seems stuck on app.selectDraft()

Search term in selectDraft() is stuck, even when clearing search, changing to blank space, force quitting the app.

(will upload screen capture video when on computer)

Script is simply:

const d = app.selectDraft()
editor.load(d)

It remembers the last values. You can override by passing a workspace (which you can construct in script if needed).

But it doesn’t remember if I clear it out, or set to blanks? Once I search for something, I always have to be searching for something?

Understood on the workaround, thanks.

I’ll play with it…how are you testing? I would expect it to only remember state if you complete a selection, not if you cancel.

It definitely remembers state, but then that state is stuck forever

Pinged over slack, to share a screen recording