feat(ui): add agent-specific minimal chat page#1566
Open
al-personal wants to merge 1 commit into
Open
Conversation
Introduces AgentChatPage — a minimal embed-friendly chat view locked to a single agent via the URL segment. Supports opt-in query params: ?panel=true — show right artifact/task panel ?header=true — show header bar with session controls ?menu=true — show left navigation sidebar Changes: - New AgentChatPage component (pages/AgentChatPage.tsx) - ChatInputArea: add hideAgentSelector prop - pages/index.ts: export AgentChatPage - router.tsx: register :agentName/chat route - AppLayout.tsx: suppress left nav on agent-chat routes; ?menu=true overrides - AGENT_CHAT_CHANGES.md: implementation guide for the team Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
AgentChatPage— a minimal, embed-friendly chat page locked to a single agent via URL segment (/#/:agentName/chat)hideAgentSelectorprop onChatInputArea)Query params
?panel=true?header=true?menu=trueFiles changed
client/webui/frontend/src/lib/components/pages/AgentChatPage.tsx(new)client/webui/frontend/src/lib/components/chat/ChatInputArea.tsxclient/webui/frontend/src/lib/components/pages/index.tsclient/webui/frontend/src/router.tsxclient/webui/frontend/src/AppLayout.tsxclient/webui/frontend/AGENT_CHAT_CHANGES.md(implementation guide)Test plan
/#/chat— existing chat works unchanged/#/HappyAgent/chat— minimal view, no sidebar/panel/header/#/HappyAgent/chat?panel=true— right panel visible/#/HappyAgent/chat?header=true— header visible/#/HappyAgent/chat?menu=true— left sidebar visible/#/HappyAgent/chat?panel=true&header=true&menu=true— all enabledGenerated with Claude Code