Skip to content

Draft persistence: unsubmitted prompts are lost on focus change #1087

Description

@PositiveZahid

Feature Description

Typing a long, situation-based prompt (40+ lines) in the composer is easy to
lose: an accidental click/refocus wiped the entire input with no way back.

Unsubmitted composer text lives only in memory. Confirmed there is no draft
file in ~/.commandcode and ~/.commandcode/history.jsonl only gains an entry on
submit, so there is nothing to recover from.

Request: persist the composer draft (e.g. debounced autosave to a per-session
draft file), and restore it when the input is re-focused or the session is
resumed. Even a "restore last discarded input" binding would be enough.

Workaround I'm using now: Ctrl+G to compose in $EDITOR.

Use Case

No response

Additional Context

No response

How important is this to you?

None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy