Commit Graph
1 Commits
Author SHA1 Message Date
yetone 7b97e69eb3 sessions: a Codex Desktop chat folder is a draft session, in the same group as ZCode's (Flandern1211 on X, #5769)
Follows the cherry-picked 570633390 (Flandern1211): leftover Codex subagent
threads of a deleted parent are no rows, Codex's own threads only count in the
provider bar, a gateway session that spent nothing is no row. Rebased onto
main's Draft sessions group (zcodeDraft now also takes Codex's
~/Documents/Codex/<date>/<name>, temp folders and worktrees).

Run: go test ./internal/sessions, ./internal/usage and gui -tags nogui
'Session|Gateway|Manage' on WSL: ok; go vet linux nogui and windows: clean;
GUI sessions-codex-drafts (new), sessions-zcode-drafts, sessions-folder-list in
chromium and webkit: ok. Broken by hand: without keptSubagents
TestCodexSubagentWhoseParentIsGone is red.
Not tried: a live Codex Desktop; the full suite.
2026-11-11 15:09:32 +08:00