@@ -130,6 +130,8 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
130130 setMcpRichDisplayEnabled,
131131 shellIntegrationTimeout,
132132 setShellIntegrationTimeout,
133+ terminalOutputLineLimit,
134+ setTerminalOutputLineLimit,
133135 terminalReuseEnabled,
134136 setTerminalReuseEnabled,
135137 defaultTerminalProfile,
@@ -151,6 +153,7 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
151153 chatSettings,
152154 shellIntegrationTimeout,
153155 terminalReuseEnabled,
156+ terminalOutputLineLimit,
154157 defaultTerminalProfile,
155158 } )
156159 const [ apiErrorMessage , setApiErrorMessage ] = useState < string | undefined > ( undefined )
@@ -194,6 +197,7 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
194197 ? convertApiConfigurationToProtoApiConfiguration ( apiConfigurationToSubmit )
195198 : undefined ,
196199 chatSettings : chatSettings ? convertChatSettingsToProtoChatSettings ( chatSettings ) : undefined ,
200+ terminalOutputLineLimit,
197201 } ) ,
198202 )
199203
@@ -211,10 +215,12 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
211215 planActSeparateModelsSetting,
212216 enableCheckpointsSetting,
213217 mcpMarketplaceEnabled,
218+ mcpRichDisplayEnabled,
214219 mcpResponsesCollapsed,
215220 chatSettings,
216221 shellIntegrationTimeout,
217222 terminalReuseEnabled,
223+ terminalOutputLineLimit,
218224 defaultTerminalProfile,
219225 }
220226 } catch ( error ) {
@@ -244,6 +250,7 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
244250 mcpResponsesCollapsed !== originalState . current . mcpResponsesCollapsed ||
245251 JSON . stringify ( chatSettings ) !== JSON . stringify ( originalState . current . chatSettings ) ||
246252 shellIntegrationTimeout !== originalState . current . shellIntegrationTimeout ||
253+ terminalOutputLineLimit !== originalState . current . terminalOutputLineLimit ||
247254 terminalReuseEnabled !== originalState . current . terminalReuseEnabled ||
248255 defaultTerminalProfile !== originalState . current . defaultTerminalProfile
249256
@@ -259,6 +266,7 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
259266 chatSettings ,
260267 shellIntegrationTimeout ,
261268 terminalReuseEnabled ,
269+ terminalOutputLineLimit ,
262270 defaultTerminalProfile ,
263271 ] )
264272
@@ -300,6 +308,9 @@ const SettingsView = ({ onDone, targetSection }: SettingsViewProps) => {
300308 if ( typeof setShellIntegrationTimeout === "function" ) {
301309 setShellIntegrationTimeout ( originalState . current . shellIntegrationTimeout )
302310 }
311+ if ( typeof setTerminalOutputLineLimit === "function" ) {
312+ setTerminalOutputLineLimit ( originalState . current . terminalOutputLineLimit )
313+ }
303314 if ( typeof setTerminalReuseEnabled === "function" ) {
304315 setTerminalReuseEnabled ( originalState . current . terminalReuseEnabled ?? true )
305316 }
0 commit comments