feat: batch background notifications - #9
Merged
Conversation
9 tasks
agnitum2009
pushed a commit
to agnitum2009/openpi
that referenced
this pull request
Aug 13, 2026
Co-authored-by: tt-a1i <tt-a1i@users.noreply.github.com>
agnitum2009
pushed a commit
to agnitum2009/openpi
that referenced
this pull request
Aug 14, 2026
两条不相交历史(lazyload 开发库独立根)。分支 296 提交为演化主线, 内容取代 origin/main 的 PR openpi-dev#3/openpi-dev#5/openpi-dev#7/openpi-dev#9(Redis 可选依赖、Biome/Bun 对齐、任务对账、批量通知——分支已含演化版:shared/task-reconcile、 result-delivery、biome/bun 工具链)。 - 冲突与内容一律取分支侧;合并树 == 分支树(read-tree 落地后 diff 为空校验通过;merge 自动解析曾引入 main 侧旧位置 subagents/src/agent-types.ts 残留,已随精确落地清除——该模块 在分支 c7017af DDD 收敛时迁至 shared/) - 本地 main 未推送的 2 个提交(commit-task-sync v2 + obsidian KB) 存档于 archive/local-main-unpushed;vault 内容按 d0e64d4 决策不并入 - 分支关键内容:工具载荷 40.6k→~36.0k tok(端到端 -10.5%)、加载组 预设、B 方案第三方描述补丁、显示残留根治(model-info tok/s、 session-liveness busy 闸门 + 子会话守卫)、总线漂移守卫、 agent-types 诊断分级
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/cronjobs due in one polling tick into one structured follow-up and one triggered model turnbg_watch, shutdown cleanup, and truthful multi-terminal renderingWhy
Near-simultaneous build, test, lint, and package completions could wake the model once per process while idle. Multiple cron jobs due in one tick likewise queued separate triggered turns. One bounded batch gives the model a complete decision set with less context fragmentation and fewer model turns.
Safety boundaries
bg_startreserves against running, pending, and concurrent starts so the retractable exactly-once backlog stays bounded without evicting identitiesagent_settledand delivers them asnextTurnwithout forcing another responsebg_status/bg_killconsumption and the id-keyed delivery map remain authoritativebg_watchuses its existing independent immediate message pathsendMessagethrows, no due job advancesTest plan
git diff --checkCloses #8