sideby 0.32.2 → 0.33.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/assets/brand/sai-painted-1024.png +0 -0
  2. package/assets/brand/sai-painted-128.png +0 -0
  3. package/assets/brand/sai-painted-256.png +0 -0
  4. package/assets/brand/sai-painted-64.png +0 -0
  5. package/dist/build.json +1 -1
  6. package/dist/src/cli/commands.js +57 -14
  7. package/dist/src/cli/format.js +3 -1
  8. package/dist/src/cli/json-schemas.js +30 -5
  9. package/dist/src/cli/main.js +9 -4
  10. package/dist/src/core/brand-mark.d.ts +18 -115
  11. package/dist/src/core/brand-mark.js +43 -174
  12. package/dist/src/core/messages.d.ts +17 -5
  13. package/dist/src/core/messages.js +38 -15
  14. package/dist/src/core/quota-fetch.js +9 -2
  15. package/dist/src/desktop/icon.d.ts +13 -1
  16. package/dist/src/desktop/icon.js +153 -285
  17. package/dist/src/families/claude/deliver.js +9 -1
  18. package/dist/src/families/claude/messaging.d.ts +7 -1
  19. package/dist/src/families/claude/messaging.js +10 -2
  20. package/dist/src/families/codex/deliver.d.ts +10 -1
  21. package/dist/src/families/codex/deliver.js +24 -2
  22. package/dist/src/families/messaging.d.ts +6 -1
  23. package/dist/src/menubar/script.d.ts +5 -0
  24. package/dist/src/menubar/script.js +111 -25
  25. package/dist/src/menubar/snapshot.d.ts +25 -5
  26. package/dist/src/menubar/snapshot.js +114 -26
  27. package/dist/src/menubar/strings.d.ts +22 -6
  28. package/dist/src/menubar/strings.js +22 -6
  29. package/dist/src/panel/handler.d.ts +2 -2
  30. package/dist/src/panel/handler.js +8 -2
  31. package/dist/src/panel/i18n.d.ts +5 -0
  32. package/dist/src/panel/i18n.js +14 -4
  33. package/dist/src/panel/page-logic.d.ts +25 -4
  34. package/dist/src/panel/page-logic.js +122 -10
  35. package/dist/src/panel/page-script.js +39 -8
  36. package/dist/src/panel/page-styles.js +5 -5
  37. package/dist/src/panel/page.js +2 -2
  38. package/dist/src/panel/theme.d.ts +4 -1
  39. package/dist/src/runtime.d.ts +3 -1
  40. package/dist/src/runtime.js +1 -1
  41. package/package.json +2 -1
  42. package/schemas/menubar-snapshot.json +102 -2
  43. package/schemas/messages.json +6 -2
  44. package/schemas/send.json +6 -2
  45. package/skills/sideby/SKILL.md +1 -1
  46. package/skills/sideby/references/panel.md +1 -1
  47. package/skills/sideby/references/sessions.md +6 -3
@@ -2,7 +2,7 @@
2
2
  // sibling modules: page-styles.ts (tokens and CSS), page-script.ts (behaviour, with page-logic.ts helpers) and
3
3
  // i18n.ts (English and Chinese text); this module assembles them under the CSP nonce.
4
4
  import { createHash } from 'node:crypto';
5
- import { FAVICON_SVG, MARK_SVG } from '../core/brand-mark.js';
5
+ import { FAVICON_SVG, MARK_IMG } from '../core/brand-mark.js';
6
6
  import { commandListForPage } from '../core/cli-commands.js';
7
7
  import { ALIAS_NAME, RESERVED_ALIASES } from '../core/config.js';
8
8
  import { QUOTA_FAIL_PERCENT, QUOTA_LONG_FAIL_PERCENT, QUOTA_LONG_WARN_PERCENT, QUOTA_WARN_PERCENT, USAGE_DAYS, } from '../core/quota-levels.js';
