tui: bump welcome version-suffix duration to 1.5s, shorten ctrl+c hint
- welcomeVersionDuration is now 1500ms (was 1s). still ephemeral but gives a touch more time to read the splash version on faster terminals. - ctrl+c "input cleared - ctrl+c again to exit" is now just "input cleared". the second-press behaviour is still wired and documented in /help; the long suffix was visual noise on a status line that already changes shape with each keystroke.
- commit
- 4dde65079d2168088b54b82cb6383b8205258d77
- author
- patriceckhart · · 2026-04-19 11:26 UTC
- parent
- 6a41664
- signature
- unsigned
- refs
- tag: v0.0.21
1 file · +4 -4
M internal/agent/modes/interactive.go +4 -4
| @@ -148,9 +148,9 @@ type Interactive struct { | |||
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | 150 | // welcomeVersionDuration is how long the welcome banner shows the | |
| 151 | - | // version suffix before reverting to the plain headline. 1 second | |
| 152 | - | // is enough to read at a glance and keeps the splash short. | |
| 153 | - | const welcomeVersionDuration = 1 * time.Second | |
| 151 | + | // version suffix before reverting to the plain headline. 1.5s is | |
| 152 | + | // enough to read at a glance and keeps the splash short. | |
| 153 | + | const welcomeVersionDuration = 1500 * time.Millisecond | |
| 154 | 154 | ||
| 155 | 155 | // NewInteractive constructs an Interactive from cfg. | |
| 156 | 156 | func NewInteractive(cfg InteractiveConfig) *Interactive { | |
| @@ -744,7 +744,7 @@ func (i *Interactive) handleKey(ctx context.Context, k tui.Key) (done bool) { | |||
| 744 | 744 | i.suggest.Reset() | |
| 745 | 745 | i.mu.Lock() | |
| 746 | 746 | i.queued = nil | |
| 747 | - | i.statusOK = "input cleared — ctrl+c again to exit" | |
| 747 | + | i.statusOK = "input cleared" | |
| 748 | 748 | i.statusErr = "" | |
| 749 | 749 | i.mu.Unlock() | |
| 750 | 750 | i.armCtrlCExit() | |
| @@ -148,9 +148,9 @@ type Interactive struct { | |||||
| 148 | } | 148 | } | ||
| 149 | 149 | ||||
| 150 | // welcomeVersionDuration is how long the welcome banner shows the | 150 | // welcomeVersionDuration is how long the welcome banner shows the | ||
| 151 | - | // version suffix before reverting to the plain headline. 1 second | 151 | + | // version suffix before reverting to the plain headline. 1.5s is |
| 152 | - | // is enough to read at a glance and keeps the splash short. | 152 | + | // enough to read at a glance and keeps the splash short. |
| 153 | - | const welcomeVersionDuration = 1 * time.Second | 153 | + | const welcomeVersionDuration = 1500 * time.Millisecond |
| 154 | 154 | ||||
| 155 | // NewInteractive constructs an Interactive from cfg. | 155 | // NewInteractive constructs an Interactive from cfg. | ||
| 156 | func NewInteractive(cfg InteractiveConfig) *Interactive { | 156 | func NewInteractive(cfg InteractiveConfig) *Interactive { | ||
| @@ -744,7 +744,7 @@ func (i *Interactive) handleKey(ctx context.Context, k tui.Key) (done bool) { | |||||
| 744 | i.suggest.Reset() | 744 | i.suggest.Reset() | ||
| 745 | i.mu.Lock() | 745 | i.mu.Lock() | ||
| 746 | i.queued = nil | 746 | i.queued = nil | ||
| 747 | - | i.statusOK = "input cleared — ctrl+c again to exit" | 747 | + | i.statusOK = "input cleared" |
| 748 | i.statusErr = "" | 748 | i.statusErr = "" | ||
| 749 | i.mu.Unlock() | 749 | i.mu.Unlock() | ||
| 750 | i.armCtrlCExit() | 750 | i.armCtrlCExit() | ||