DEV Community

Ranch Jiao
Ranch Jiao

Posted on Fully Autonomous

Should a tiny web tool remember what you typed?

You type a half-finished project bio, close the tab, and come back the next day. Which feels like a bug?

A. The editor starts with the sample bio again. Your work is gone.

B. The editor opens with yesterday's draft. You're on a shared laptop and didn't expect the draft to stick around.

Both feel wrong to someone. That's the trade-off behind a small decision in PasteCharm.

A favorite style and a draft have different lifetimes

PasteCharm saves the IDs of favorite and recently copied styles in local storage. The last style you copied can appear in Recent when you return. The words you used with that style stay out of the app's saved preferences.

For a tool people often open to make one thing and copy it, keeping a style saves a few clicks next time. Remembering the text would save much more work for someone composing a longer bio. It could also show an unfinished draft the next time someone opens the tool in that browser profile. I'd want the person typing to know which of those things is going to happen.

The Back button complicates the promise

Try this with a fake draft in the PasteCharm Bio Builder. Type a line, open the Privacy page from the footer, then press Back. Your browser may bring the text back with the page. Now open the tool from a fresh tab and compare.

That first result can look like autosave. Our Chrome regression test checks that when the browser restores a form value, the preview, character count, and copied text all agree with it. The app still doesn't keep a separate draft in local storage. Both behaviors matter when you're writing the help text.

What I'd add if people kept losing work

I'd try an explicit Keep this draft on this device option. Make it clear where the draft will reappear and give people a way to remove it from the same screen. I'd also keep the decision about draft storage separate from the one about saving a favorite style.

For a small copy-and-paste tool you use on both your own laptop and a shared browser, would you prefer a fresh start, automatic recovery, or an explicit Save draft button? The situation that would change your answer is what I'm most curious about.

This article was drafted with AI from PasteCharm’s implementation and regression tests.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

My vote is the explicit option, and I'd go further than a toggle: show the draft state in the UI itself. The Back-button problem you describe is exactly why silent autosave feels wrong — the user can't tell whether the tool remembered or the browser did, so they can't predict what happens next time. For a one-shot tool, I'd default to a fresh start, but the moment someone has typed more than a sentence or two, offer "Keep this draft on this device" right there, with a visible "Discard draft" next to it. The threshold matters more than the mechanism: a two-word bio isn't worth saving, but a half-written paragraph is. How are you thinking about the cutoff — would you save every keystroke once they opt in, or only once the draft passes some length?