detached 7a384bc

fix(daemon): use NoticeClipboard for empty yank-history warn

NoticeInternal is reserved for unclassified failures; an empty
notification history is a known, benign outcome of the yank command,
not an internal error.
commit
7a384bc6a5e9760cb3b30756a849c4e1824d85c8
author
brice · · 2026-07-20 17:11 UTC
parent
2cb5bb3
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +2 -2
M internal/usecase/daemon/notices_overlay_test.go +1 -1
@@ -203,7 +203,7 @@ func TestYankLastNotificationWithEmptyHistoryShowsWarnToast(t *testing.T) {
203203
204204 history := d.notices.history()
205205 require.Len(t, history, 1)
206- require.Equal(t, domain.NoticeInternal, history[0].Code)
206+ require.Equal(t, domain.NoticeClipboard, history[0].Code)
207207 require.Equal(t, domain.NoticeWarn, history[0].Severity)
208208 require.Equal(t, "no notifications yet", history[0].Message)
209209 }
@@ -203,7 +203,7 @@ func TestYankLastNotificationWithEmptyHistoryShowsWarnToast(t *testing.T) {
203 203
204 history := d.notices.history()204 history := d.notices.history()
205 require.Len(t, history, 1)205 require.Len(t, history, 1)
206- require.Equal(t, domain.NoticeInternal, history[0].Code)206+ require.Equal(t, domain.NoticeClipboard, history[0].Code)
207 require.Equal(t, domain.NoticeWarn, history[0].Severity)207 require.Equal(t, domain.NoticeWarn, history[0].Severity)
208 require.Equal(t, "no notifications yet", history[0].Message)208 require.Equal(t, "no notifications yet", history[0].Message)
209 }209 }
M internal/usecase/daemon/palette.go +1 -1
@@ -491,7 +491,7 @@ func (e paletteExec) YankLastNotification() error {
491491 // Reported directly rather than returned: the generic cmd.Run error
492492 // path only logs, so a returned error here would never reach the
493493 // user as the warn toast this no-op is supposed to produce.
494- e.d.reportError(e.sess, domain.UserWarn(domain.NoticeInternal, "no notifications yet", nil))
494+ e.d.reportError(e.sess, domain.UserWarn(domain.NoticeClipboard, "no notifications yet", nil))
495495 return nil
496496 }
497497 e.d.yankNotice(e.sess, e.ac, n)
@@ -491,7 +491,7 @@ func (e paletteExec) YankLastNotification() error {
491 // Reported directly rather than returned: the generic cmd.Run error491 // Reported directly rather than returned: the generic cmd.Run error
492 // path only logs, so a returned error here would never reach the492 // path only logs, so a returned error here would never reach the
493 // user as the warn toast this no-op is supposed to produce.493 // user as the warn toast this no-op is supposed to produce.
494- e.d.reportError(e.sess, domain.UserWarn(domain.NoticeInternal, "no notifications yet", nil))494+ e.d.reportError(e.sess, domain.UserWarn(domain.NoticeClipboard, "no notifications yet", nil))
495 return nil495 return nil
496 }496 }
497 e.d.yankNotice(e.sess, e.ac, n)497 e.d.yankNotice(e.sess, e.ac, n)

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 12

Tags 11

↑↓ moveenter openesc close