chore(chat): disable chat attachments by default (#3562)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
sanil-23
2026-06-09 22:11:24 +05:30
committed by GitHub
co-authored by Claude
parent b010fecc63
commit f41a0a03dd
+6 -4
View File
@@ -91,11 +91,13 @@ export const CONSUMER_FIRST_SESSION_ENABLED =
import.meta.env.VITE_CONSUMER_FIRST_SESSION === 'true';
/**
* Chat multimodal attachments (image + supported file markers). Enabled by
* default now that core parses `[IMAGE:…]` / `[FILE:…]` payloads and the
* renderer runs a lossless compression pass before sending.
* Chat multimodal attachments (image + supported file markers). Disabled by
* default — the attach affordance is hidden and the file-picker path is gated
* off (a bare `<textarea>` already ignores pasted/dropped files). Opt back in
* for a build by setting `VITE_CHAT_ATTACHMENTS=true` (e.g. the e2e web build
* in `app/scripts/e2e-web-build.sh`, which exercises the attachment specs).
*/
export const CHAT_ATTACHMENTS_ENABLED = import.meta.env.VITE_CHAT_ATTACHMENTS !== 'false';
export const CHAT_ATTACHMENTS_ENABLED = import.meta.env.VITE_CHAT_ATTACHMENTS === 'true';
export const SKILLS_GITHUB_REPO =
import.meta.env.VITE_SKILLS_GITHUB_REPO || 'tinyhumansai/openhuman-skills';