detached 4dde650

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 {
148148 }
149149
150150 // 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
154154
155155 // NewInteractive constructs an Interactive from cfg.
156156 func NewInteractive(cfg InteractiveConfig) *Interactive {
@@ -744,7 +744,7 @@ func (i *Interactive) handleKey(ctx context.Context, k tui.Key) (done bool) {
744744 i.suggest.Reset()
745745 i.mu.Lock()
746746 i.queued = nil
747- i.statusOK = "input cleared — ctrl+c again to exit"
747+ i.statusOK = "input cleared"
748748 i.statusErr = ""
749749 i.mu.Unlock()
750750 i.armCtrlCExit()
@@ -148,9 +148,9 @@ type Interactive struct {
148 }148 }
149 149
150 // welcomeVersionDuration is how long the welcome banner shows the150 // welcomeVersionDuration is how long the welcome banner shows the
151-// version suffix before reverting to the plain headline. 1 second151+// 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.Second153+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 = nil746 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()

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close