sideby 0.28.2 → 0.29.0

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 (47) hide show
  1. package/dist/build.json +1 -1
  2. package/dist/src/cli/commands.d.ts +2 -0
  3. package/dist/src/cli/commands.js +34 -7
  4. package/dist/src/cli/json-schemas.js +15 -0
  5. package/dist/src/cli/main.js +1 -1
  6. package/dist/src/core/handoff-chain.d.ts +2 -0
  7. package/dist/src/core/handoff-chain.js +4 -2
  8. package/dist/src/core/handoff-doctor.d.ts +8 -3
  9. package/dist/src/core/handoff-doctor.js +9 -1
  10. package/dist/src/core/handoff-enable.d.ts +2 -0
  11. package/dist/src/core/handoff-enable.js +7 -1
  12. package/dist/src/core/handoff-status.js +4 -1
  13. package/dist/src/core/live-sessions.d.ts +2 -0
  14. package/dist/src/core/messages.d.ts +2 -0
  15. package/dist/src/core/messages.js +3 -3
  16. package/dist/src/core/run-link.d.ts +6 -1
  17. package/dist/src/core/run-link.js +62 -22
  18. package/dist/src/core/session-handoffs.d.ts +22 -0
  19. package/dist/src/core/session-handoffs.js +110 -0
  20. package/dist/src/core/session-select.d.ts +18 -3
  21. package/dist/src/core/session-select.js +82 -8
  22. package/dist/src/families/claude/handoff.js +10 -1
  23. package/dist/src/families/claude/quota.js +3 -2
  24. package/dist/src/handoff/hook.d.ts +28 -1
  25. package/dist/src/handoff/hook.js +83 -5
  26. package/dist/src/handoff/messages.d.ts +5 -0
  27. package/dist/src/handoff/messages.js +7 -0
  28. package/dist/src/panel/handler.js +3 -1
  29. package/dist/src/panel/i18n.d.ts +3 -0
  30. package/dist/src/panel/i18n.js +6 -0
  31. package/dist/src/panel/page-script.js +10 -5
  32. package/dist/src/quota/claude-statusline.d.ts +5 -0
  33. package/dist/src/quota/claude-statusline.js +61 -7
  34. package/dist/src/runtime.js +2 -2
  35. package/dist/src/types.d.ts +10 -2
  36. package/package.json +4 -3
  37. package/schemas/handoff-setup.json +4 -0
  38. package/schemas/messages.json +4 -0
  39. package/schemas/quota-setup.json +4 -0
  40. package/schemas/send.json +4 -0
  41. package/schemas/sessions-copy.json +4 -0
  42. package/schemas/sessions-open-run.json +4 -0
  43. package/schemas/sessions.json +7 -0
  44. package/skills/sideby/SKILL.md +2 -2
  45. package/skills/sideby/references/handoff.md +1 -1
  46. package/skills/sideby/references/quota.md +2 -0
  47. package/skills/sideby/references/sessions.md +1 -1
