File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
crates/chat-cli/src/database Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ pub enum Setting {
8888 EnabledCheckpoint ,
8989 #[ strum( message = "Enable the delegate tool for subagent management (boolean)" ) ]
9090 EnabledDelegate ,
91+ #[ strum( message = "Specify UI variant to use (string)" ) ]
92+ UiMode ,
9193}
9294
9395impl AsRef < str > for Setting {
@@ -129,6 +131,7 @@ impl AsRef<str> for Setting {
129131 Self :: EnabledCheckpoint => "chat.enableCheckpoint" ,
130132 Self :: EnabledContextUsageIndicator => "chat.enableContextUsageIndicator" ,
131133 Self :: EnabledDelegate => "chat.enableDelegate" ,
134+ Self :: UiMode => "chat.uiMode" ,
132135 }
133136 }
134137}
@@ -178,6 +181,7 @@ impl TryFrom<&str> for Setting {
178181 "chat.enableTodoList" => Ok ( Self :: EnabledTodoList ) ,
179182 "chat.enableCheckpoint" => Ok ( Self :: EnabledCheckpoint ) ,
180183 "chat.enableContextUsageIndicator" => Ok ( Self :: EnabledContextUsageIndicator ) ,
184+ "chat.uiMode" => Ok ( Self :: UiMode ) ,
181185 _ => Err ( DatabaseError :: InvalidSetting ( value. to_string ( ) ) ) ,
182186 }
183187 }
You can’t perform that action at this time.
0 commit comments