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

@ -266,7 +266,9 @@ export const coreCommands: SlashCommand[] = [
return transcript.sys(DETAILS_USAGE)
}
patchUiState({ detailsMode: next, detailsModeCommandOverride: true })
const sections = Object.fromEntries(SECTION_NAMES.map(section => [section, next]))
patchUiState({ detailsMode: next, detailsModeCommandOverride: true, sections })
gateway.rpc<ConfigSetResponse>('config.set', { key: 'details_mode', value: next }).catch(() => {})
transcript.sys(`details: ${next}`)
}