@@ -25,6 +25,15 @@ export function wrapCommand(original) {
25
25
  function isPlainObject(v) {
26
26
  return typeof v === 'object' && v !== null && !Array.isArray(v);
27
27
  }
28
+ /**
29
+ * Seconds between status line runs while a session is idle (ADR-0056): without it Claude Code runs the status line only
30
+ * on events in the main conversation, so the cache goes stale while the session waits on background agents.
31
+ */
32
+ export const REFRESH_INTERVAL = 30;
33
+ /** Whether the status line already says how often it re-runs; a value the user set is kept. */
34
+ function hasRefresh(statusLine) {
35
+ return statusLine?.refreshInterval !== undefined && statusLine.refreshInterval !== null;
36
+ }
28
37
  /** Keeps the file's own indentation so the diff shows only the changed lines. */
29
38
  function serializeLike(original, value) {
30
39
  const body = original.trimEnd();
@@ -69,29 +78,72 @@ async function analyze(ctx) {
69
78
  const command = current?.command;
70
79
  if (command !== undefined && typeof command !== 'string')
71
80
  return blocked(`statusLine.command in ${targetName} is not a string`, target);
72
- if (isWrapped(command))
81
+ if (isWrapped(command)) {
82
+ if (hasRefresh(current))
83
+ return {
84
+ plan: {
85
+ status: 'enabled',
86
+ file: target,
87
+ diff: '',
88
+ message: `already enabled in ${targetName}${note}`,
89
+ },
90
+ };
91
+ // Wrapped by an older sideby, without `refreshInterval` (ADR-0056): offer only that key.
92
+ const statusLine = { ...current, refreshInterval: REFRESH_INTERVAL };
73
93
  return {
74
- plan: { status: 'enabled', file: target, diff: '', message: `already enabled in ${targetName}${note}` },
94
+ plan: {
95
+ status: 'ready',
96
+ upgrade: true,
97
+ file: target,
98
+ diff: statusLineDiff(current, statusLine, targetName),
99
+ message: `adds statusLine.refreshInterval (${REFRESH_INTERVAL} seconds) in ${targetName} so Claude quota stays current while a session waits on background agents${note}; \`sideby quota teardown claude\` still restores the file as it was before quota setup`,
100
+ },
101
+ target,
102
+ original,
103
+ wrapped: serializeLike(text, { ...settings, statusLine }),
75
104
  };
105
+ }
76
106
  const problem = await sidebyBinProblem(ctx.env, `the status line runs \`${TAP_COMMAND}\` on every refresh`);
77
107
  if (problem)
78
108
  return blocked(problem, target);
109
+ const addRefresh = !hasRefresh(current);
110
+ const refresh = addRefresh ? { refreshInterval: REFRESH_INTERVAL } : {};
79
111
  const statusLine = current
80
- ? { type: 'command', ...current, command: wrapCommand(command) }
81
- : { type: 'command', command: TAP_COMMAND };
112
+ ? { type: 'command', ...current, command: wrapCommand(command), ...refresh }
113
+ : { type: 'command', command: TAP_COMMAND, ...refresh };
82
114
  const wrapped = serializeLike(text, { ...settings, statusLine });
83
115
  return {
84
116
  plan: {
85
117
  status: 'ready',
86
118
  file: target,
87
119
  diff: statusLineDiff(current, statusLine, targetName),
88
- message: `wraps statusLine.command in ${targetName} so sideby can record Claude's rate limits${note}; undo with \`sideby quota teardown claude\``,
120
+ message: `wraps statusLine.command in ${targetName} so sideby can record Claude's rate limits${addRefresh ? `, and re-runs it every ${REFRESH_INTERVAL} seconds so they stay current while a session waits` : ''}${note}; undo with \`sideby quota teardown claude\``,
89
121
  },
90
122
  target,
91
123
  original,
92
124
  wrapped,
93
125
  };
94
126
  }
127
+ /**
128
+ * Adds `refreshInterval` to a status line sideby wrapped earlier (ADR-0056). The backup's wrapped hash follows the new
129
+ * bytes only while it named the file as it was, so teardown still restores the original; otherwise it stays as it is
130
+ * and teardown refuses as before.
131
+ */
132
+ async function applyUpgrade(ctx, a, mode) {
133
+ const { upgrade: _, ...plan } = a.plan;
134
+ const before = sha256(a.original);
135
+ if (!(await writeIfUnchanged(a.target, before, a.wrapped, mode)))
136
+ return {
137
+ ...plan,
138
+ status: 'blocked',
139
+ message: `${tildify(a.target, ctx.home)} changed while applying; nothing was written, run setup again`,
140
+ };
141
+ const bf = backupFile(ctx.stateDir);
142
+ const b = await readBackup(bf);
143
+ if (b && b.file === a.target && b.wrappedHash === before)
144
+ await writeFileAtomic(bf, `${JSON.stringify({ ...b, wrappedHash: sha256(a.wrapped) }, null, 2)}\n`, 0o600);
145
+ return { ...plan, status: 'enabled', message: `updated: ${plan.message}` };
146
+ }
95
147
  async function readBackup(file) {
96
148
  try {
97
149
  const b = JSON.parse(await readFile(file, 'utf8'));
@@ -107,7 +159,7 @@ async function readBackup(file) {
107
159
  }
108
160
  }
109
161
  export const claudeStatusline = {
110
- summary: "Wrap the status line command in ~/.claude/settings.json with `sideby statusline-tap` so sideby can cache Claude's 5h and 7d rate limits. Your status line keeps working; teardown restores the file byte for byte.",
162
+ summary: "Wrap the status line command in ~/.claude/settings.json with `sideby statusline-tap` so sideby can cache Claude's 5h and 7d rate limits, re-run every 30 seconds so they stay current while a session waits. Your status line keeps working; teardown restores the file byte for byte.",
111
163
  async plan(ctx) {
112
164
  return (await analyze(ctx)).plan;
113
165
  },
@@ -116,6 +168,8 @@ export const claudeStatusline = {
116
168
  if (a.plan.status !== 'ready' || !a.target || !a.original || a.wrapped === undefined)
117
169
  return a.plan;
118
170
  const mode = (await stat(a.target)).mode & 0o777;
171
+ if (a.plan.upgrade)
172
+ return applyUpgrade(ctx, a, mode);
119
173
  const backup = {
120
174
  file: a.target,
121
175
  originalBase64: a.original.toString('base64'),
@@ -234,7 +288,7 @@ export function statusLineDiff(before, after, file) {
234
288
  const show = (v) => v === undefined ? '' : `${JSON.stringify({ statusLine: redactStatusLine(v) }, null, 2)}\n`;
235
289
  return unifiedDiff(show(before), show(after), `${file} (statusLine only)`);
236
290
  }
237
- const SHOWN_STATUSLINE_KEYS = new Set(['type', 'command', 'padding']);
291
+ const SHOWN_STATUSLINE_KEYS = new Set(['type', 'command', 'padding', 'refreshInterval']);
238
292
  /** Shows the statusLine fields sideby touches as they are; any other value becomes "<redacted>". */
239
293
  export function redactStatusLine(v) {
240
294
  if (typeof v !== 'object' || v === null || Array.isArray(v))
@@ -7,7 +7,7 @@ import { applyFixes, runDoctor } from './core/doctor.js';
7
7
  import { hostSettingsFile } from './core/edit-settings.js';
8
8
  import { UserError } from './core/errors.js';
9
9
  import { planHandoff } from './core/handoff.js';
10
- import { handoffFindings } from './core/handoff-doctor.js';
10
+ import { handoffFindings, tapState } from './core/handoff-doctor.js';
11
11
  import { selectNext } from './core/handoff-select.js';
12
12
  import { identityOf } from './core/identity.js';
13
13
  import { inboundFindings } from './core/inbound.js';
@@ -436,7 +436,7 @@ export async function createRuntime(opts = {}) {
436
436
  accounts: all,
437
437
  aliases: aliasRefs(config.aliases),
438
438
  ...(claude?.quotaSetup
439
- ? { claudeTap: (await bindSetup(claude, claude.quotaSetup).plan()).status === 'enabled' }
439
+ ? { claudeTap: tapState(await bindSetup(claude, claude.quotaSetup).plan()) }
440
440
  : {}),
441
441
  home: paths.home,
442
442
  });
@@ -284,8 +284,11 @@ export interface FamilyDef {
284
284
  /** How this Family takes part in a Handoff (spec §3.17); without it the Family neither starts nor receives one. */
285
285
  handoff?: FamilyHandoff;
286
286
  }
287
- /** A Host hook event sideby's handoff hook listens to. */
288
- export type HandoffHookEvent = 'SessionStart' | 'PostToolUse' | 'Stop' | 'StopFailure';
287
+ /**
288
+ * A Host hook event sideby's handoff hook listens to. `IdleWatch` is sideby's own name for a second, background Claude
289
+ * `Stop` hook that wakes a session waiting on background work (ADR-0056).
290
+ */
291
+ export type HandoffHookEvent = 'SessionStart' | 'PostToolUse' | 'Stop' | 'StopFailure' | 'IdleWatch';
289
292
  /** Whether one run may start a Handoff, or start as the next Account of one, and why not. */
290
293
  export interface HandoffEligibility {
291
294
  start: boolean;
@@ -343,6 +346,11 @@ export interface QuotaSetupPlan {
343
346
  /** Unified diff of the change, empty when nothing would change. */
344
347
  diff: string;
345
348
  message: string;
349
+ /**
350
+ * With `ready`: the setup is already on and only an addition from a newer sideby is missing (Claude's
351
+ * `statusLine.refreshInterval`, ADR-0056); quota already shows, but `apply` should still run.
352
+ */
353
+ upgrade?: boolean;
346
354
  }
347
355
  export interface QuotaSetup {
348
356
  /** One sentence shown before the user confirms. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sideby",
3
- "version": "0.28.2",
3
+ "version": "0.29.0",
4
4
  "description": "Run work, personal and API-key accounts at the same time, without their configs drifting apart.",
5
5
  "license": "MIT",
6
6
  "author": "Adonis0123 (https://github.com/Adonis0123)",
@@ -66,6 +66,7 @@
66
66
  "format": "biome check --write .",
67
67
  "test": "node --test --test-concurrency=4 \"src/**/*.test.ts\" \"testing/**/*.test.ts\" \"scripts/**/*.test.ts\"",
68
68
  "schemas": "node src/cli/schemas.ts",
69
+ "design-system": "node scripts/design-system.ts",
69
70
  "leak-check": "sh scripts/leak-check.sh",
70
71
  "check": "pnpm typecheck && pnpm lint && pnpm test && pnpm leak-check",
71
72
  "preversion": "node scripts/readme-assets.ts",
@@ -77,9 +78,9 @@
77
78
  "typebox": "^1.3.34"
78
79
  },
79
80
  "devDependencies": {
80
- "@biomejs/biome": "2.5.15",
81
+ "@biomejs/biome": "2.6.2",
81
82
  "@types/node": "^22.18.0",
82
- "motion": "14.3.0",
83
+ "motion": "14.5.0",
83
84
  "typescript": "^7.0.2"
84
85
  },
85
86
  "packageManager": "pnpm@10.15.0",
@@ -52,6 +52,10 @@
52
52
  },
53
53
  "message": {
54
54
  "type": "string"
55
+ },
56
+ "upgrade": {
57
+ "type": "boolean",
58
+ "description": "With `ready`: the setup is already on and only an addition from a newer sideby is missing (Claude: `statusLine.refreshInterval`)."
55
59
  }
56
60
  }
57
61
  },
@@ -92,6 +92,10 @@
92
92
  },
93
93
  "sentAt": {
94
94
  "type": "string"
95
+ },
96
+ "handedOverFrom": {
97
+ "type": "string",
98
+ "description": "The session id that was named, when an Auto Handoff chain led from it to this target (ADR-0057)."
95
99
  }
96
100
  }
97
101
  },
@@ -52,6 +52,10 @@
52
52
  },
