Commit Graph

129 Commits

Author SHA1 Message Date
liugaowei
b8741fb636 fix(plugin): 在卸载事务内撤销复用引用
引用清理失败时保留现有卸载 journal 与来源隔离,在删除包之前完成撤销,并通过原恢复队列重试。Desktop 与 Node Host 复用同一个清理端口,先释放来源锁再取得消费方锁。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 17:29:45 +08:00
liugaowei
4a946736c1 fix(plugin): 在来源卸载与归档时收回账号复用
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 15:04:51 +08:00
liugaowei
15cd88b14f fix(plugin): 同步平台基线并拒绝云元数据网络来源
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 13:45:15 +08:00
liugaowei
d6a8decccd fix(plugin): 同步宿主基线并修复电脑与任务进程生命周期
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 13:30:20 +08:00
liugaowei
150b755b82 merge: 同步网络凭证分支的叠加基线
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 10:15:52 +08:00
Lizi
deef173543 Merge pull request #10241 from zqchris/cindy/dazzling-morse
fix(imessage): 支持编辑已有伙伴连接参数
2026-11-13 08:43:19 +08:00
Lizi
39629fe856 Merge pull request #10199 from makecindy/cindy/mcp-app-view-state-helpers
feat(mcp-apps): 内置交互页面状态辅助模块
2026-11-13 08:09:25 +08:00
Lizi
68a9c11445 Merge pull request #9950 from makecindy/dash/desktop-live-screen
feat(desktop): 在插件任务页查看和操作远程模拟器
2026-11-13 07:26:06 +08:00
fmfsaisai
2a1765f220 Merge origin/main to pick up the bot lifecycle test fix
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-13 07:06:27 +08:00
liugaowei
a921f296f5 merge: 合入插件公共入口最新基线
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 06:15:49 +08:00
Dash
b6b8662dba Merge main and preserve remote simulator translations
Resolve locale conflicts field by field: preserve remote device capability descriptions and task prompts while retaining other upstream translation fixes. Keep the main-window relay and namespace constraints unchanged.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 10:51:31 +13:00
Chris
489b6bc6cd Merge remote-tracking branch 'upstream/main' into cindy/dazzling-morse
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

# Conflicts:
#	apps/desktop/src/renderer/i18n/locales/de/common.json
#	apps/desktop/src/renderer/i18n/locales/ja/common.json
#	apps/desktop/src/renderer/i18n/locales/ko/common.json
2026-11-13 05:46:29 +08:00
Dash
365b04e1bf fix(notifications): align mirrored alert retirement identities
Use shared renderer alert identities independently of local notification actions. Cover permission and question mirrors through the real notification IPC entry. Regenerate the protocol-dependent direct runtime in a clean checkout to match CI.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 10:21:23 +13:00
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
Lizi
d1d8397cc7 Merge pull request #10113 from makecindy/cindy/clever-wozniak
feat(mobile): 在通知上直接回答提问、回复和批准
2026-11-13 04:41:33 +08:00
Dash
c899f8112c fix(notifications): preserve unanswered async pushes on Stop
Remove task-wide question retirement. Use only explicit request settlements, preserving async questions across stopped turns; document lifecycle boundaries and exercise mixed sync/async settlement through the service ledger.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:32:46 +13:00
Dash
b90bbde9ec docs(notifications): record isolated validation results
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 08:38:37 +13:00
Dash
5946303865 Merge remote-tracking branch 'origin/main' into cindy/steady-euclid 2026-11-13 08:30:35 +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
c53011ff7b Merge main with deduplicated bot lifecycle test fixture
Bring in upstream bd8dd6f4a7 through ec18a0a77a. The fixture now defines each table once; lifecycle and notification regressions pass while the notification protocol and verified plugin operation remain intact.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 08:11:38 +13:00
Dash
c4e2d39ead Merge main to repair bot lifecycle test fixtures
Bring in main ec18a0a77a, including the single mcp_app_view_states fixture used by the real bot deletion transaction. Preserve remote plugin screen ownership and namespace constraints.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 07:19:29 +13:00
liugaowei
9681062709 Merge origin/main into fix/task-plugin-menu-empty
Include the upstream lifecycle fixture deduplication while retaining the task plugin menu scope.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 00:30:45 +08:00
Chris
c3603880a5 fix(imessage): bound newly enabled chats to their activation time
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-12 23:33:42 +08:00
Chris
27624a0a57 fix(imessage): isolate identities when readding edited origins
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-12 23:05:57 +08:00
Chris
c3f1bfde6a fix(imessage): edit existing buddy connection settings
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-12 22:54:40 +08:00
MagicLizi
7d1f57c91d fix(test): reconcile bot deletion fixtures while syncing main
Keep one MCP App view-state table in the fixture after concurrent main fixes.

Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-11-12 22:35:36 +08:00
fmfsaisai
1402886877 fix(mcp-apps): 同步保存 React 最新编辑并复用页面状态
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-12 22:06:06 +08:00
MagicLizi
d566b488ca fix(orca): allow remote workers to select remote providers
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-11-12 22:06:05 +08:00
liugaowei
9beee14331 Merge origin/main into fix/task-plugin-menu-empty
保留主干 session.menu 插件贡献,以及任务运行插件按能力声明和已选项显隐的原有修复。
冲突仅涉及 SessionTaskMenu 的相邻局部变量,保留双方行为。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 20:10:22 +08:00
Dash
8bf9683d96 Merge main into dash/desktop-live-screen
Retain upstream plugin titlebar contributions alongside remote task device and desktop controls. Preserve platform-specific placement and existing candidate ownership. 128 targeted tests, both UI fixture matrices, Desktop typecheck and Skill bundle history verification pass.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 01:09:08 +13:00
Dash
2b91f61d4c Merge origin/main into cindy/clever-wozniak
Preserve notification action handling and locked-launch gating alongside task badge initialization and foreground tray behavior. Keep both development-guide sections and cover action failure visibility after the merge.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 00:51:18 +13:00
fmfsaisai
b519bff8a3 feat(mcp-apps): 内置页面状态辅助模块与同源供给
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-12 19:02:38 +08:00
Lizi
02f8973e3a fix(desktop): 修复本机、远程与供应商组内的订阅账号自动换号 (#10152)
* fix(desktop): fail over exhausted subscription accounts across task routes

Allow fresh native sessions and same-account remote tasks to use another available subscription account. Keep provider-group members eligible when only the current account is blocked, preserving native history and legacy-host fallback.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>

* docs: clarify owner-only account data in failover queries

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): confirm remote replacement admission in the session query

