Drafts is a nice feature, and it’s good to have, but honestly, I don’t think many people are using it.

As far as I understand, each draft stores everything in the editor, including code edits, files, and chat. You can return to previous drafts to continue working on them or use them as backups, and drafts are stored locally in browser.

However, I feel like this is a bit overkill for Perchance.

I don’t know how others use drafts, but I personally prefer to start with a fresh draft every time.

The “+ Start Fresh” option is great because it gives me a clean state with the latest code saved on the server. This way, I know I’m working with the latest version and won’t accidentally lose track of code edits I’ve made on another device.

However, I’d prefer to have a Refresh button that does the same thing without creating a new draft every time.

Currently, repeatedly starting fresh means storing more and more copies of previous code on my device. Over time, this can increase browser storage usage, and clearing browser data to deal with it can have other unwanted side effects.

Here are a few suggestions:

  1. Add an option to disable automatic drafts. Instead of relying on automatic drafts to preserve chat sessions, it would be nice to have a proper chat history feature for AI Helper, allowing users to revisit previous conversations whenever they need to.

  2. Add an account-wide setting to always load the latest saved code when starting a new session. This could be a server-side preference that ensures new sessions start with the most recently saved version of the code, regardless of which device was used. That way, users can be confident they’re working with the latest version.

  3. Add an option to force AI Helper to refresh its code context in an existing chat. For example, I might start a conversation with AI Helper on one device, then edit and save the code on another device. When I return to the original chat, AI Helper may still be working with the old code in its context. I know I can start a new chat or use “Start Fresh Draft” but it’s easy to forget to do that.

This last issue could be particularly problematic. Someone mentioned in another post that they later discovered some of their code edits were missing and had to recover them from backups and manually reapply them.

Making sure AI Helper can access the latest saved code, or making sure latest saved code is loaded in editor would help prevent this kind of confusion.

Overall, I think drafts are useful for people who need them, but having more control over them, a proper chat history, and an easy way to refresh the code context would make the workflow much more convenient and reliable.

For me, drafts are basically a kind of chat history right now, but if I start a new chat, I can’t access the previous one later at all.

I usually remember what edits I’ve made, and when I add or upload a new file to the workspace, I already have a copy of it on my device. I also only save changes when I’m sure about the code edits. Because of that, I very rarely need to go back to an old draft to check the code or files.

  • RudBo@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    19 days ago

    second this, but I haven’t read it all.

    the issue is that it’s not about chat but about workspace… jumping around different version of code is like suicide in maintaince???

    at least for me.

    I only want to make sure the code is saved and safe and UpToDate. whenever that menu pop up I would only pick the latest one (which is hard to tell which sometimes). If the pick failed I’d just start a brand new and safest route.

    For that even how to summon that draft panel is inconsistent.