Revert "fix(ui-conversation): keep composer visible across views"

This reverts commit 978d035d4a8d3578a70844511a42aa793664e5de.
This commit is contained in:
_Kerman
2026-07-29 11:46:14 +08:00
parent 549315256a
commit 33afcc913b
6 changed files with 13 additions and 11 deletions
@@ -151,7 +151,7 @@ function mount(slots: SlotsService, nodes: ConversationSnapshot['nodes'] = NODES
}) as unknown as ConversationSessionProps['renderSlot']
return render(
<ConversationSession
composer={<textarea aria-label="Message" />}
composer={null}
sessionId={SID}
SessionProvider={({ children }) => children(SID)}
useSession={useSession}
@@ -203,7 +203,6 @@ describe('tab switching in ConversationRoot', () => {
expect(screen.queryByRole('columnheader')).toBeNull()
expect(screen.getByRole('toolbar', { name: 'Trajectory toolbar' })).toBeTruthy()
expect(screen.getByRole('region', { name: 'Trajectory timeline' })).toBeTruthy()
expect(screen.getByRole('textbox', { name: 'Message' })).toBeTruthy()
fireEvent.click(screen.getByRole('button', { name: 'Collapse turns' }))
expect(view.container.querySelector('[data-collapsed-summary="turn"]')).toBeTruthy()
fireEvent.click(screen.getByRole('button', { name: 'Expand turns' }))