@@ -86,7 +86,7 @@ export function renderPage(opts) {
86
86
  <header class="top">
87
87
  <div class="top-in">
88
88
  <div class="brand">
89
- <span class="logo" aria-hidden="true">${MARK_SVG}</span>
89
+ <span class="logo" aria-hidden="true">${MARK_IMG}</span>
90
90
  <div>
91
91
  <div class="title-row"><h1>sideby</h1><button id="ver-top" class="ver-pill" type="button" aria-haspopup="dialog" aria-expanded="false" hidden></button></div>
92
92
  <p class="tagline" data-i18n="top.tagline">Every AI coding account, side by side.</p>
@@ -67,7 +67,10 @@ export interface PanelThemeTokens {
67
67
  warnBar?: string;
68
68
  failBar?: string;
69
69
  track?: string;
70
- /** The sideby mark in the page header; `logoColor` stays the brand blue whatever the Theme unless set. */
70
+ /**
71
+ * The tile behind the sideby mark in the page header. `logoColor` no longer colours the mark, which is a painting
72
+ * (ADR-0064); it is kept so existing Themes and Portals still load.
73
+ */
71
74
  logoBg?: string;
72
75
  logoColor?: string;
73
76
  logoBorder?: string;
@@ -359,10 +359,12 @@ export interface Runtime {
359
359
  /**
360
360
  * Which Account of a Family to move on to (spec §3.13), for a start the user asks for: past the Takeover Limit it
361
361
  * falls back to the least used Account under 100% (`tight`). Throws a UserError with code `no-quota-source`
362
- * when the Family cannot tell, `no-accounts` when it has none.
362
+ * when the Family cannot tell, `no-accounts` when it has none. `fetch` is as for `quota`; `never` reads only the kept
363
+ * answers (the menu bar's cache-only snapshot, spec §3.31).
363
364
  */
364
365
  handoff(familyId: string, opts?: {
365
366
  includeApi?: boolean;
367
+ fetch?: QuotaFetchMode;
366
368
  }): Promise<HandoffPlan>;
367
369
  /** The config `handoff` settings with every default filled in (spec §3.17). */
368
370
  handoffSettings(): HandoffSettings;
@@ -969,7 +969,7 @@ export async function createRuntime(opts = {}) {
969
969
  code: 'no-accounts',
970
970
  });
971
971
  // Login state, Quota and Same Login (spec §3.21): no model or Host lookups are needed to rank.
972
- const [quotas, groups] = await Promise.all([quotasOf(list), groupsOf(list)]);
972
+ const [quotas, groups] = await Promise.all([quotasOf(list, o.fetch), groupsOf(list)]);
973
973
  const candidates = await Promise.all(list.map(async (a) => {
974
974
  const peers = groups.get(a.ref);
975
975
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sideby",
3
- "version": "0.32.2",
3
+ "version": "0.33.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)",
@@ -47,6 +47,7 @@
47
47
  },
48
48
  "files": [
49
49
  "dist",
50
+ "assets/brand",
50
51
  "schemas",
51
52
  "skills",
52
53
  "mods/claude/.claude-plugin",
@@ -273,6 +273,8 @@
273
273
  "bars",
274
274
  "groups",
275
275
  "reset",
276
+ "resetLabel",
277
+ "resetTime",
276
278
  "note"
277
279
  ],
278
280
  "properties": {
@@ -370,6 +372,11 @@
370
372
  "const": "none"
371
373
  }
372
374
  ]
375
+ },
376
+ "passed": {
377
+ "type": "boolean",
378
+ "const": true,
379
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
373
380
  }
374
381
  }
375
382
  },
@@ -413,6 +420,11 @@
413
420
  "const": "none"
414
421
  }
415
422
  ]
423
+ },
424
+ "passed": {
425
+ "type": "boolean",
426
+ "const": true,
427
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
416
428
  }
417
429
  }
418
430
  },
@@ -440,6 +452,8 @@
440
452
  "label",
441
453
  "bars",
442
454
  "reset",
455
+ "resetLabel",
456
+ "resetTime",
443
457
  "tip"
444
458
  ],
445
459
  "properties": {
@@ -487,6 +501,11 @@
487
501
  "const": "none"
488
502
  }
489
503
  ]
504
+ },
505
+ "passed": {
506
+ "type": "boolean",
507
+ "const": true,
508
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
490
509
  }
491
510
  }
492
511
  },
@@ -530,6 +549,11 @@
530
549
  "const": "none"
531
550
  }
532
551
  ]
552
+ },
553
+ "passed": {
554
+ "type": "boolean",
555
+ "const": true,
556
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
533
557
  }
534
558
  }
535
559
  },
@@ -549,6 +573,14 @@
549
573
  "reset": {
550
574
  "type": "string"
551
575
  },
