sideby 0.41.2 → 0.41.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/build.json +1 -1
  2. package/dist/src/cli/commands.js +163 -32
  3. package/dist/src/cli/json-schemas.js +41 -4
  4. package/dist/src/cli/main.js +17 -6
  5. package/dist/src/core/cli-commands.js +1 -1
  6. package/dist/src/core/config.d.ts +16 -0
  7. package/dist/src/core/config.js +262 -42
  8. package/dist/src/core/history-project.d.ts +14 -0
  9. package/dist/src/core/history-project.js +42 -12
  10. package/dist/src/core/history.d.ts +4 -6
  11. package/dist/src/core/history.js +5 -15
  12. package/dist/src/core/local-build.d.ts +12 -0
  13. package/dist/src/core/local-build.js +32 -0
  14. package/dist/src/core/search-catalog.js +27 -0
  15. package/dist/src/core/unattended-followup.d.ts +62 -0
  16. package/dist/src/core/unattended-followup.js +205 -0
  17. package/dist/src/core/unattended-pending.d.ts +11 -3
  18. package/dist/src/core/unattended-pending.js +34 -8
  19. package/dist/src/families/claude/history.js +9 -1
  20. package/dist/src/families/history.d.ts +22 -2
  21. package/dist/src/families/history.js +55 -0
  22. package/dist/src/handoff/messages.js +1 -1
  23. package/dist/src/panel/handler.d.ts +11 -4
  24. package/dist/src/panel/handler.js +50 -25
  25. package/dist/src/panel/i18n.d.ts +23 -1
  26. package/dist/src/panel/i18n.js +48 -4
  27. package/dist/src/panel/page-logic.d.ts +53 -0
  28. package/dist/src/panel/page-logic.js +96 -0
  29. package/dist/src/panel/page-script.js +140 -36
  30. package/dist/src/panel/page-styles.js +17 -0
  31. package/dist/src/unattended/hook.d.ts +10 -5
  32. package/dist/src/unattended/hook.js +17 -12
  33. package/package.json +1 -1
  34. package/schemas/unattended-pending.json +156 -56
  35. package/skills/sideby/SKILL.md +2 -1
  36. package/skills/sideby/references/diagnose.md +1 -0
  37. package/skills/sideby/references/handoff.md +1 -1
  38. package/skills/sideby/references/panel.md +1 -1
  39. package/skills/sideby/references/unattended.md +16 -5
@@ -4,7 +4,8 @@
4
4
  "type": "object",
5
5
  "required": [
6
6
  "schemaVersion",
7
- "pending"
7
+ "pending",
8
+ "projects"
8
9
  ],
