mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(frontend): keep transcript display settings working with the plain log layout
This commit is contained in:
1 parent
8004496f10
commit
d8495df811
8 files changed
+198
-16
No files matched your search
@@ -684,6 +684,26 @@ describe('MessageThread', () => {
|
||||
expect(screen.queryByText(/File Changes/)).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('omits the agent name from the assistant footer in simple chat mode', () => {
|
||||
const messages = [assistantMessage('2', [textPart('Updated files')], { agent: 'build' })]
|
||||
|
||||
setupSettings({ simpleChatMode: true, showReasoning: false })
|
||||
const simple = render(
|
||||
<MessageThread sessionID="test-session" messages={messages} pending={[]} />,
|
||||
)
|
||||
|
||||
expect(screen.queryByText('Build')).not.toBeInTheDocument()
|
||||
expect(screen.getByText('test-model')).toBeInTheDocument()
|
||||
|
||||
simple.unmount()
|
||||
|
||||
setupSettings({ simpleChatMode: false, showReasoning: false })
|
||||
render(<MessageThread sessionID="test-session" messages={messages} pending={[]} />)
|
||||
|
||||
expect(screen.getByText('Build')).toBeInTheDocument()
|
||||
expect(screen.getByText('test-model')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('shows the empty state when there are no messages or pending prompts', () => {
|
||||
setupSettings({ simpleChatMode: false, showReasoning: false })
|
||||
|
||||
|
||||
Reference in new issue
Block a user