sideby 0.39.0 → 0.40.1
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.
- package/README.md +2 -2
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.js +34 -3
- package/dist/src/cli/json-schemas.js +9 -2
- package/dist/src/cli/main.js +10 -2
- package/dist/src/core/cli-commands.js +12 -0
- package/dist/src/core/config.d.ts +1 -0
- package/dist/src/core/config.js +3 -0
- package/dist/src/core/handoff-run.js +192 -175
- package/dist/src/core/progress-state.d.ts +21 -7
- package/dist/src/core/progress-state.js +32 -8
- package/dist/src/core/search-catalog.js +18 -0
- package/dist/src/core/session-hooks.d.ts +7 -0
- package/dist/src/core/session-hooks.js +27 -0
- package/dist/src/core/unattended-pending.d.ts +14 -2
- package/dist/src/core/unattended-pending.js +27 -3
- package/dist/src/core/unattended-state.d.ts +19 -1
- package/dist/src/core/unattended-state.js +31 -5
- package/dist/src/core/unattended-wait.d.ts +86 -0
- package/dist/src/core/unattended-wait.js +125 -0
- package/dist/src/core/unattended.d.ts +19 -0
- package/dist/src/core/unattended.js +37 -4
- package/dist/src/families/claude/handoff.js +3 -1
- package/dist/src/panel/handler.js +16 -1
- package/dist/src/panel/i18n.d.ts +9 -0
- package/dist/src/panel/i18n.js +26 -8
- package/dist/src/panel/page-script.js +51 -2
- package/dist/src/panel/page-styles.js +7 -0
- package/dist/src/progress/hook.d.ts +7 -0
- package/dist/src/progress/hook.js +18 -11
- package/dist/src/types.d.ts +5 -0
- package/dist/src/unattended/hook.d.ts +21 -6
- package/dist/src/unattended/hook.js +261 -19
- package/package.json +2 -2
- package/schemas/config.json +14 -0
- package/schemas/unattended-defer.json +5 -0
- package/schemas/unattended-pending.json +5 -0
- package/schemas/unattended.json +16 -2
- package/skills/sideby/SKILL.md +3 -2
- package/skills/sideby/references/progress.md +3 -3
- package/skills/sideby/references/unattended.md +16 -2
|
@@ -57,6 +57,20 @@ A Claude session the user types into asks as usual again for 30 minutes after ea
|
|
|
57
57
|
- Only a prompt the user typed counts: not a background task's notification, not a Message from `sideby send` or another session, not the prompt sideby put on the command line, and not your own tool calls. There is no command to set it, and you must not try to make your own session count: if the user wants questions everywhere, run `sideby unattended off --json`.
|
|
58
58
|
- Typing into a terminal by automation (tmux `send-keys`) looks like a person to Claude Code and counts for that one session. Sessions started before this sideby version, and Codex sessions, do not have it.
|
|
59
59
|
|
|
60
|
+
## If nobody answers: questions go on after a wait
|
|
61
|
+
|
|
62
|
+
A question or a permission prompt that a Claude session shows while someone is there (an Attended Session, or Unattended Mode off) waits for the user. Once it has waited the **Answer Wait** (10 minutes unless the user set another; ADR-0077) with nobody answering, and Unattended Mode is on, the session goes on as Unattended Mode would: the question is refused with the instruction to take the recommended option where it can be undone, and the permission prompt is answered "no", never "yes". A turn that ended on a question written as text is woken with the same instructions after the same wait. Each is kept as a Pending Decision with `waited` (minutes). While Unattended Mode is off it keeps waiting, and goes on once the mode comes on (a Slot that begins later, say). So "ask me while I'm here, don't get stuck when I'm not" needs only Unattended Mode on, or a Schedule.
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
sideby unattended wait --json # field answerWait: minutes, or null when it waits however long
|
|
66
|
+
sideby unattended wait 30 --json # 1 to 120 minutes
|
|
67
|
+
sideby unattended wait off --json # questions wait for the user however long
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Set it when the user asks ("问题没人回就自动按推荐继续", "问题等我 30 分钟再继续", "别自动继续,一直等我", "how long does a question wait for me"); each change prints its `undo`. It reaches sessions already running at their next look. Not covered: a background subagent's permission prompt (Claude Code shows it only after the hooks, so it waits for the user), Codex, Grok, pi, and sessions started before this sideby version (restart them).
|
|
71
|
+
|
|
72
|
+
When a refusal or a note in your session starts "No answer after 10 minutes", "Not allowed: nobody confirmed this action in 10 minutes" or "Nobody replied to your question for 10 minutes", that is this: nobody is answering, so do what the note says and do not ask the same thing again.
|
|
73
|
+
|
|
60
74
|
## When the user is back
|
|
61
75
|
|
|
62
76
|
```sh
|
|
@@ -65,6 +79,6 @@ sideby unattended pending --json # each question, refused permission or skipp
|
|
|
65
79
|
sideby unattended pending done <id> --json # or --all, once the user has dealt with them
|
|
66
80
|
```
|
|
67
81
|
|
|
68
|
-
Go through the open ones with the user (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.
|
|
82
|
+
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.
|
|
69
83
|
|
|
70
|
-
The same is on the Panel's **Unattended** tab (`sideby ui`): the status with **Turn on now**, the Schedule, and the Pending Decisions with **Done
|
|
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.
|