9
10
  "properties": {
10
11
  "schemaVersion": {
@@ -14,83 +15,182 @@
14
15
  "pending": {
15
16
  "type": "array",
16
17
  "items": {
17
- "type": "object",
18
- "required": [
19
- "id",
20
- "at",
21
- "kind",
22
- "family",
23
- "text"
24
- ],
25
- "properties": {
26
- "id": {
27
- "type": "string"
28
- },
29
- "at": {
30
- "type": "string",
31
- "description": "When it was kept; ISO."
32
- },
33
- "kind": {
34
- "anyOf": [
35
- {
18
+ "allOf": [
19
+ {
20
+ "type": "object",
21
+ "required": [
22
+ "id",
23
+ "at",
24
+ "kind",
25
+ "family",
26
+ "text"
27
+ ],
28
+ "properties": {
29
+ "id": {
30
+ "type": "string"
31
+ },
32
+ "at": {
33
+ "type": "string",
34
+ "description": "When it was kept; ISO."
35
+ },
36
+ "kind": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "const": "question"
41
+ },
42
+ {
43
+ "type": "string",
44
+ "const": "permission"
45
+ },
46
+ {
47
+ "type": "string",
48
+ "const": "deferred"
49
+ }
50
+ ],
51
+ "description": "question: the ask tool was refused; permission: a permission request Claude Code was about to show was refused; deferred: kept with `sideby unattended defer`."
52
+ },
53
+ "family": {
54
+ "type": "string"
55
+ },
56
+ "account": {
57
+ "type": "string",
58
+ "description": "The account the session ran as."
59
+ },
60
+ "sessionId": {
61
+ "type": "string"
62
+ },
63
+ "cwd": {
64
+ "type": "string"
65
+ },
66
+ "agentId": {
36
67
  "type": "string",
37
- "const": "question"
68
+ "description": "The subagent a permission request came from."
38
69
  },
39
- {
70
+ "agentType": {
40
71
  "type": "string",
41
- "const": "permission"
72
+ "description": "Its type, such as `general-purpose`."
42
73
  },
43
- {
74
+ "text": {
44
75
  "type": "string",
45
- "const": "deferred"
76
+ "description": "The question and its options, the tool and what it was to do, or the deferred text; at most 4000 characters."
77
+ },
78
+ "waited": {
79
+ "type": "integer",
80
+ "minimum": 1,
81
+ "description": "Minutes the question or permission prompt was on screen with nobody answering before the session went on without an answer (Answer Wait, ADR-0077). Absent when it was never shown."
82
+ },
83
+ "doneAt": {
84
+ "type": "string",
85
+ "description": "When it was marked done; ISO."
46
86
  }
47
- ],
48
- "description": "question: the ask tool was refused; permission: a permission request Claude Code was about to show was refused; deferred: kept with `sideby unattended defer`."
49
- },
50
- "family": {
51
- "type": "string"
52
- },
53
- "account": {
54
- "type": "string",
55
- "description": "The account the session ran as."
56
- },
57
- "sessionId": {
58
- "type": "string"
59
- },
60
- "cwd": {
61
- "type": "string"
87
+ }
62
88
  },
63
- "agentId": {
89
+ {
90
+ "type": "object",
91
+ "required": [
92
+ "project",
93
+ "projectName",
94
+ "state"
95
+ ],
96
+ "properties": {
97
+ "project": {
98
+ "type": "string",
99
+ "description": "The Project: the git repository of its folder (a worktree counts as its main repository; a folder that is gone counts as the repository of the nearest folder still there), else the folder itself; \"\" when it has no folder."
100
+ },
101
+ "projectName": {
102
+ "type": "string",
103
+ "description": "The Project's short name, as Session History shows it; \"\" when it has no folder."
104
+ },
105
+ "state": {
106
+ "anyOf": [
107
+ {
108
+ "type": "string",
109
+ "const": "open"
110
+ },
111
+ {
112
+ "type": "string",
113
+ "const": "replied"
114
+ },
115
+ {
116
+ "type": "string",
117
+ "const": "done"
118
+ }
119
+ ],
120
+ "description": "done: marked done; replied: not marked, and the user typed in its session after it was kept (that does not tell whether it was finished); open: not marked, and nothing typed after it."
121
+ },
122
+ "repliedAt": {
123
+ "type": "string",
124
+ "description": "With `replied`: when the user first typed in the session after it; ISO."
125
+ },
126
+ "replyCheck": {
127
+ "anyOf": [
128
+ {
129
+ "type": "string",
130
+ "const": "no-record"
131
+ },
132
+ {
133
+ "type": "string",
134
+ "const": "unsupported"
135
+ }
136
+ ],
137
+ "description": "Why sideby could not tell whether the user typed in the session afterwards: its session record is gone, or sideby reads no session records of this Family. Only on an open one with a session id."
138
+ }
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ "description": "Open Pending Decisions, oldest first; with --all the done ones too; with --project only that Project's."
144
+ },
145
+ "projects": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "object",
149
+ "required": [
150
+ "project",
151
+ "projectName",
152
+ "open",
153
+ "replied",
154
+ "done"
155
+ ],
156
+ "properties": {
157
+ "project": {
64
158
  "type": "string",
65
- "description": "The subagent a permission request came from."
159
+ "description": "The Project, as in each row; \"\" for those without a folder."
66
160
  },
67
- "agentType": {
161
+ "projectName": {
68
162
  "type": "string",
69
- "description": "Its type, such as `general-purpose`."
163
+ "description": "Its short name; \"\" for those without a folder."
70
164
  },
71
- "text": {
72
- "type": "string",
73
- "description": "The question and its options, the tool and what it was to do, or the deferred text; at most 4000 characters."
165
+ "open": {
166
+ "type": "integer",
167
+ "description": "Open ones nobody typed after."
74
168
  },
75
- "waited": {
169
+ "replied": {
76
170
  "type": "integer",
77
- "minimum": 1,
78
- "description": "Minutes the question or permission prompt was on screen with nobody answering before the session went on without an answer (Answer Wait, ADR-0077). Absent when it was never shown."
171
+ "description": "Open ones the user typed in their session after."
79
172
  },
80
- "doneAt": {
81
- "type": "string",
82
- "description": "When it was marked done; ISO."
173
+ "done": {
174
+ "type": "integer",
175
+ "description": "Done ones (only with --all)."
83
176
  }
84
177
  }
85
178
  },
86
- "description": "Open Pending Decisions, oldest first; with --all the done ones too."
179
+ "description": "Each Project with a listed one, as the Panel orders them: those with an open one first (the newest open one first), then the rest by their newest one, the one without a folder last."
87
180
  },
88
181
  "done": {
89
182
  "type": "array",
90
183
  "items": {
91
184
  "type": "string"
92
185
  },
93
- "description": "`pending done`: the ids marked done."
186
+ "description": "`pending done`: the ids this call marked done (not ones done already)."
187
+ },
188
+ "reopened": {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ },
193
+ "description": "`pending reopen`: the ids this call opened again (not ones open already)."
94
194
  },
95
195
  "_notice": {
96
196
  "type": "object",
@@ -155,5 +255,5 @@
155
255
  "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
156
256
  }
157
257
  },
158
- "title": "sideby unattended pending [done <id>|--all] --json"
258
+ "title": "sideby unattended pending [--project <name>] [done <id>|--ids|--all|--replied] [reopen <id>|--ids] --json"
159
259
  }
@@ -2,7 +2,7 @@
2
2
  name: sideby
3
3
  description: Use when the user runs, or wants to run, several AI coding accounts (Claude Code, Codex, Grok Build, pi) side by side. Covers installing sideby and setting up a new account ("install sideby", "set up another Claude account", "add cc008", "配置一个 cc00x", "再加一个 Codex 账号"), explaining what accounts share and what stays separate ("what do my accounts share?", "这些账号共享了什么"), showing which account a session is ("show [cc001] in the status line", "加上账号标识"), finding a past session of any account ("找一下我上周改登录页的那个会话"), telling another running session something, in any account ("告诉 cc002 ……", "给跑构建的那个会话发消息"; Claude Code's own SendMessage reaches only sessions of the same account), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, moving the current task to another account ("用 cc008 继续", "交回 cc008"), adding a short command (alias) or a pick command that starts whichever account has the most quota ("加个 cc"), adding an API account from a vendor's docs ("加一个 DeepSeek API 账号"), supporting a new tool, and repairing drifted account directories (skills, hooks, rules or settings not shared, wrong symlinks, credential file permissions). Drives the `sideby` CLI with `--json`; the agent does every step except browser sign-in, filling in secrets and starting interactive sessions, which it hands to the user as one command (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
4
4
  metadata:
5
- version: "0.41.2"
5
+ version: "0.41.3"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help
@@ -85,6 +85,7 @@ Account refs are `<family>:<name>`; a bare `<name>` works only when it is unique
85
85
  | Claude asks "Is this a project you created or one you trust?" (Quick safety check, Accessing workspace) in one account although another of the user's Claude accounts already trusts the folder, or a handoff ended at that question ("别的账号已经信任过了还问", "每个账号都要点一次信任", "stop asking me to trust this folder in every account", "接力时卡在信任文件夹") | `sideby trust --json` (setting, and while on, `--dir <folder>` shows each account's trust as booleans), then `sideby trust on --json` (exits 10 with the change; rerun with `--yes` after they agree); `sideby trust undo` (exits 10 first) takes the copies back; `sideby trust off` keeps them | `references/trust.md` |
86
86
  | Stop Claude and Codex when the network is wrong ("网络不对时别让 Claude 用", "代理断了就拦住", "only allow US and Japan", "开网络检查"), see where requests leave from now, or a session says it was blocked | `sideby network --json`, `sideby network check --json`, `sideby network allow <CC>... --json` and `sideby network on --json` (each exits 10 first; rerun with `--yes` after they agree) | `references/network.md` |
87
87
  | Leave sessions running with nobody there ("挂机", "无人值守", "今晚自己跑完", "设个时间段别问我", "keep going while I sleep"), set a nightly Schedule, or see what was left for the user | `sideby unattended on [--until 08:00] --json` (run it yourself when they say they are leaving), `sideby unattended schedule preset weeknights --json`, `sideby unattended --json`, `sideby unattended pending --json`; inside a session refused a question: `sideby unattended defer "<one sentence>"` | `references/unattended.md` |
88
+ | What sessions left for the user, by project, and which of it they already dealt with ("哪些待我决定的处理过了", "真正没处理的是哪些", "按项目看待我决定的", "标错了恢复", "which pending decisions did I already answer") | `sideby unattended pending --json` (`state`: `open` nobody touched it since, `replied` the user wrote in that session afterwards, which does not tell whether it was finished; `projects` has each project's counts), `--project <name>` for one project; list each one to the user first, then `sideby unattended pending done <id>` or `done --ids <a>,<b> --json` for the ones they agree to; `sideby unattended pending reopen <id> --json` puts back a wrong mark | `references/unattended.md` |
88
89
  | How long a question waits before the session goes on without an answer ("问题没人回就自动按推荐继续", "问题等我 30 分钟", "别自动继续,一直等我", "how long does a question wait for me") | `sideby unattended wait --json` shows `answerWait`; `sideby unattended wait <1-120> --json` or `sideby unattended wait off --json` sets it. It acts only while Unattended Mode is on, and never answers "yes" | `references/unattended.md` |
89
90
  | The user is back early and wants questions in one session ("我回来了,会话怎么还不问我", "为什么这个会话又开始问我", "I'm back, why doesn't it ask me"), or asks which sessions ask as usual | Tell them to type in that session: it asks as usual for 30 minutes after each message. `sideby unattended --json` lists them (`attended`); there is no command to set it. `sideby unattended off --json` turns it off everywhere | `references/unattended.md` |
90
91
  | A session waits on background work and says nothing for a long time ("后台任务跑着时没动静", "等子任务时隔一阵告诉我进度", "tell me what it is waiting for every 30 minutes", "进度提醒"), or stop those updates ("别再报进度了", "turn off progress updates") | `sideby progress --json`, then `sideby progress on [--every <minutes>] --json` or `sideby progress off --json` (writes only sideby's config, no preview; relay that each update uses quota and that only Claude sessions started afterwards get it) | `references/progress.md` |
@@ -27,6 +27,7 @@ Shared Items the Main Account does not have are skipped: no Finding, not counted
27
27
  | name looks like a backup (`bak`, `backup`, `old`, `tmp`) | A stray directory was picked up as an account | Suggest adding its ref to `ignore` in `${XDG_CONFIG_HOME:-~/.config}/sideby/config.json` |
28
28
  | `login: "not-needed"` (`key` in `sideby list`) | API account; it authenticates with `proxy.env` | Nothing to do |
29
29
  | `loginProblem: { kind: "expired" }` in `list --json`, `warn` `login.expired` in `doctor` (`expired` in `sideby list`) | An Expired Login: the account is still signed in on disk, but its Host said the login expired (Claude Code: "Login reached its time limit") and nothing has worked since. `sideby next`, Auto Handoff and pick commands skip it | Give the user `sideby login <ref>` (see `accounts.md`, "Sign in again after an expired login"); `doctor --fix` cannot fix it |
30
+ | `config key "<key>" is not one sideby <version> knows` (stderr of `sideby list`, text of `sideby doctor`) | The config has a key this sideby does not know: a newer sideby wrote it, or it is a typo. It is ignored; everything else works | Offer `sideby update`; if the user does not want the key, `sideby config unset <key>` (exit 10, then `--yes`) |
30
31
  | `problems` on an account in `list --json` | A plugin failed while reading it (for example a settings file that is not valid JSON) | Show the message; the account itself still works |
31
32
  | quota `unavailable` / `not-enabled` | Quota checks for that tool are off (config `quota.check.<family>: false`) or it runs in CI | Offer `sideby quota check <family> on` |
32
33
  | quota `unavailable` / `no-session` | No session since the source was enabled | Ask the user to start one session with that account |
@@ -43,7 +43,7 @@ Use this when the user says an account hit its 5-hour or weekly limit ("usage li
43
43
 
44
44
  With config `"handoff": { "auto": true }`, a session sideby started hands its task to the next account when quota runs low; see the guide's Auto Handoff section for the settings. If you are in such a session (the environment has `SIDEBY_HANDOFF_RUN`):
45
45
 
46
- - When sideby tells you the quota is at 80%, write the handoff brief at the path it names and keep it current (do not tell the user that another account will take over; sideby decides that and says so itself): the goal, what is done, the remaining steps, key decisions and why, the files that matter. Reference specs, ADRs, commits and diffs by path; list the skills the next agent should use; never include keys, passwords or personal data.
46
+ - When sideby tells you the quota is at 80%, write the handoff brief at the path it names and keep it current (do not tell the user that another account will take over; sideby decides that and says so itself): the goal, what is done, the remaining steps, key decisions and why, the files that matter. Reference specs, ADRs, commits and diffs by path; list the skills the next agent should use; never include keys, passwords or personal data. Copy any standing permission or limit the user gave word for word, saying where it comes from (a file's path, or the user's message), and add no limit the user did not give.
47
47
  - When it says a window is about to run out (the message names it, such as "weekly (7d) quota is at 98%"; each window hands over at its own pace, ADR-0032), finish the current step, update the brief, and end your turn. sideby starts the next account from it.
48
48
  - End the brief with the line `<!-- handoff brief complete -->` once it is complete. Without it sideby asks once more, then adds its own records under what you wrote.
49
49
  - When a user asks why a session handed over "with 95% left": the 5-hour and weekly windows are separate, and the fullest one decides when to hand over. Run `sideby quota` and read both windows. Which account takes over is judged per window: a 5-hour window stops it at 85%, a weekly one at 95% (with the default threshold).
@@ -76,7 +76,7 @@ Every setting in sideby's config has a command. `sideby config get --json` retur
76
76
 
77
77
  Prefer the dedicated command where one exists (`model`, `order`, `pin`, `quota check`, `handoff enable`, `terminal`, `update --auto`); `config` covers the rest, such as the Panel's theme and language: `sideby config set panel.theme dark --json` (`system`, `light`, `dark`) or `sideby config set panel.language zh --json` (`auto`, `en`, `zh`). The editor that "Open settings.json" and `sideby edit` use is `editor`: `sideby config set editor cursor --json` (`system`, the default program, `cursor`, `vscode`, `windsurf`, `zed`); offer it when the user says their editor opened a window but not the file. A value is JSON when it parses (`90`, `true`, `["cc002","codex001"]`), else text. Exit 10 returns `action`, `key`, `before`, `after`, `changed`, `applied: false`: show the change, and run the same command with `--yes` after the user agrees. `sideby config unset <key>` goes back to the default the same way. The Panel picks a change up on its next refresh.
78
78
 
79
- A value the key does not take fails with code `bad-value` and changes nothing; an unknown key `bad-key`. A plugin's own settings are never read or changed through `config` (code `plugin-config`, they may hold secrets); only `plugins.<plugin>.enabled`. `accounts.<ref>.args` takes only model and effort arguments; other Host arguments belong in a short command (`sideby alias add <short> <ref> -- <args>`).
79
+ A value the key does not take fails with code `bad-value` and changes nothing; an unknown key `bad-key`. A key already in the file that this sideby does not know (a newer sideby wrote it, or a typo) is ignored, kept by every change, and named on stderr by `sideby list` and in `sideby doctor`; offer `sideby update`, or `sideby config unset <that key>` (exit 10 first) when the user does not want it. A plugin's own settings are never read or changed through `config` (code `plugin-config`, they may hold secrets); only `plugins.<plugin>.enabled`. `accounts.<ref>.args` takes only model and effort arguments; other Host arguments belong in a short command (`sideby alias add <short> <ref> -- <args>`).
80
80
 
81
81
  ## Start at login
82
82
 
@@ -37,9 +37,9 @@ sideby unattended schedule remove 2 --json # the number `sideby unatt
37
37
 
38
38
  ## When a session was refused a question or a permission
39
39
 
40
- While Unattended Mode is on, do not end your turn on a question either: a turn that ends on one (a `需要你拍板` line, a last line ending in `?`, "Want me to …", "要不要 …") is sent back to you once with the same instructions. End with a final report instead.
40
+ While Unattended Mode is on, do not end your turn on a question either: a turn that ends on one (a `需要你拍板` / `Needs your decision` line anywhere in the message, even with a long report after it, a last line ending in `?`, "Want me to …", "要不要 …") is sent back to you once with the same instructions. End with a final report instead.
41
41
 
42
- The refusal tells you what to do: go on with the recommended option where it can be undone, and list the question and your choice in your final report. A refused permission means Claude Code wanted a person to confirm that step: rewrite it so it needs none (literal paths, `"${VAR:?}"` for a variable in an `rm` target, plain bash syntax, `rm` as a command of its own), or skip it. For anything hard to undo (deleting, sending or posting outside, publishing, deploying, paying), skip it and record it:
42
+ The refusal tells you what to do: go on with the recommended option where it can be undone, and list the question and your choice in your final report. A refused permission means Claude Code wanted a person to confirm that step: rewrite it so it needs none (literal paths, `"${VAR:?}"` for a variable in an `rm` target, plain bash syntax, `rm` as a command of its own), or skip it. For anything hard to undo (deleting, sending or posting outside, publishing, deploying, paying), skip it and record it, unless the user's own rules or project docs already give standing permission for that kind of action (then follow that permission):
43
43
 
44
44
  ```sh
45
45
  sideby unattended defer "deleting the old release branch is left for the user" --json
@@ -75,10 +75,21 @@ When a refusal or a note in your session starts "No answer after 10 minutes", "N
75
75
 
76
76
  ```sh
77
77
  sideby unattended --json # on or off and why, until when, the next Slot, open decisions, coverage, attended sessions
78
- sideby unattended pending --json # each question, refused permission or skipped action, with account, session and folder
79
- sideby unattended pending done <id> --json # or --all, once the user has dealt with them
78
+ sideby unattended pending --json # each question, refused permission or skipped action, with account, session, folder, project and state
79
+ sideby unattended pending --project shop --json # only one project (its short name, or a path)
80
+ sideby unattended pending done <id> --json # once the user says this one is dealt with
81
+ sideby unattended pending done --ids <a>,<b> --json # the ones the user agreed to, by id
82
+ sideby unattended pending reopen <id> --json # or --ids <a>,<b>: put back ones marked done by mistake
80
83
  ```
81
84
 
85
+ **By project, and what was already dealt with** (ADR-0078). Each Pending Decision has a `project` (the git repository of the folder the session worked in; a worktree, also a deleted one under the repository, counts as the repository; `""` without a folder) and a `projectName`; `projects` lists each project with its `open`, `replied` and `done` counts, what nobody touched first. `state` says where each one stands:
86
+
87
+ - `open`: nobody typed in its session after it was kept. Start with these.
88
+ - `replied`: the user wrote in that session afterwards (`repliedAt`), read from the session's own record (Claude and Codex). Say it that way, never "handled" or "probably handled": in one hand check about a third of these were not finished. Slash commands, `!` lines, Messages from other sessions, background notifications and sideby's own notes do not count.
89
+ - `done`: marked done (only with `--all`).
90
+
91
+ `replyCheck: "no-record"` means the session's record is gone, so sideby cannot tell; `"unsupported"` that it reads no session records of that tool (Grok, pi). When the user asks which ones they already dealt with, list the open ones by project, and say per project how many they wrote in afterwards; those still need a look. Before marking anything done, list each one you would mark (id, project, text) for the user to see, and mark only the ones they agree to, with `done <id>` or `done --ids <a>,<b>`. Never mark a whole project or every `replied` one on your own (`done --replied`, `done --project`, `--all` exist for the user who asks for exactly that). One marked by mistake goes back with `sideby unattended pending reopen <id>` (or `--ids`).
92
+
82
93
  Go through the open ones with the user (one with `waited` was on screen that many minutes before the session went on without an answer; a `deferred` one that starts "The session stopped" is a session whose turn kept failing after three retries; a `permission` one names the tool, for Bash only the program and the model's description of the step, and `agentType` when a subagent asked; the whole command is in the session itself). A decision with a `sessionId` can be continued in its session: `sideby sessions copy <sessionId> --as resume` copies the command. Done ones are deleted 30 days later. A plugin can be told when a stretch ends through the `unattended.ended` event (`docs/guide/plugins.md`); sideby itself sends no notification.
83
94
 
84
- The same is on the Panel's **Unattended** tab (`sideby ui`): the status with **Turn on now**, the Schedule, **If nobody answers** (the Answer Wait), and the Pending Decisions with **Done** (one that went on after a wait says "No answer for 10 min"). Point the user there when they prefer clicking.
95
+ The same is on the Panel's **Unattended** tab (`sideby ui`): the status with **Turn on now**, the Schedule, **If nobody answers** (the Answer Wait), and the Pending Decisions by project, then by session, with **Done** (one that went on after a wait says "No answer for 10 min"); in each project the untouched ones show and the ones written in afterwards fold under **You wrote afterwards (N)**, where each has its own **Done** and a counted button marks them all after a caution. Every **Done** has its own Undo, and the folded **Done (N)** list at the end has **Reopen**. Point the user there when they prefer clicking.