Use the real account-selection dry run to check concurrency and route grants on the executing computer. Report optional switchAvailable alongside blocked so failover needs no extra quota request, preserves full-account native sessions, and still rejects owner changes.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): expire abandoned account-switch rounds

Prune all expired account-switch history when checking new failures, retaining the existing 30-minute round boundary without adding timers.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): bound account admission probes and reuse group recovery decisions

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>

---------

Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-11-12 18:30:36 +08:00
Lizi
baa7cac9cb Merge pull request #10120 from zqchris/media-playback-transfer
fix(media): 改善内嵌播放与文件通道分段传输
2026-11-12 18:18:34 +08:00
Chris Zhang
0e640b64ab fix(remote-agent): V2 伙伴私聊远程运行时按普通任务装配 Skill 与插件花名册 (#10107)
远程控制端此前直接用伙伴运行配置的 Skill 授权挑托管 Skill。V2 伙伴在自己项目里的对话
(projectContext)授权为空,本机引擎不套用它,但远程时 snapshotManagedSkillGrants 得到空集,
内置与插件带的 Skill 一个都不带;执行电脑看到字段存在又不加载自己的,于是全部丢失。
同一判断还让 V2 私聊跳过个人 Skill 的停用过滤,并且所有伙伴都不带插件花名册,
执行电脑因此回退到它自己装的插件。

改为与三个引擎相同的 isolatedBotProfile 判断:V2 私聊按普通任务带托管 Skill、按停用过滤
个人 Skill、现算花名册;隔离运行的伙伴仍只带授权过的托管 Skill,花名册带空串。

Assisted-by: Cindy (https://cindy.app)

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-12 17:58:28 +08:00
liugaowei
092d00f549 fix(plugins): 无相关插件时隐藏任务插件入口
复用已装插件快照与既有会话投影,只在菜单打开时检查能力声明。
已卸载插件的任务选择仍可清除,对话框不再显示空分组。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 17:36:38 +08:00
Lizi
63667fd482 Merge pull request #9989 from makecindy/cindy/mcp-app-view-state
feat(mcp-apps): 保存并恢复单张卡片的页面状态
2026-11-12 17:04:48 +08:00
Lizi
b506d2956f Merge pull request #9378 from makecindy/cindy/pensive-mendel
feat(github): 用 GitHub App 事件更新 PR 并触发自动任务
2026-11-12 16:35:25 +08:00
Lizi
1fd8a3f6cf feat(agent-net): 支持远程切换其他电脑的连接方式 (#10095)
* feat(agent-net): support remote connection switching

Allow same-account computers to switch Agent-Net with encrypted confirmation, automatic rollback and batch controls.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(agent-net): verify switch outcomes and preserve recovery

Cancel delayed switches on local changes, retain rollback records until recovery completes, check actual encrypted links and private relay readiness, and keep batch progress visible. Add failing-then-passing regressions and align activation wording with the glossary.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: preserve target encryption choice and switch recovery

Reject remote disable while the target requires Agent-Net, recheck before
applying it, and explain or skip the restriction in single and batch flows.
Keep cancellation recovery records until the original setting is restored.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: verify switch-back routes on both computers

Reject disables before dispatch when the controller cannot reconnect over
Device Link. Expose V2-only relay restrictions at both ends and require an
actual legacy link before reporting a completed switch-back.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: retry interrupted remote switch recovery

Keep recovery active across transient apply or storage errors, reject late
confirmations, and retain the timer until confirmation is durably saved.
Return the actual remaining confirmation window to align both computers.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: retain remote switch recovery and reject expired account actions

Keep cancellation recovery armed until settings are durably cleared, and
propagate failed local cancellation instead of accepting a new preference.
Rearm device recovery if an in-flight restore and queued cancellation both fail.
Capture the initiating account generation across queues, writes, and delayed
application so an expired action cannot enable or reconnect under a new account.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: respect local remote-switch cancellation across instances

Check the persisted change attribution before starting a delayed switch so a
local selection in another instance cancels the queued remote action too.
Cover the shared-profile off/on sequence and document the current Agent tool
availability gap without adding a new restriction.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: fence switch writes and serialize local takeover

Validate the original account generation inside the settings updater after
acquiring the write lock. Apply local changes in the switch queue and retain
recovery until the change and pending cleanup both complete successfully.
Arm a newly committed pending record before checking its request scope again.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix: recheck account before rollback reconnect

Match the first host-start branch by checking the captured account generation
after retrying the host startup, before reconnecting the device link.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>

---------

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-12 16:06:22 +08:00
liugaowei
c982be152f fix(plugins): 阻止旧凭证引用恢复并预占 WS 名额
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 15:08:09 +08:00
liugaowei
b8f08ee167 feat(plugins): 独立开放受控网络与已有凭证引用
保留第 23、25 项完整实现,叠加在已拆分的平台服务上。所有明文请求仅限既有分类器识别的私网、回环与 localhost;托管凭证只经 HTTPS/WSS 注入。安装与批准做提前校验,逐跳运行时检查作为最终边界,协议包保持零运行依赖。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 14:40:02 +08:00
liugaowei
e8beeb45fa refactor(plugins): 将网络与凭证能力拆出平台服务
保留授权文件、托管作业、存储、能力目录和 Node Host 公共入口;第 23、25 项在独立叠加分支保留完整实现。共享协议与作者文档按能力分离,保持原生命周期修正及作业、确认背压预算。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 14:12:51 +08:00
Chris
05dc21f33d fix(media): improve inline playback and stream remote video over the file channel
Add negotiated bounded range reads, reuse native player bridges, retain original images locally and provide reliable inline save actions.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-12 13:58:02 +08:00
Dash
373061f463 fix(mobile): enforce notification deadlines at the actual send
Pass each background action deadline into the existing invoke preSend guard, covering queue admission and asynchronous plugin command expansion. Regenerate the direct-link runtime after notify protocol additions.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 18:56:46 +13:00
liugaowei
69a1f5ef1a fix(plugins): 修复宿主能力审查发现的五项边界问题
保留常驻资源跨逻辑页启动的生命周期,接通 Node Host 已保存凭证引用,修正私有网络帧预算。插件侧边栏调用明确拒绝,明文凭证仅向现有分类器识别的内网与回环来源注入。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 13:31:31 +08:00
Dash
1c6729ed28 Merge remote-tracking branch 'origin/main' into cindy/clever-wozniak
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

# Conflicts:
#	docs/dev-rules/credentials-and-local-storage.md
2026-11-12 18:05:37 +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
Lizi
496067fe5d fix(claude): retain confirmed account identity and guard existing tasks during renewal
Persist the last CLI-confirmed identity before logout, reject renewal without a known account, and apply renewal guards to existing task sends. Keep recovery metadata local and provide an actionable owner-facing error.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-12 12:33:13 +08:00
Lizi
6fbf7f13e6 feat(claude): show per-account login expiry and verify renewal identity
Upgrade Claude Agent SDK to 0.3.321, expose advisory CLI login expiry for each subscription profile, and renew only the selected account with persisted identity recovery after mismatched or cancelled logins.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-12 12:33:13 +08:00
fmfsaisai
6dd445066f Merge origin/main into cindy/mcp-app-view-state
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-12 12:29:56 +08:00