detached 1d11cc6

Clear extension errors after successful reload

commit
1d11cc6766ccfe45a253614183f01951c4558eee
author
patriceckhart · · 2026-07-28 16:36 UTC
parent
fb1bc82
signature
unsigned
refs
tag: v0.3.17
3 files · +9 -4
M docs/extensions.md +5 -4
@@ -645,10 +645,11 @@ done. Explicit `--ext` paths are remembered and reloaded alongside
645645 discovered extensions. The temporary reload status reports each load
646646 error in red, including its message, and dismisses itself after five
647647 seconds. Extension failures from startup and `/reload-ext` remain in the
648-scrolling chat until `/clear`, without being sent to the model or saved in
649-the session transcript. Subprocess startup and handshake errors include the
650-exact stderr log path for the failed extension. If a subprocess exits before
651-sending `hello`, the error also reports its exit status or terminating signal.
648+scrolling chat until a successful reload or `/clear`, without being sent to
649+the model or saved in the session transcript. Subprocess startup and
650+handshake errors include the exact stderr log path for the failed extension.
651+If a subprocess exits before sending `hello`, the error also reports its exit
652+status or terminating signal.
652653
653654 ### TypeScript / Python
654655
@@ -645,10 +645,11 @@ done. Explicit `--ext` paths are remembered and reloaded alongside
645 discovered extensions. The temporary reload status reports each load645 discovered extensions. The temporary reload status reports each load
646 error in red, including its message, and dismisses itself after five646 error in red, including its message, and dismisses itself after five
647 seconds. Extension failures from startup and `/reload-ext` remain in the647 seconds. Extension failures from startup and `/reload-ext` remain in the
648-scrolling chat until `/clear`, without being sent to the model or saved in648+scrolling chat until a successful reload or `/clear`, without being sent to
649-the session transcript. Subprocess startup and handshake errors include the649+the model or saved in the session transcript. Subprocess startup and
650-exact stderr log path for the failed extension. If a subprocess exits before650+handshake errors include the exact stderr log path for the failed extension.
651-sending `hello`, the error also reports its exit status or terminating signal.651+If a subprocess exits before sending `hello`, the error also reports its exit
652+status or terminating signal.
652 653
653 ### TypeScript / Python654 ### TypeScript / Python
654 655
M packages/agent/modes/reload_ext.go +1 -0
@@ -42,6 +42,7 @@ func (i *Interactive) setReloadStatus(msg string, failed bool) uint64 {
4242 }
4343 i.statusOK = msg
4444 i.statusErr = ""
45+ i.reloadErrors = nil
4546 return i.reloadStatusSeq
4647 }
4748
@@ -42,6 +42,7 @@ func (i *Interactive) setReloadStatus(msg string, failed bool) uint64 {
42 }42 }
43 i.statusOK = msg43 i.statusOK = msg
44 i.statusErr = ""44 i.statusErr = ""
45+ i.reloadErrors = nil
45 return i.reloadStatusSeq46 return i.reloadStatusSeq
46 }47 }
47 48
M packages/agent/modes/reload_ext_test.go +3 -0
@@ -58,6 +58,9 @@ func TestSetReloadStatusUsesErrorChannelForFailures(t *testing.T) {
5858 if i.statusOK != "reload complete" || i.statusErr != "" {
5959 t.Fatalf("successful reload status used wrong channel: err=%q ok=%q", i.statusErr, i.statusOK)
6060 }
61+ if len(i.reloadErrors) != 0 {
62+ t.Fatalf("reload errors = %q after successful reload, want none", i.reloadErrors)
63+ }
6164 }
6265
6366 func TestStartupExtensionFailureAppearsInChatWithoutEnteringContext(t *testing.T) {
@@ -58,6 +58,9 @@ func TestSetReloadStatusUsesErrorChannelForFailures(t *testing.T) {
58 if i.statusOK != "reload complete" || i.statusErr != "" {58 if i.statusOK != "reload complete" || i.statusErr != "" {
59 t.Fatalf("successful reload status used wrong channel: err=%q ok=%q", i.statusErr, i.statusOK)59 t.Fatalf("successful reload status used wrong channel: err=%q ok=%q", i.statusErr, i.statusOK)
60 }60 }
61+ if len(i.reloadErrors) != 0 {
62+ t.Fatalf("reload errors = %q after successful reload, want none", i.reloadErrors)
63+ }
61 }64 }
62 65
63 func TestStartupExtensionFailureAppearsInChatWithoutEnteringContext(t *testing.T) {66 func TestStartupExtensionFailureAppearsInChatWithoutEnteringContext(t *testing.T) {

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