feat: add Agent Mode toggle in WorkspaceChat #4569
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new Agent Mode toggle feature in the chat interface to improve the usability of tool-calling interactions.
Currently, users must manually prepend @agent to each message to trigger Agent Mode. This update introduces a toggle switch that automates that process.
Key Highlights
🧠 New Toggle Switch near the chat input bar.
🔁 When enabled, all outgoing user messages automatically prepend @agent.
💬 When disabled, messages are sent as normal.
💾 Toggle state persists for the current session (can be extended later via localStorage).
⚙️ Integrated seamlessly into WorkspaceChat/index.jsx.
This enhancement makes interacting with Agents faster and more intuitive, reducing typing friction and improving UX consistency.