Merge pull request #17638 from NousResearch/bb/tui-details-persist

fix(tui): persist global details mode sections
This commit is contained in:
brooklyn! 2026-04-29 15:15:37 -07:00 committed by GitHub
commit d9bf093728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 56 additions and 10 deletions

View file

@ -180,6 +180,12 @@ describe('createSlashHandler', () => {
expect(createSlashHandler(ctx)('/details toggle')).toBe(true)
expect(getUiState().detailsMode).toBe('expanded')
expect(getUiState().detailsModeCommandOverride).toBe(true)
expect(getUiState().sections).toEqual({
thinking: 'expanded',
tools: 'expanded',
subagents: 'expanded',
activity: 'expanded'
})
expect(ctx.gateway.rpc).toHaveBeenCalledWith('config.set', {
key: 'details_mode',
value: 'expanded'