53
53
  "message": {
54
54
  "type": "string"
55
+ },
56
+ "upgrade": {
57
+ "type": "boolean",
58
+ "description": "With `ready`: the setup is already on and only an addition from a newer sideby is missing (Claude: `statusLine.refreshInterval`)."
55
59
  }
56
60
  }
57
61
  },
package/schemas/send.json CHANGED
@@ -91,6 +91,10 @@
91
91
  },
92
92
  "sentAt": {
93
93
  "type": "string"
94
+ },
95
+ "handedOverFrom": {
96
+ "type": "string",
97
+ "description": "The session id that was named, when an Auto Handoff chain led from it to this target (ADR-0057)."
94
98
  }
95
99
  }
96
100
  },
@@ -46,6 +46,10 @@
46
46
  "type": "string",
47
47
  "description": "The Session Label of the session copied."
48
48
  },
49
+ "handedOverFrom": {
50
+ "type": "string",
51
+ "description": "The session id that was named, when an Auto Handoff chain led from it to this session (ADR-0057)."
52
+ },
49
53
  "_notice": {
50
54
  "type": "object",
51
55
  "properties": {
@@ -30,6 +30,10 @@
30
30
  "type": "string",
31
31
  "description": "The Session Label of the session whose run report was opened."
32
32
  },
33
+ "handedOverFrom": {
34
+ "type": "string",
35
+ "description": "The session id that was named, when an Auto Handoff chain led from it to this session (ADR-0057)."
36
+ },
33
37
  "_notice": {
34
38
  "type": "object",
35
39
  "properties": {
@@ -44,6 +44,13 @@
44
44
  "type": "string",
45
45
  "description": "The host's own session id."
46
46
  },
47
+ "handedOverFrom": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "string"
51
+ },
52
+ "description": "When an Auto Handoff chain led to this session: the earlier hops' session ids, oldest first (ADR-0057)."
53
+ },
47
54
  "title": {
48
55
  "type": "string",
49
56
  "description": "The host's own title for the session, or its working directory name when the host gives none; may be empty."
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: sideby
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 ("找一下我上周改登录页的那个会话"), 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).
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.28.2"
5
+ version: "0.29.0"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help
@@ -50,7 +50,7 @@ With config `"handoff": { "auto": true }`, a session sideby started hands its ta
50
50
  1. Run `sideby handoff status --json`. Read `auto`, `sideby` (is the `sideby` on PATH able to run the hook), each family's `starts`, `ready`, `problems` and `notes`, and `nextSteps`.
