Inbox: run a routine on a linked machine, managed from the one that made it

未关闭
#3,958 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by reading the machine-link launch forwarding path and the inboxLaunch.enabled / 403 window_only grant check, since the proposal hinges on whether a scheduled run can reuse that forward without a window press. Then look at the routine record and schedule handling, including the asleep/if_missed: run_once missed-run recording, and at the folder picker that already groups folders by linked machine. Done looks like a routine that names a target machine, forwards due runs through the link, records unreachable targets as missed, and is gated by an explicit opt-in on the target — the grant rule is still an open design question to settle before coding.

由索引模型根据 Issue 内容生成。

描述

Problem

Routines run on the computer that made them (#3409, "Known gaps in this version": "A routine is managed on the computer that made it" and "no sync of schedules between computers").

My setup is an always-on devbox where I manage everything, linked to a laptop. Some routines need the laptop (local apps, files, a signed-in browser). Today the only way is to create the routine in the laptop's own Inbox, so my routines end up split across two windows, and the laptop's schedule only fires while it's awake.

Proposal

Let a routine name a linked machine to run on, while its record and schedule stay on the machine that made it:

  • Create/edit: the folder picker already groups folders by linked machine for launches; a routine could take a folder on a linked machine the same way.
  • Run: when a run is due, the owning machine sends it as a launch through the existing machine-link forward (the same path a window launch on a linked machine takes). The runs' thread already works across linked machines.
  • Offline machine: if the target isn't reachable, the run is recorded as missed (like asleep), and if_missed: run_once sends it once the machine is back.
  • Grant: a launch through the link needs the window mark today (403 window_only without it). A scheduled run has no window press, so this would need its own rule, e.g. the target machine opts in to "routines from linked machines" next to inboxLaunch.enabled.

The last point is the part I'm least sure fits your model. Happy to hear if there's a better way, or if this is out of scope.

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
16 小时 1 分钟
30 天内合并 PR
756

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。