merlyn/server/utils/chats
Timothy Carambat f395083978
Automatic mode for workspace (Agent mode default) (#5143)
* Add automatic chat mode with native tool calling support

    Introduces a new automatic chat mode (now the default) that automatically invokes tools when the provider supports native tool calling. Conditionally shows/hides the @agent command based on whether native tooling is available.

    - Add supportsNativeToolCalling() to AI providers (OpenAI, Anthropic, Azure always support; others opt-in via ENV)
    - Update all locale translations with new mode descriptions
    - Enhance translator to preserve Trans component tags
    - Remove deprecated ability tags UI

* rebase translations

* WIP on image attachments. Supports initial image attachment + subsequent attachments

* persist images

* Image attachments and updates for providers

* desktop pre-change

* always show command on failure

* add back gemini streaming detection

* move provider native tooling flag to Provider func

* whoops - forgot to delete

* strip "@agent" from prompts to prevent weird replies

* translations for automatic-mode (#5145)

* translations for automatic-mode

* rebase

* translations

* lint

* fix dead translations

* change default for now to chat mode just for rollout

* remove pfp for workspace

* passthrough workspace for showAgentCommand detection and rendering

* Agent API automatic mode support

* ephemeral attachments passthrough

* support reading of pinned documents in agent context
2026-03-18 12:35:43 -07:00
..
commands Implement v2 chat layout designs (#5074) 2026-03-10 12:50:19 -07:00
agents.js Automatic mode for workspace (Agent mode default) (#5143) 2026-03-18 12:35:43 -07:00
apiChatHandler.js Automatic mode for workspace (Agent mode default) (#5143) 2026-03-18 12:35:43 -07:00
embed.js Configurable message limit for embed chat widget (#4114) 2025-07-10 12:45:53 -07:00
index.js Custom Default System Prompt (#4487) 2025-11-24 13:24:10 -08:00
openaiCompatible.js Fix multimodal chats via openai compat api (#4135) 2025-07-22 09:57:32 -07:00
stream.js Automatic mode for workspace (Agent mode default) (#5143) 2026-03-18 12:35:43 -07:00