mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-17 05:20:55 +00:00
* 🪃 fix: Remember the Last Code Approval Mode The code approval dropdown reopened on "Ask before changes" after every new chat and reload. `useCodeApprovalMode` derived its selection from `conversation.codeApprovalMode ?? 'ask'`, and a new conversation never carries that field: `buildDefaultConvo` runs the last setup through `parseConvo`, whose agents schema does not pick `codeApprovalMode`, so the pick was dropped. The menu now records each pick in a localStorage-backed Jotai atom, and the hook seeds its default from it when the conversation carries no mode of its own. The remembered value is a preference and not a grant: it passes the same policy gate as a stored mode, so anything current policy no longer allows falls back to `ask`, and sign-in/sign-out clears it so a shared browser does not hand the next account a permissive default. * 🎨 style: Format the Code Approval Preference Files --------- Co-authored-by: Lia <lia@librechat.ai> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||