576
+ "resetLabel": {
577
+ "type": "string",
578
+ "description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
579
+ },
580
+ "resetTime": {
581
+ "type": "string",
582
+ "description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
583
+ },
552
584
  "tip": {
553
585
  "type": "string"
554
586
  }
@@ -563,7 +595,25 @@
563
595
  },
564
596
  "reset": {
565
597
  "type": "string",
566
- "description": "Which window resets and how long until it does, such as `7d · in 4d 17h`: the window closest to its own red level (85% for 5 hours, 95% for longer windows). Empty when nothing is used."
598
+ "description": "Which window resets and when, such as `7d · tomorrow 4:59 PM`: the window closest to its own red level (85% for 5 hours, 95% for longer windows); `resetLabel` and `resetTime` joined. Empty when nothing is used."
599
+ },
600
+ "resetLabel": {
601
+ "type": "string",
602
+ "description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
603
+ },
604
+ "resetTime": {
605
+ "type": "string",
606
+ "description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
607
+ },
608
+ "refreshing": {
609
+ "type": "boolean",
610
+ "const": true,
611
+ "description": "A manual refresh is asking the Host for this account and has no answer yet (`--refreshing-since`)."
612
+ },
613
+ "refreshFailed": {
614
+ "type": "boolean",
615
+ "const": true,
616
+ "description": "This refresh asked the Host for this account and the answer failed."
567
617
  },
568
618
  "note": {
569
619
  "type": "string",
@@ -601,6 +651,8 @@
601
651
  "bars",
602
652
  "groups",
603
653
  "reset",
654
+ "resetLabel",
655
+ "resetTime",
604
656
  "note"
605
657
  ],
606
658
  "properties": {
@@ -698,6 +750,11 @@
698
750
  "const": "none"
699
751
  }
700
752
  ]
753
+ },
754
+ "passed": {
755
+ "type": "boolean",
756
+ "const": true,
757
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
701
758
  }
702
759
  }
703
760
  },
@@ -741,6 +798,11 @@
741
798
  "const": "none"
742
799
  }
743
800
  ]
801
+ },
802
+ "passed": {
803
+ "type": "boolean",
804
+ "const": true,
805
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
744
806
  }
745
807
  }
746
808
  },
@@ -768,6 +830,8 @@
768
830
  "label",
769
831
  "bars",
770
832
  "reset",
833
+ "resetLabel",
834
+ "resetTime",
771
835
  "tip"
772
836
  ],
773
837
  "properties": {
@@ -815,6 +879,11 @@
815
879
  "const": "none"
816
880
  }
817
881
  ]
882
+ },
883
+ "passed": {
884
+ "type": "boolean",
885
+ "const": true,
886
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
818
887
  }
819
888
  }
820
889
  },
@@ -858,6 +927,11 @@
858
927
  "const": "none"
859
928
  }
860
929
  ]
930
+ },
931
+ "passed": {
932
+ "type": "boolean",
933
+ "const": true,
934
+ "description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
861
935
  }
862
936
  }
863
937
  },
@@ -877,6 +951,14 @@
877
951
  "reset": {
878
952
  "type": "string"
879
953
  },
954
+ "resetLabel": {
955
+ "type": "string",
956
+ "description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
957
+ },
958
+ "resetTime": {
959
+ "type": "string",
960
+ "description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
961
+ },
880
962
  "tip": {
881
963
  "type": "string"
882
964
  }
@@ -891,7 +973,25 @@
891
973
  },
892
974
  "reset": {
893
975
  "type": "string",
894
- "description": "Which window resets and how long until it does, such as `7d · in 4d 17h`: the window closest to its own red level (85% for 5 hours, 95% for longer windows). Empty when nothing is used."
976
+ "description": "Which window resets and when, such as `7d · tomorrow 4:59 PM`: the window closest to its own red level (85% for 5 hours, 95% for longer windows); `resetLabel` and `resetTime` joined. Empty when nothing is used."
977
+ },
978
+ "resetLabel": {
979
+ "type": "string",
980
+ "description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
981
+ },
982
+ "resetTime": {
983
+ "type": "string",
984
+ "description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
985
+ },
986
+ "refreshing": {
987
+ "type": "boolean",
988
+ "const": true,
989
+ "description": "A manual refresh is asking the Host for this account and has no answer yet (`--refreshing-since`)."
990
+ },
991
+ "refreshFailed": {
992
+ "type": "boolean",
993
+ "const": true,
994
+ "description": "This refresh asked the Host for this account and the answer failed."
895
995
  },
