The new-task model sheet on the phone now lists the providers that the
user's other computers open for remote use and the providers shared
with the controlled computer, in the same sections as the in-task
model sheet. Picking one creates the task with agentDeviceId (the same
create-session parameter Desktop uses), so the Agent runs there while
the task and files stay on the controlled computer.
- The pick is kept apart from the draft: the draft's model and source
keep following the controlled computer's catalog, and the pick is
folded in at creation (ordinary and goal) for that computer and Agent
only. Saved drafts restored for editing split it back out.
- The controlled computer's catalog guard and sign-in gate don't apply
to a remote pick; the computer that runs the Agent checks it on the
first message.
- Offered only when the controlled computer's provider list carries the
remoteInvocationEnabled flag (added with remote Agent support), not
for shared-task guests, and not together with a collaboration draft
(its first Worker model comes from the controlled computer).
- The model pill shows the remote catalog's model name with the remote
badge; the accessible name includes the computer name. The optimistic
session row carries agentDeviceId.
JS only; no native fingerprint inputs change.
Signed-off-by: MagicLizi <jiali@magiclizi.com>
Invitees could see a shared provider but not select it: their model
picker and send gate also read the owner's agent capabilities, available
agents and agent readiness, and the owner's computer refused everything
but the provider list.
- Owner: provider-share guests may now read maker:get-capabilities,
maker:list-available-agents and maker:agent:status. Each answer is
narrowed to the shared provider: capabilities keep only its models,
available agents only the agents it serves, readiness only
binaryReady/authReady (no local path or login identity).
- Invitee: the renderer's share:<id> reads pass these channels through.
- Settings: "Providers shared with me" moves from the bottom of the page
into the provider list as its own group; selecting one shows its
source, status, the models it offers (read-only) and Leave. "Paste
share link" sits at the end of the group. The manage-sharing entry
uses a share icon.
Signed-off-by: Lizi <jiali@magiclizi.com>
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>
* feat(usage-limit): 账号用量上限重置后自动继续,覆盖更多订阅套餐
- 普通任务撞上 5 小时 / 周用量上限时照常报错,同时等额度重置;到点仍无人处理
就自动继续(有产出发续跑指令、零产出重发原文)。横幅显示「将于 X 自动继续 ·
取消」,手机端同步;替换原「恢复后继续」一次性自动化入口。仅本次运行有效。
- 重置时刻统一按会话所用账号求:错误自带 → 报错原文(Codex try again at、Pi
~N min、ChatGPT resets_at)→ 订阅用量快照(ChatGPT / Claude / SuperGrok 按
provider 的 auth.native)。目标模式共用同一套来源。
- 新增 maker:input:cancel-usage-limit-wait 与可选投影字段 usageLimitWait;
账号限额不再进入秒级中断重连。
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): scope waits to the session model and subscription, tighten lifecycle
- Read only the Codex bucket / Claude scoped window that limits the session model
- Never wait on non-subscription providers even when the error text has a retry time
- Bind waits to the candidate recovery issued at the terminal error; drop in-flight
resolutions on user action or close; withdraw the hint when eligibility lapses
- Check the renderer sender on the cancel IPC; renderer no longer clears the hint
optimistically
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): only trust reliable reset times of the limited subscription window
- Goal mode reads error-text reset times through the host, only for subscription sessions
- An exhausted window without a reset time yields no reset time instead of borrowing another
- Ignore windows already past their reset and stale SuperGrok snapshots
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): restore the error when a reset continuation is dropped before dispatch
- Keep a pre-dispatch rollback record for usage-limit continuations (no interrupted-turn token)
- Restore the original error and manual retry from the existing discard / undispatched hooks
- Document that scheduler-origin inputs, including hook channel messages, are not covered
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): withdraw a fired wait when the continuation does not start
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): recognise built-in subscription accounts, commit unconfirmed continuations
- Map the built-in default providers (openai / anthropic / xai) to their subscription family
- Treat a usage-limit continuation as current while its pre-dispatch rollback record exists,
so an unconfirmed dispatch is committed instead of being restored as retryable
- Do not pass the usage-limit sessionTotal (0) to interrupted-turn bookkeeping
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): only use snapshot reset times when the snapshot confirms the limit
- Return a snapshot reset time only when a window is exhausted; goal's reactive path checks limited too
- Void the snapshot-level reached flag once any window has rolled over
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): judge snapshots by exhausted windows only, withdraw waits on model switch
- Drop snapshot-level reached flags (stale or credits depleted); only an exhausted live window counts
- A user model / source switch withdraws the pending usage-limit wait
- Document that goal mode keeps its persisted usageLimited resume across restarts
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* docs(usage-limit): scope the model-switch withdrawal rule to ordinary tasks
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): match usage windows against the model the session actually runs
Runtime overrides (set_session_runtime / automatic fallback) take precedence over the saved
session model and provider for both ordinary tasks and goal mode.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): never auto-continue a shared-task guest turn
The guest's access may be revoked while waiting; re-sending their instruction hours later is
unsafe, so the error stays for the owner to handle.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* test(usage-limit): pin that guest steers never leave a usage-limit wait
Covers both orderings (steer ack before / after the terminal error); docs mention guest steers.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): goal mode skips local subscription snapshots for SSH sessions
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): withdraw the wait before a user model switch starts
Cancelling after handleSetModel could lose to a continuation that fired during the switch.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): never treat billing depletion as a periodic usage limit
Share the billing-depletion check between the usage-limit classifier (goal and ordinary tasks)
and the reset-time parser, so quota wording on a billing error no longer schedules a wait.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): ignore zone-less clock times from SSH session errors
Remote Codex reports 'try again at 3:05 PM' in the remote host's local time; only relative,
zoned or structured reset times are used for SSH sessions.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(usage-limit): never auto-wait on a usage limit while the task is shared
Per Dash (2026-10-08): ordinary tasks and goal mode stay on the error / usageLimited for the
owner to resume when the task is currently shared; a wait that becomes shared does not resume
at the reset time. Goal overload retries are unaffected.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
---------
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Commands that a remote Agent runs on the task's computer now inherit the
full Desktop environment, the same as local agents: real home, temp dir,
SSH agent, git / gh / npm config and the user's own variables.
The previous isolation (fake HOME/USERPROFILE/APPDATA, user "agent",
PATH rewritten to junction links, credential-like variables stripped)
broke git identity, SSH, gh login and npm-style shims such as pnpm.cmd,
while the real home stayed reachable through the virtual path. Path
virtualization stays: PATH directories not already covered by an alias
are registered when the virtual root is set, and ~ resolves to the real
home.
Signed-off-by: Lizi <lizi@xd.com>
Upgrade Claude Agent SDK from 0.2.112 to 0.3.292 and Anthropic SDK to 0.93.0. Use claude-desktop consistently across local and SSH sessions. Preserve remote HOME/PATH with an explicit sanitized environment merge, and bump the remote manager bundle to 0.0.11 without changing protocol v5. Keep the bundled Claude Code runtime pinned at 2.1.280. Update third-party disclosures.
Validation: 1,787 targeted tests passed (4 existing skips); maker-core, cc-manager and Desktop type checks passed. Compare old/new SDKs against the real Windows CLI with a loopback model: tools, MCP, skills/hooks, permissions, subagents/background tasks, interruption, resume/fork/rewind and usage pass. The bundled manager also passes local RPC runtime checks. Real subscription accounts, macOS/Linux and real SSH hosts are not exercised.
Signed-off-by: Lizi <jiali@magiclizi.com>