Skip to content

refactor(site/src/pages/AgentsPage): remove AgentChatInput - #30639

Closed
DanielleMaywood wants to merge 1 commit into
refactor/agents-chat-composerfrom
refactor/agents-remove-chat-input
Closed

DanielleMaywood wants to merge 1 commit into
refactor/agents-chat-composerfrom
refactor/agents-remove-chat-input

Conversation

@DanielleMaywood

Copy link
Copy Markdown
Collaborator

Part 9 of the stack splitting #30545. Depends on #30638.

Deletes AgentChatInput.tsx, which no production code renders anymore. Remaining imports now point at the modules that own them: AttachmentPreview, ContextUsageIndicator, and AgentComposerBadges. The tests and stories move to AgentComposers.test.tsx and AgentComposers.stories.tsx and render ChatComposer.

There is no intended behavior change. Every test case and story is unchanged in what it renders, does, and asserts. Only the prop shape changes, and the same tests and stories pass.

Key decisions
  • Tests and stories target ChatComposer. Each flat AgentChatInput prop maps onto bindings, model, tools, setup, editor, queue, or context using the values AgentChatInput used to forward. Play functions read the same mocks through the nested args. The story title (pages/AgentsPage/AgentChatInput), story export names, and story IDs are unchanged. owner_name is dropped from two workspace option fixtures because the options type has never included it.
  • Removed AgentComposer.Attachments' onTextPreview override. Only AgentChatInput passed it, so text previews always open the built-in dialog, as they already did in production.
  • Kept the optional MCP and workspace selection fields, isViewOnly, and FrameEventBoundary. ChatComposer's read-only notice and the existing stories still use them, so tightening them would change behavior or force story changes.

Generated by Coder Agents on behalf of @DanielleMaywood.

@linear-code

linear-code Bot commented Oct 13, 2026

Copy link
Copy Markdown

CODAGT-1405

@DanielleMaywood

Copy link
Copy Markdown
Collaborator Author

Closing stack until can be re-prioritized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant