feat(chat): redesign chat input bottom bar and improve animations#2510
Open
feat(chat): redesign chat input bottom bar and improve animations#2510
Conversation
Reorganize bottom bar layout: agent selector, file upload, and mode
selector grouped on the left; model name and send button on the right.
- Model selector shows text name only (no logo), strips provider prefix
- Agent button uses animated SVG gradient dashed border (chart-1 to chart-4)
- File upload and mode selector use consistent bordered icon buttons
- Agent badge header animates in/out with grid-rows collapse + ease-out
- File node chip uses design system tokens instead of hardcoded colors
- Simplify home greeting to "What's on your mind, {name}?"
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsShould a new version be published when this PR is merged? React with an emoji to vote on the release type:
Current version: Deployment
|
Contributor
There was a problem hiding this comment.
1 issue found across 7 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/mesh/src/web/components/chat/input.tsx">
<violation number="1" location="apps/mesh/src/web/components/chat/input.tsx:372">
P2: Avoid calling setShowWrapper during render. Move this state update into a useEffect so React doesn’t warn about state updates in render and risk render loops.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Comment on lines
+372
to
+374
| if (hasAgentBadge && !showWrapper) { | ||
| setShowWrapper(true); | ||
| } |
Contributor
There was a problem hiding this comment.
P2: Avoid calling setShowWrapper during render. Move this state update into a useEffect so React doesn’t warn about state updates in render and risk render loops.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/mesh/src/web/components/chat/input.tsx, line 372:
<comment>Avoid calling setShowWrapper during render. Move this state update into a useEffect so React doesn’t warn about state updates in render and risk render loops.</comment>
<file context>
@@ -335,35 +363,90 @@ export function ChatInput() {
+
+ // Track if wrapper visuals should still show (stays true during exit animation)
+ const [showWrapper, setShowWrapper] = useState(false);
+ if (hasAgentBadge && !showWrapper) {
+ setShowWrapper(true);
+ }
</file context>
Suggested change
| if (hasAgentBadge && !showWrapper) { | |
| setShowWrapper(true); | |
| } | |
| useEffect(() => { | |
| if (hasAgentBadge) { | |
| setShowWrapper(true); | |
| } | |
| }, [hasAgentBadge]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reorganize bottom bar layout: agent selector, file upload, and mode selector grouped on the left; model name and send button on the right.
Summary by cubic
Redesigned the chat input bottom bar for a clearer layout and smoother agent badge animations. Unified icon button styles and simplified model display to reduce visual noise.
Written for commit 7cfde78. Summary will update on new commits.