LibreChat/api
Danny Avila 1526b429c9
🧵 feat: Implement Request Executor Pattern for Actions (#4566)
* chore: actions typing

* fix(actions): implement request executor pattern to prevent concurrent execution issues

BREAKING CHANGE: ActionRequest now uses a RequestExecutor pattern for isolated request state

- Introduce RequestConfig class to store immutable configuration
- Add RequestExecutor class to handle isolated request state for each execution
- Modify ActionRequest to act as a facade creating new executors for each operation
- Maintain backward compatibility through delegation and getters
- Add TypeScript types for better type safety
- Fix race conditions in concurrent executions with auth and params

This change prevents state mutation issues when the same action is called
multiple times concurrently, particularly when using authentication. Each
request now gets its own isolated state through a new executor instance,
solving race conditions while maintaining the existing API interface.

* ci: test isolation/immutatability

* chore: Update version to 0.7.51 in data-provider package

* refactor(actions): refactor createActionTool to use request executor pattern
2024-10-28 13:42:38 -04:00
..
app 🔄 feat: Add Configurable Cache Headers for Index.html (#4565) 2024-10-28 11:01:31 -04:00
cache 🔍 fix: USE_REDIS condition, Markdown list counter, code highlights (#3806) 2024-08-27 14:49:43 -04:00
config 🌿 fix: Message Route Improvements pt. 2 (#3379) 2024-07-18 13:56:19 -04:00
lib 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
models 🛡️ fix: Minor Vulnerabilities (#4543) 2024-10-24 15:50:48 -04:00
server 🧵 feat: Implement Request Executor Pattern for Actions (#4566) 2024-10-28 13:42:38 -04:00
strategies 🔐 feat: Enhance OpenID User Info Handling (#4561) 2024-10-27 11:41:48 -04:00
test 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
utils 🤖 feat: Add support for claude-3-5-sonnet-20241022 (#4510) 2024-10-22 16:45:26 -04:00
jest.config.js fix: Enhance Test Coverage and Fix Compatibility Issues 👷‍♂️ (#1363) 2023-12-15 13:27:13 -05:00
jsconfig.json feat(api): initial Redis support; fix(SearchBar): proper debounce (#1039) 2023-10-11 17:05:47 -04:00
package.json v0.7.5 (#4541) 2024-10-24 17:32:55 -04:00
typedefs.js 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00