Repository navigation
fix: reduce parent overhead with session reuse and bounded waits - #13
Merged
Merged
Conversation
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.
Fixes #11
改动
sessionReusePolicy,说明调查→实现→评审修正使用同一个offload -r会话、何时新开会话、压缩导致历史不是无限或逐字保留,并给出完整示例。-p新开会话,offload show查看旧报告)。offload -r发现该会话仍有活动运行(live 状态)时以 exit 2 拒绝;已结束的运行不阻塞。中断的运行需先用offload show/git diff检查,部分修改保留。offload watch -t <时长>作为一次长等待;所有 worker 结束返回 0,到期仍有活动 worker 返回 124(不是 worker 失败)。STALLED/LOST/超时/失败照常输出。文档给出宿主完成通知优先、否则少量长等待的回退方案,且不操作用户桌面。测试
gofmt、go vet ./...、go test -race ./...全部通过。新增:已删除 profile 的 resume、活动会话拒绝与结束后恢复、watch -t到期返回 124、watch 参数校验、policy/skill/README 一致性。假设与限制
watch -t)和文档,未给出实测数据。offload install-agent刷新并新开 agent 会话后生效。