51
51
  2. Tell the user what Auto Handoff does, that it is off by default, and the risk: hand-over between two subscriptions of one vendor (`--same-family`, cc001 → cc002) is the kind vendors may act on. Add `--same-family` only when the user asks for it. Other AI tools take over only with `--other-ai` (order with `--ai-order claude,codex`), and API accounts only with `--api`: they are billed per request and sideby does not cap spending, so say so and add `--api` only when the user asks. Ask which accounts each family should hand over to if they care about the order (`--order claude=codex001,cc002`; accounts or short commands, any family).
52
52
  3. Run `sideby handoff enable [flags] --json`. Exit 10 means the config change was shown: show the user `diff`, ask, and only after a clear yes run the same command with `--yes`. It writes only the `handoff` key of the config and returns `nextSteps`.
53
- 4. Work through `nextSteps` in order. `sideby quota setup claude` and `sideby handoff setup grok` also exit 10 first: ask before adding `--yes`. `npm i -g sideby` installs or upgrades sideby on PATH; ask first. Codex needs the user to trust sideby's hooks once per account (`/hooks` in Codex); you cannot do that for them.
53
+ 4. Work through `nextSteps` in order. `sideby quota setup claude` and `sideby handoff setup grok` also exit 10 first: ask before adding `--yes`. `sideby quota setup claude` also shows up when Claude's quota is on but stops updating while a session waits on background agents; it then adds only `statusLine.refreshInterval`. `npm i -g sideby` installs or upgrades sideby on PATH; ask first. Codex needs the user to trust sideby's hooks once per account (`/hooks` in Codex); you cannot do that for them.
54
54
  5. Run `sideby handoff status --json` again and report which families are `ready`.