896
996
  "note": {
897
997
  "type": "string",
@@ -63,9 +63,13 @@
63
63
  {
64
64
  "type": "string",
65
65
  "const": "paste-needed"
66
+ },
67
+ {
68
+ "type": "string",
69
+ "const": "unknown"
66
70
  }
67
71
  ],
68
- "description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target."
72
+ "description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target; unknown: the channel was given it but never confirmed it (ADR-0065), so it may still arrive: check the target before sending or pasting again. unknown becomes read when the id shows in the target's record and never changes by itself otherwise."
69
73
  },
70
74
  "file": {
71
75
  "type": "string",
@@ -84,7 +88,7 @@
84
88
  },
85
89
  "note": {
86
90
  "type": "string",
87
- "description": "Why a paste is needed, or that the target must approve it (bypass mode)."
91
+ "description": "Why a paste is needed, that the target must approve it (bypass mode), or why the delivery could not be confirmed."
88
92
  },
89
93
  "needsApproval": {
90
94
  "type": "boolean",
package/schemas/send.json CHANGED
@@ -62,9 +62,13 @@
62
62
  {
63
63
  "type": "string",
64
64
  "const": "paste-needed"
65
+ },
66
+ {
67
+ "type": "string",
68
+ "const": "unknown"
65
69
  }
66
70
  ],
67
- "description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target."
71
+ "description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target; unknown: the channel was given it but never confirmed it (ADR-0065), so it may still arrive: check the target before sending or pasting again. unknown becomes read when the id shows in the target's record and never changes by itself otherwise."
68
72
  },
69
73
  "file": {
70
74
  "type": "string",
@@ -83,7 +87,7 @@
83
87
  },
84
88
  "note": {
85
89
  "type": "string",
86
- "description": "Why a paste is needed, or that the target must approve it (bypass mode)."
90
+ "description": "Why a paste is needed, that the target must approve it (bypass mode), or why the delivery could not be confirmed."
87
91
  },
