zachzhao1984 on Discord: some agents' sessions can't be deleted on the
Sessions page. Droid was one of them.
What changed (internal/sessions/manage.go): "droid" is Deletable. A
Droid session goes to the trash whole: its transcript, its
.settings.json beside it, and a subagent's two files. Nothing of another
session goes with it, and Restore puts them all back. A session written
to just now is left alone (ErrActive), as for every other agent. The
package comment now also says why OpenCode, ZCode, Grok Build, Kimi Code
and Claude Desktop (Cowork) sessions stay list-only.
Guarded by internal/sessions/droid_manage_test.go
(TestDroidDeleteRestore).
Broken by hand:
- "droid" taken out of Deletable: FAIL "droid not deletable".
- The .settings.json no longer added to the session's paths: FAIL "a
session just written: <nil>". The settings file isn't counted as the
session's, so a write to it no longer holds the delete back.
Record for this push: 13 commits on origin/main ca4a1cde0, head tree
539c84e92. Go 1.26.8, sandbox HOME, GOMODCACHE/GOCACHE pinned. The full Go
run and vet were at tree d6393dfc8, the same Go code as this head: only
app.js comments (cut under the core script budget) and one ja string
changed after it.
- gofmt -l: nothing. go build ./...; go vet ./... (darwin), GOOS=linux
go vet -tags nogui ./..., GOOS=windows go vet ./...: clean.
- go test -timeout 45m ./..., through tee, one suite on the machine:
68 packages ok. The one red was internal/gui's
TestCoreScriptBudget: app.js 1,335,314 > 1,335,000, since main grew
app.js under the stack. The autoscroll commit's own comments were cut
(to 1,334,629) rather than the budget raised, and go test -count=1
./internal/gui is ok at this head (113s). Packages the run took from
Go's test cache had the same inputs.
- GUI: the 18 files this stack touches or names, both engines,
202 of 204 pass (tree 068acf128, this push less the last commit). The
two reds: gui-ja, red on main since c2636b7b5 and fixed by this push's
last commit (gui-ja and i18n-keys 6 of 6 there), and usage-fold's
chromium "several accounts" (#2163, red on main the same way).
- internal/sessions ok, TestDroidDeleteRestore with it.
- sessions-manage and sessions-folder-delete, red in the whole run under
load, pass alone at the stack and on main (#3294, #2218).
The whole GUI suite ran at 1c1fc7183 (this stack's first 12 commits on
0ddcf28a1): 11713 of 11769 pass. Each of the 21 red files was then run
alone at the stack and at origin/main 8278fd9b0. Eight are red the same
way on main: plugin-card-update (#3079), quota-count-wrap and
quota-name-translated (#2228), s3-sync (#2448), usage-agents-hide
(#2276), usage-checkin (#3091), usage-fold's chromium "several
accounts" (#2163), usage-ledger (#3104). The other 13 pass alone on both
and were red only under that run's load (50 to 335): currency #3101,
plugin-github #3218, provider-fetch-again #3292, rest-try-now #2564,
routing-auto-reset #3293, routing-keys-fold #1612, routing-steady #1804,
routing-wb-restricted #1905, sessions-folder-delete #2218,
sessions-manage #3294, switch-only #3295, text-size #1866, usage-pack
#3296.
Not tried: deleting a real Droid session and then opening Droid. No
sessions are in this machine's ~/.factory. The installed droid 0.231.0
binary names no sessions index (grep for session(s)-index, sessionIndex,
session(s)_index found nothing), so nothing is known to be left pointing
at a deleted session. Not tried on Windows or WSL.