Commit Graph

10 Commits

Author SHA1 Message Date
Dash
4770682803 Merge origin/main into cindy/steady-euclid
Preserve notification action payloads and request-specific event identities alongside exact notification retirement IDs and alert fallback identities.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:48:55 +13:00
Dash
ef68bc35c1 fix(notifications): clear mobile pushes after cross-device handling
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 08:30:35 +13:00
Dash
ce3e341ea3 feat(notifications): answer questions and act on task alerts from the notification
Task alerts on iPhone can now be acted on without opening the app:

- A question the agent asked shows a custom card when the alert is expanded
  (task, full question, what each option means) with one system button per
  option, plus "Reply" and "Open task".
- A finished task can be replied to from the alert.
- A low-risk permission request whose whole operation fits the alert offers
  "Allow once" (unlocked device only) and "Deny".

The press is handled in the background: the app reconnects, re-reads the
pending request from the computer, and answers only the request the alert
described. A press that does not get through is reported with a local alert.
Login credentials become readable after first unlock so this works while the
phone is locked; a locked background cold launch is held instead of being
treated as signed out.

The agent Live Activity also gains a compact layout for the Apple Watch Smart
Stack.

Protocol: NotifyPayload gains an optional `action`. Old servers and apps
ignore it.

Native changes (new content extension target, background-work module,
notification categories, Keychain accessibility) change the mobile runtime
fingerprint and need a native release.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 18:05:27 +13:00
yan
f03a2065b1 feat(provider-share): 支持受邀者直连执行电脑与短期授权
由组电脑分配与授权,受邀者直连执行电脑,保留中继回退、原任务位置、历史与图片传递。
按租约和启动代次约束本地能力,归档与删除及时取消准备,隔离迟到结果和未确认清理。
补齐预算与安全索引准入、自建中转切换生命周期,以及跨区身份请求的账号作用域检查。
同步协议、产品规则与真实生产入口回归。

Signed-off-by: yan <yan233@xd.com>
2026-10-29 15:14:27 +08:00
Lizi
2656f84618 feat(provider-share): share remote providers with other Cindy users
A user can share any provider that already allows remote use with
users of other Cindy accounts. The Agent keeps running on the sharer's
computer with the sharer's login; the invitee's files and commands stay
on the invitee's computer. Product rules: docs/product-rules/
provider-sharing.md; cross-repo contract: docs/provider-sharing-
contract.md (server side lands in cindy-server).

Sharer (Desktop main):
- one-time 5-minute links, approval with a 4-digit pairing code,
  pause/resume/remove, notifications without the pairing code;
- invitees (provider-share peers) may only use maker:remote-agent:v1
  and a provider list filtered to the shared provider; subscriptions
  and every other channel are refused, late results after revocation
  are rewritten to ACCESS_REVOKED;
- guest isolation for Claude Code, Codex and Pi: open payloads are
  allowlisted (no hooks/env/apiKeyHelper, neutralized out-of-tree @
  imports and ! commands), no host personal config, managed skills,
  roster or contacts rules, guest-only resume, Codex in a separate
  CODEX_HOME with read-only token access, Pi without host context;
- per-invitee, per-model usage in userData/remote-agent (no schema
  change); pausing ends tasks at once, removal also deletes the
  invitee's shadow workspace, attachments and Agent transcripts.

Invitee (Desktop):
- apply dialog from deep links or a pasted link, waiting state with
  the pairing code, withdraw, leave;
- shared providers appear in the model list as
  "{provider} · {device} · 来自 {owner} 的分享"; tasks bind with
  agent_device_id = share:<shareId>;
- cross-region shares (server switch, default off) use identity cards
  and an in-memory share credential on a second relay connection.

Mobile: reads the controlled computer's received shares for the model
list, localizes the new errors, and only says "open on a computer" for
share links (JS only, runtime fingerprint unchanged).

Protocol: Envelope.providerShare scope with capability
provider-share-v1 (append-only; old relays and clients keep same-account
routing), new same-account channel
maker:provider-share:received-catalogs.

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-08 14:31:04 +08:00
Chris Zhang
ac0c2a4a63 feat(ios): 伙伴推送显示头像和名字 (#5268)
* feat(ios): add teammate identity to communication notifications

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(notifications): cover teammate avatars in session previews

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(notifications): load sharp through a static import

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-30 20:05:01 +08:00
DavidShen
87001406d1 fix(sharing): separate task scope from physical device addresses
Signed-off-by: DavidShen <david@xd.com>
2026-09-21 02:31:49 +08:00
DavidShen
e3277e4b78 fix(sharing): accept auth device identifiers in shared tasks
Signed-off-by: DavidShen <david@xd.com>
2026-09-21 02:31:49 +08:00
DavidShen
bca321223d feat(sharing): share tasks across accounts with unified desktop and mobile flows
Signed-off-by: DavidShen <david@xd.com>
2026-09-21 02:31:46 +08:00
bobo
b247c2d324 refactor(protocol): 本地化跨端协议包 (#2373)
* refactor(protocol): localize shared protocol packages

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): align localized contracts with consumers

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): keep model currency optional

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): align legacy model and plugin fields

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): preserve plugin oauth metadata

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-08-11 15:31:27 +08:00