Skip to content

[#3114] #1751 日报收养:已有 09:00 digest 任务时不再写第二条 #3171

Closed

Description

@Birfy

第六刀的收口单(umbrella #3114 保持 open;切片 PR 写 Fixes #<本单> + Part of #3114,不写 Fixes #3114)。

范围

Project assistant 的 09:00 日报改成收养:scheduleDigest 在 schedule-create 之前先查该 Session 上已存在的同名 daily 任务,判据 kind === 'daily' && title === DIGEST_TITLE && status !== 'inactive',命中就直接把它的 id 写进 assistant.scheduleId,不再写第二条;没命中才 create。只动 plugins/project/** + 一页 docs + 一个 changelog 片段。

依据

完整规格见 #3114 的第六刀更正评论 issuecomment-6984150141(以这条为准,取代 15:41:53Z 的 6983434618)。基准 main 25ab31c97c4fa57de2174fa6a676bd937066cb21。

  • 现状:plugins/project/src/project-assistant.js L224 scheduleDigest,L236–241 无条件 schedule-create,L242 从 view.tasks 里回找;L255 reconcile、L263 只处理 typeof assistant.scheduleId !== 'string' 的项目 → 已有第二条时永远不再修。
  • 判据要点:DSH 任务状态只有 active | inactive,没有 finished(按 finished 过滤等于不过滤,会收养死行并把死 id 写进 scheduleId);paused 行由 schedulesView 以 status:'paused' 并入,所以判据是 status !== 'inactive'。
  • 文件切片:4 文件,手写 +102/−2 = 102 行(源 +12/−1、测试 +86/−0、docs +1/−1、changelog +1),生成物 0。

明确不做

不动 core/**、core/src/host/**、core/src/shared/**、plugins/social/**;不碰任何 gate 文件;不改 projects.js 之外的插件面;不做「多条 digest 自动清理」(只收养、不删)。

验收

红先:plugins/project/test/project-assistant.test.js 追加 4 例(含「同名 weekly 不是日报」),先在 main 实现上跑出红,再补实现转绿;回归该文件 + 邻近 project 测试全绿;TZ=UTC TMPDIR=/data/flybot-tmp npm run verify exit 0。预期档位 T2 → tip 上要有 PASS 才入队。

Written-by: Chief

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions