@@ -666,10 +666,7 @@ func (m setupTUIModel) viewReview() string {
666666 summary .WriteString (labelStyle .Render ("Server ID:" ) + " " + valueStyle .Render (m .config .ServerID ) + "\n " )
667667 summary .WriteString (labelStyle .Render ("Interval:" ) + " " + valueStyle .Render (m .config .Interval ) + "\n " )
668668 summary .WriteString (labelStyle .Render ("Timeout:" ) + " " + valueStyle .Render (m .config .Timeout ) + "\n " )
669- bufferStatus := "Disabled"
670- if m .config .BufferEnabled {
671- bufferStatus = fmt .Sprintf ("Enabled (%dh retention)" , m .config .BufferRetentionHours )
672- }
669+ bufferStatus := fmt .Sprintf ("%s (%dh retention)" , m .config .BufferPath , m .config .BufferRetentionHours )
673670 summary .WriteString (labelStyle .Render ("Buffer:" ) + " " + valueStyle .Render (bufferStatus ) + "\n " )
674671 summary .WriteString (labelStyle .Render ("Logging:" ) + " " + valueStyle .Render (fmt .Sprintf ("%s → %s" , m .config .LogLevel , m .config .LogOutput )) + "\n " )
675672 summary .WriteString (labelStyle .Render ("Config Path:" ) + " " + valueStyle .Render ("/etc/node-pulse/nodepulse.yml" ))
@@ -902,29 +899,16 @@ func (m setupTUIModel) handleEnter() (tea.Model, tea.Cmd) {
902899 m .config .Timeout = timeout
903900 m .err = nil
904901
905- // Move to buffer screen
906- m .screen = ScreenBuffer
907- if m .config .BufferEnabled {
908- m .textInput .SetValue ("yes" )
909- } else {
910- m .textInput .SetValue ("no" )
911- }
912- m .textInput .Placeholder = "yes/no"
902+ // Skip buffer screen (buffer is always enabled now) and go to logging
903+ m .screen = ScreenLogging
904+ m .textInput .SetValue (m .config .LogLevel )
905+ m .textInput .Placeholder = "debug, info, warn, error"
913906 m .textInput .Focus ()
914907 return m , textinput .Blink
915908
916909 case ScreenBuffer :
917- // Parse buffer settings
918- input := strings .ToLower (strings .TrimSpace (m .textInput .Value ()))
919- if input != "yes" && input != "no" {
920- m .err = fmt .Errorf ("enter 'yes' or 'no'" )
921- return m , nil
922- }
923-
924- m .config .BufferEnabled = (input == "yes" )
925- m .err = nil
926-
927- // Move to logging screen
910+ // Buffer screen is deprecated (buffer is always enabled)
911+ // Skip to logging screen
928912 m .screen = ScreenLogging
929913 m .textInput .SetValue (m .config .LogLevel )
930914 m .textInput .Placeholder = "debug, info, warn, error"
@@ -1005,14 +989,10 @@ func (m setupTUIModel) handleBack() (tea.Model, tea.Cmd) {
1005989 return m , textinput .Blink
1006990
1007991 case ScreenLogging :
1008- // Go back to buffer
1009- m .screen = ScreenBuffer
1010- m .textInput .Placeholder = "yes/no"
1011- if m .config .BufferEnabled {
1012- m .textInput .SetValue ("yes" )
1013- } else {
1014- m .textInput .SetValue ("no" )
1015- }
992+ // Go back to timeout (buffer screen is skipped)
993+ m .screen = ScreenTimeout
994+ m .textInput .Placeholder = "3s"
995+ m .textInput .SetValue (m .config .Timeout )
1016996 m .textInput .Focus ()
1017997 return m , textinput .Blink
1018998
0 commit comments