55
55
 
56
56
  To turn it off: `sideby handoff disable --json`, then `--yes` after the user agrees; the other settings stay. The panel's **Auto Handoff** page does all of this in one click (turn on, with one confirmation; turn off) and shows where each account's work goes next; for a user who is not in a terminal, point them there instead of walking through the commands.
@@ -7,6 +7,8 @@ Claude quota needs a one-time change to `~/.claude/settings.json`: the status li
7
7
  3. Only after the user approves, run `sideby quota setup claude --yes`.
8
8
  4. To undo: `sideby quota teardown claude`. It restores the file byte for byte only if nothing changed since setup. If it refuses, show its diff and tell the user to set `statusLine.command` back to the original command (the base64 after `--orig-b64`), or delete `statusLine` if there was none.
9
9
 
10
+ Setup also sets `statusLine.refreshInterval: 30` (kept if the user set one), so the quota stays current while a session waits on background agents. When `sideby handoff status` or `sideby doctor` (`handoff.quota-refresh`) asks for it, the status line was wrapped by an older sideby: run `sideby quota setup claude` again; the plan has `upgrade: true` and adds only that key. Ask before `--yes` as above.
11
+
10
12
  Accounts with their own (not linked) `settings.json` show quota `not-enabled` until that file's status line is wrapped the same way; tell the user instead of editing it.
