mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
✍️ feat: Automatic Save and Restore for Chat (#2942)
* feat: added "Save draft locally" to Message settings * feat: add hook to save chat input as draft every second * fix: use filepath if the file does not have a preview prop * fix: not to delete temporary files when navigating to a new chat * chore: translations * chore: import order * chore: import order --------- Co-authored-by: Danny Avila <danacordially@gmail.com> Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
e9bbf39618
commit
29e71e98ad
22 changed files with 345 additions and 5 deletions
|
|
@ -820,6 +820,10 @@ export enum LocalStorageKeys {
|
|||
REMEMBER_FORK_OPTION = 'rememberForkOption',
|
||||
/** Key for remembering the split at target fork option modifier */
|
||||
FORK_SPLIT_AT_TARGET = 'splitAtTarget',
|
||||
/** Key for saving text drafts */
|
||||
TEXT_DRAFT = 'textDraft_',
|
||||
/** Key for saving file drafts */
|
||||
FILES_DRAFT = 'filesDraft_',
|
||||
}
|
||||
|
||||
export enum ForkOptions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue