fix(tui): keep config schema statically walkable

This commit is contained in:
Yichen Jiang
2026-07-23 17:50:32 +08:00
parent 5395279fe0
commit d633758a30
2 files changed
+16 -2

No files matched your search

+1 -1
View File
@@ -1596,7 +1596,7 @@ export interface TuiConfig {
}
```
Source: [`packages/ui/tui/src/index.ts:245`](../packages/ui/tui/src/index.ts)
Source: [`packages/ui/tui/src/index.ts:247`](../packages/ui/tui/src/index.ts)
## `@deepseek-ai/dsh-tui-demo`
+15 -1
View File
@@ -263,7 +263,21 @@ export const Config: z<Config> = z.object({
welcome: z.string(),
sessionId: z.string().default('main'),
resumeCommand: z.string(),
...tuiConfigSchemaFields,
showReasoning: tuiConfigSchemaFields.showReasoning,
maxToolOutputLines: tuiConfigSchemaFields.maxToolOutputLines,
maxQuestionOptions: tuiConfigSchemaFields.maxQuestionOptions,
maxModelOptions: tuiConfigSchemaFields.maxModelOptions,
questionDialogWidth: tuiConfigSchemaFields.questionDialogWidth,
questionDialogMaxHeight: tuiConfigSchemaFields.questionDialogMaxHeight,
modelDialogWidth: tuiConfigSchemaFields.modelDialogWidth,
modelDialogMaxHeight: tuiConfigSchemaFields.modelDialogMaxHeight,
fileSearchMaxResults: tuiConfigSchemaFields.fileSearchMaxResults,
fileSearchMaxEntries: tuiConfigSchemaFields.fileSearchMaxEntries,
fileSearchExcludedDirectories: tuiConfigSchemaFields.fileSearchExcludedDirectories,
showHardwareCursor: tuiConfigSchemaFields.showHardwareCursor,
color: tuiConfigSchemaFields.color,
truecolor: tuiConfigSchemaFields.truecolor,
title: tuiConfigSchemaFields.title,
})
/** Fully defaulted TUI presentation settings. */