detached f7bf4a9

chore: gofmt spontaneous panel files

Co-authored-by: Raymond Gasper <raymondgasper@fastmail.com>
commit
f7bf4a9d41566ee1332b6ee7dec1b78718cf1905
author
patriceckhart · · 2026-06-08 17:41 UTC
parent
af6c526
signature
unsigned
refs
tag: v0.2.21
2 files · +7 -5
M packages/agent/ext/ext_test.go +6 -4
@@ -20,8 +20,8 @@ import (
2020 // occur if the test goroutine alternated between writing and reading
2121 // a synchronous pipe.
2222 type extHarness struct {
23- ext *Extension
24- hostW *io.PipeWriter // test writes here → ext reads as stdin
23+ ext *Extension
24+ hostW *io.PipeWriter // test writes here → ext reads as stdin
2525 frames chan rawFrame // ext→host frames delivered here
2626 }
2727
@@ -249,9 +249,11 @@ func TestBlockingToolDenied(t *testing.T) {
249249 h.ext.OnPanelKey(pid, func(key, text string) {
250250 switch {
251251 case key == "rune" && text == "y":
252- h.ext.ClosePanel(pid); approved <- true
252+ h.ext.ClosePanel(pid)
253+ approved <- true
253254 case key == "rune" && text == "n", key == "esc":
254- h.ext.ClosePanel(pid); approved <- false
255+ h.ext.ClosePanel(pid)
256+ approved <- false
255257 }
256258 }, func() { approved <- false })
257259
@@ -20,8 +20,8 @@ import (
20 // occur if the test goroutine alternated between writing and reading20 // occur if the test goroutine alternated between writing and reading
21 // a synchronous pipe.21 // a synchronous pipe.
22 type extHarness struct {22 type extHarness struct {
23- ext *Extension23+ ext *Extension
24- hostW *io.PipeWriter // test writes here → ext reads as stdin24+ hostW *io.PipeWriter // test writes here → ext reads as stdin
25 frames chan rawFrame // ext→host frames delivered here25 frames chan rawFrame // ext→host frames delivered here
26 }26 }
27 27
@@ -249,9 +249,11 @@ func TestBlockingToolDenied(t *testing.T) {
249 h.ext.OnPanelKey(pid, func(key, text string) {249 h.ext.OnPanelKey(pid, func(key, text string) {
250 switch {250 switch {
251 case key == "rune" && text == "y":251 case key == "rune" && text == "y":
252- h.ext.ClosePanel(pid); approved <- true252+ h.ext.ClosePanel(pid)
253+ approved <- true
253 case key == "rune" && text == "n", key == "esc":254 case key == "rune" && text == "n", key == "esc":
254- h.ext.ClosePanel(pid); approved <- false255+ h.ext.ClosePanel(pid)
256+ approved <- false
255 }257 }
256 }, func() { approved <- false })258 }, func() { approved <- false })
257 259
M packages/agent/extproto/extproto.go +1 -1
@@ -102,7 +102,7 @@ type PanelSpec struct {
102102 // CommandResponseFromExt, this form is uncoupled from any command invocation
103103 // and may be sent from a tool handler goroutine or any background context.
104104 type OpenPanelFromExt struct {
105- Type string `json:"type"` // "open_panel"
105+ Type string `json:"type"` // "open_panel"
106106 Panel PanelSpec `json:"panel"`
107107 }
108108
@@ -102,7 +102,7 @@ type PanelSpec struct {
102 // CommandResponseFromExt, this form is uncoupled from any command invocation102 // CommandResponseFromExt, this form is uncoupled from any command invocation
103 // and may be sent from a tool handler goroutine or any background context.103 // and may be sent from a tool handler goroutine or any background context.
104 type OpenPanelFromExt struct {104 type OpenPanelFromExt struct {
105- Type string `json:"type"` // "open_panel"105+ Type string `json:"type"` // "open_panel"
106 Panel PanelSpec `json:"panel"`106 Panel PanelSpec `json:"panel"`
107 }107 }
108 108

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