88
92
  "needsApproval": {
89
93
  "type": "boolean",
@@ -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.32.2"
5
+ version: "0.33.0"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help
@@ -74,6 +74,6 @@ To turn it on ("start sideby at login", "开机启动"), run `sideby autostart o
74
74
 
75
75
  `sideby menubar --json` returns the same fields as `autostart` (`supported`, `state`, `path`, `current`, `missing?`), plus `loaded` and `hotkey`, for the Menu Bar Item, the sideby icon in the macOS menu bar. To turn it on ("show my quota in the menu bar", "状态栏显示额度"), run `sideby menubar on --json`: exit 10 shows the file (`~/Library/LaunchAgents/dev.sideby.menubar.plist`, which runs the system's `osascript` with the whole menu script and this sideby). Tell the user it adds a login item that shows quota in the menu bar from now on, and run `sideby menubar on --yes --json` after they agree; `sideby menubar off --yes` removes it. The same refusals as `autostart` apply (`unsupported`, `foreign`, `npx-cache`, `temp-dir`, `unsafe-path`), and `sideby update` keeps it pointing at the new version.
76
76
 
77
- The icon stands alone while every tool has quota left. In each tool sideby takes how much the account `sideby next` would pick has used; when the tightest of those reaches its warning level, the title shows that tool and percent, such as `Codex 61%`: a 5-hour window turns orange at 60% and red at 85%, a weekly one orange at 85% and red at 95% (ADR-0062). Each row's `reset` names the window that runs out first and when it resets (`7d · in 4d 17h`). The menu's first line (`headline`) names that account either way. `sideby menubar snapshot --json` prints what the menu shows (`title`, `level`, `headline`, `sections[].rows[]` with `bars`, `reset`, `note` and `recommended`, and `sections[].more` for API key and signed-out accounts); use it to answer "what does my menu bar say". Clicking an account runs `sideby menubar start <account>`, which opens it in the Preferred Terminal. ⌥X opens and closes the menu from anywhere; it needs no macOS permission. To change it ("换个快捷键", "change the menu bar shortcut"), run `sideby menubar hotkey <keys> --json`: `cmd` or `ctrl`, any of `opt` and `shift`, and one letter or digit, such as `ctrl+opt+s`; `off` turns it off, `default` goes back to ⌥X, and a running menu bar item takes it within seconds without a restart (`nudged`). A refusal says why in `code`: `hotkey.reserved` (macOS and most apps use it, such as ⌘Q), `hotkey.needs-modifier` (no opt, cmd or ctrl), `hotkey.invalid`. `sideby menubar hotkey --json` shows it: `registered: false` means macOS did not accept the key, so suggest another. macOS does not tell when another app uses the same keys (both may be accepted), so when the user says the shortcut does nothing, suggest another one too. The Panel has the same as a list (⌥X, ⌥Z, ⌥⌘S, ⌃⌥S, Off, Custom…) in **Menu bar icon ›** under the menu bar switch, with "Can't see the icon?" and "Let AI check it" (`sideby ask --task menubar`).
77
+ The icon stands alone while every tool has quota left. In each tool sideby takes how much the account `sideby next` would pick has used; when the tightest of those reaches its warning level, the title shows that tool and percent, such as `Codex 61%`: a 5-hour window turns orange at 60% and red at 85%, a weekly one orange at 85% and red at 95% (ADR-0062). Each row's `reset` names the window that runs out first and when it resets (`resetLabel` and `resetTime`, such as `7d · in 4h 20m`, `7d · tomorrow 4:59 PM` or `7d · Wed 4:59 PM`: a countdown under a day, then tomorrow, a weekday, a date; the Panel and `sideby quota` use the same words). A bar with `passed: true` is a window past its reset with no newer reading (shown grey with `–`); when every window has passed, `reset` says the reset is due and Refresh checks now. During a manual refresh, rows still waiting for their answer have `refreshing: true` and rows whose answer failed `refreshFailed: true`. The menu's first line (`headline`) names that account either way. `sideby menubar snapshot --json` prints what the menu shows (`title`, `level`, `headline`, `sections[].rows[]` with `bars`, `reset`, `note` and `recommended`, and `sections[].more` for API key and signed-out accounts); use it to answer "what does my menu bar say". Clicking an account runs `sideby menubar start <account>`, which opens it in the Preferred Terminal. ⌥X opens and closes the menu from anywhere; it needs no macOS permission. To change it ("换个快捷键", "change the menu bar shortcut"), run `sideby menubar hotkey <keys> --json`: `cmd` or `ctrl`, any of `opt` and `shift`, and one letter or digit, such as `ctrl+opt+s`; `off` turns it off, `default` goes back to ⌥X, and a running menu bar item takes it within seconds without a restart (`nudged`). A refusal says why in `code`: `hotkey.reserved` (macOS and most apps use it, such as ⌘Q), `hotkey.needs-modifier` (no opt, cmd or ctrl), `hotkey.invalid`. `sideby menubar hotkey --json` shows it: `registered: false` means macOS did not accept the key, so suggest another. macOS does not tell when another app uses the same keys (both may be accepted), so when the user says the shortcut does nothing, suggest another one too. The Panel has the same as a list (⌥X, ⌥Z, ⌥⌘S, ⌃⌥S, Off, Custom…) in **Menu bar icon ›** under the menu bar switch, with "Can't see the icon?" and "Let AI check it" (`sideby ask --task menubar`).
78
78
 
79
79
  When the user cannot see the icon ("状态栏没有图标", "the menu bar icon is gone"), read `sideby menubar --json` first. `state: "off"`: it was turned off, often with the menu's "Hide from Menu Bar…"; offer `sideby menubar on --yes`. `state: "on"` with `loaded: false`: on but not running (macOS let it go, for example after an update); `sideby menubar on --yes --json` starts it again without changing the file. `loaded: true`: it runs but is hidden. `icon.visible: false` says so for certain: the menu bar is full and macOS put it behind « (click « to see it, or set it to always show in System Settings › Menu Bar). Otherwise check System Settings › Menu Bar (osascript turned off) and menu bar organizers such as Ice or Bartender.
@@ -34,14 +34,17 @@ When the user asks you to tell another session something ("告诉 cc002 测试
34
34
 
35
35
  sideby keeps the Message first as a file (`message.file`, mode 600, screenshots copied next to it), then:
36
36
 
37
- - `status: "delivered"`: a Claude Code session got it at once through Claude Code's own messages between sessions. Its first line names the sender (the session you run in, found by sideby) or "the user via sideby", then the text, then one `Screenshot: <path>` line per screenshot. Tell the user it was delivered.
37
+ - `status: "delivered"`: a Claude Code session got it at once through Claude Code's own messages between sessions. Its first line names the sender (the session you run in, found by sideby) or "the user via sideby", then the text, then one `Screenshot: <path>` line per screenshot, and, when sideby identified the sending session exactly, a last line `Reply: sideby send <sender session id> "<text>"` (also at the end of the Message file). Tell the user it was delivered.
38
38
  - `status: "delivered"` for Codex means Codex queued it (`codex queue`, Codex 0.163 or later): the session reads it when its current turn ends, or within about 10 s when idle. `status: "paste-needed"`: Grok Build and pi have no channel sideby can deliver to yet (or the Claude session could not be reached; `note` says why in plain words). `pasteText` is one line telling the other AI to read the Message file; `copied: true` means it is on the clipboard. Tell the user to paste it into the tab of `message.to`.
39
+ - `status: "unknown"` (the user sees **Not confirmed** / 未确认送达): sideby handed it over but could not tell whether it arrived (`codex queue` started and did not finish within 20 s, or the Claude socket took the line but never confirmed it); `note` says why, and that the session has ended when it has. It may still show up, so `copied` is false and you must not paste or send it again right away: tell the user it is not confirmed and to look at that session first. `pasteText` is there for when it never shows up; say that pasting it too may deliver it twice. It turns to `read` once its id shows in the target's record, and never turns into anything else by itself.
39
40
  - `needsApproval: true` (with a `note` saying the session "waits for your approval"): that Claude session holds Messages (`crossSessionInbound` is `hold`, or not set while it runs in bypass permission mode), so it waits for the user to approve the message in its terminal and drops it after about 5 minutes. Tell the user. If the target is a headless worker you or an orchestrator started (`claude -p`), the narrow fix is to start it with `--settings '{"crossSessionInbound":"accept"}'`, which applies to that one session only; for an interactive session the user cannot restart with a flag, offer `sideby messages inbound accept` (below), which changes the account's settings for every session.
40
41
  - Delivery works on macOS, Linux and WSL 2: sideby accepts the socket under `$XDG_RUNTIME_DIR/cc-socks/` (Linux, WSL) and under the system temp folder's `cc-socks/` or per-user `cc-socks-<uid>/` (macOS). Native Windows has a named pipe sideby does not write to; those sessions get `paste-needed`.
41
42
 
42
- `sideby messages --json` lists what was sent, newest first; `status: "read"` means the Message id shows in the target's record (it took it in). `needsApproval: true` stays until it is read; a held Message still unread after 6 minutes turns to `paste-needed`, because Claude Code dropped it. `--to <account|session>` narrows it.
43
+ `sideby messages --json` lists what was sent, newest first; `status: "read"` means the Message id shows in the target's record (it took it in). `needsApproval: true` stays until it is read; a held Message still unread after 6 minutes turns to `paste-needed`, because Claude Code dropped it. An `unknown` one stays `unknown` until its id shows (then `read`); the text table calls it `Not confirmed`. `--to <account|session>` narrows it.
43
44
 
44
- When you are the receiving AI and see "sideby message <id> from …" or "Read the message sideby kept for you at <file>", read that file and the screenshots it lists, then act on it as a request from the user.
45
+ When you are the receiving AI and see "sideby message <id> from …" or "Read the message sideby kept for you at <file>", read that file and the screenshots it lists, then act on it as a request from the user. To answer, run the `Reply:` line it ends with, putting your answer in place of `<text>` as one shell argument: wrap it in single quotes, and write each `'` inside it as `'\''` (for example `sideby send 61230c3d-… 'Done; it'\''s pushed'`). A Message without that line came from the user or from a sender sideby could only guess: answer the user instead.
46
+
47
+ To hear when another Claude Code session has finished before you tell it the next thing, sideby has nothing of its own: use Claude Code's own `SendMessage` with `notify_when_idle: true` (Claude Code's cross-session messaging, https://code.claude.com/docs/en/cross-session-messaging), which works from your main conversation for your Claude Code sessions on this machine (Claude Code 2.1.236 or later in both).
45
48
 
46
49
  ### Let Claude sessions show messages at once
47
50