logancyang_obsidian-copilot/src
Mathieu Colmon ecf8eeff53
feat(chat): Implement autosave for chat after messages and responses (#1582)
* feat(chat): Implement autosave for chat after messages and responses

Adds autosave functionality to the chat component, saving the chat after every user message and AI response if the autosave setting is enabled. Updates the autosave chat setting description for clarity.

* fix(chat): Use sharedState for visible messages in Chat

Updated the Chat component to filter visible messages using sharedState.getMessages() instead of chatHistory, ensuring the latest messages are used. Also removed a redundant notice when updating an existing note.

* fix(chat): Make autosave non-blocking

The handleSaveAsNote function is now called without await in autosaveChat blocks.

---------

Co-authored-by: Logan Yang <logancyang@gmail.com>
2025-07-01 13:18:27 -07:00
..
autocomplete fix: Disable autocomplete by default and update activation logic based on Plus user status in AutocompleteService (#1592) 2025-06-30 16:03:30 -07:00
cache feat: Update file cache to use markdown instead of json (#1572) 2025-06-24 23:01:58 -07:00
commands feat: Add support for selected text context in chat component (#1576) 2025-06-26 13:54:27 -07:00
components feat(chat): Implement autosave for chat after messages and responses (#1582) 2025-07-01 13:18:27 -07:00
contexts feat: New Setting UI. (#955) 2025-01-13 22:32:20 -08:00
hooks Add update notification (#1415) 2025-04-02 21:44:37 -07:00
imageProcessing 2.8.9 (#1465) 2025-04-22 16:28:35 -07:00
integration_tests Composer: Enhance note context handling (#1524) 2025-06-07 11:39:51 -07:00
lib Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
LLMProviders feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00
mentions Fix image in note logic (#1457) 2025-04-20 12:14:56 -07:00
search Fix auto index trigger (#1593) 2025-07-01 12:30:51 -07:00
settings feat(chat): Implement autosave for chat after messages and responses (#1582) 2025-07-01 13:18:27 -07:00
styles Add tw prefix to tailwind (#1497) 2025-05-31 22:30:54 -07:00
tests feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00
tools feat: Update file cache to use markdown instead of json (#1572) 2025-06-24 23:01:58 -07:00
utils feat: Support the function of searching the project list. (#1522) 2025-06-05 10:37:34 -07:00
aiParams.ts feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00
chainFactory.ts Enhance abort signal in chains (#1566) 2025-06-23 17:03:53 -07:00
chainUtils.ts Squash preview (#1502) 2025-05-30 20:06:25 -07:00
chatUtils.ts Fix delete message in memory (#826) 2024-11-16 20:36:34 -08:00
composerUtils.ts Squash preview (#1502) 2025-05-30 20:06:25 -07:00
constants.ts fix: Disable autocomplete by default and update activation logic based on Plus user status in AutocompleteService (#1592) 2025-06-30 16:03:30 -07:00
context.ts Listen to active note changes (#1015) 2025-01-06 23:23:56 -08:00
contextProcessor.ts feat: Add support for selected text context in chat component (#1576) 2025-06-26 13:54:27 -07:00
encryptionService.test.ts fix: replacing Node's Buffer with npm's buffer package. (#1306) 2025-03-02 19:04:05 -08:00
encryptionService.ts Encrypt embedding model api keys (#1405) 2025-03-27 14:24:16 -07:00
error.ts Refresh VectorStoreManager at setting changes (#916) 2024-12-09 17:40:32 -08:00
langchainStream.ts Some UX Optimize (#1305) 2025-02-27 22:10:00 -08:00
logger.ts Squash preview (#1502) 2025-05-30 20:06:25 -07:00
main.ts Enhance abort signal in chains (#1566) 2025-06-23 17:03:53 -07:00
noteUtils.ts Throttle number of links returned (#998) 2025-01-02 18:18:56 -08:00
plusUtils.ts Fix auto index trigger (#1593) 2025-07-01 12:30:51 -07:00
rateLimiter.ts Add configurable batch size, update rps (#1240) 2025-02-11 22:20:30 -08:00
sharedState.ts feat: Add support for selected text context in chat component (#1576) 2025-06-26 13:54:27 -07:00
types.ts Merge custom command with custom prompts (#1549) 2025-06-18 22:03:25 -07:00
utils.test.ts Remove think tag for insert into note (#1560) 2025-06-20 09:29:04 -07:00
utils.ts feat: Support editing all parameters individually for each model (#1562) 2025-06-27 15:57:12 -07:00