11
13
 
12
14
  After setup, each account shows quota once it has had one session with a reply. Codex quota needs no setup: sideby asks the official `codex app-server` every 15 minutes, without a conversation. `sideby quota codex --refresh --json` asks now; `sideby quota check codex off --json` disables querying, as does CI. Local session records are a fallback only until the first successful query; they cannot overwrite fetched quota afterward. On failure, relay `fetchError` and `observedAt`, never call old numbers current. The menu's checked time is separate from each row's `observedAt` and `stale`; readings older than one hour or with a query failure show as older readings, except a reading over an hour old whose login has had no local session since (it stays current; use on the web or other computers is not seen). Claude Code quota cannot be refreshed on demand: tell the user it updates when a session runs in that account. Tested with Codex CLI 0.163.0.
@@ -30,7 +30,7 @@ When you are the other AI and get a Session Reference, read the record it names
30
30
 
31
31
  ## Tell a session something (Messages)
32
32
 
33
- When the user asks you to tell another session something ("告诉 cc002 测试过了,可以发版", "send this screenshot to cc003"), run `sideby send <account|session> "<text>" --json` yourself; add `--image <path>` once per screenshot (PNG, JPEG, GIF or WebP, up to 20 MB); a screenshot alone, without text, is fine. `<account>` works when that account runs one session now; otherwise use the session id or its first 8 characters from `sideby sessions --json`. Write the text the way the user meant it, addressed to the other AI; do not paste your whole conversation, point at files by path.
33
+ When the user asks you to tell another session something ("告诉 cc002 测试过了,可以发版", "send this screenshot to cc003"), run `sideby send <account|session> "<text>" --json` yourself; add `--image <path>` once per screenshot (PNG, JPEG, GIF or WebP, up to 20 MB); a screenshot alone, without text, is fine. `<account>` works when that account runs one session now; otherwise use the session id or its first 8 characters from `sideby sessions --json`. Use `sideby send` also when Claude Code's own `ListAgents` / `SendMessage` do not list the session: they see only sessions of the same account, `sideby send` reaches every account. A session id recorded before an Auto Handoff (in a Run ledger or a Brief) still works: sideby follows the handoff to the session that carries the task now and says so (`handedOverFrom` in `--json`). Never guess a recipient by its folder or repository name; when you cannot tell which session it is, list `sideby sessions --json` and ask. Write the text the way the user meant it, addressed to the other AI; do not paste your whole conversation, point at files by path.
34
34
 
35
35
  sideby keeps the Message first as a file (`message.file`, mode 600, screenshots copied next to it), then:
36
36