Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe7f914681 |
@@ -235,7 +235,7 @@ def _revive_session(agent_id: str) -> bool:
|
||||
|
||||
### 4.5 O5: compact 检测(§15 rotation-only v3)
|
||||
|
||||
§15 设计文档:`docs/design/15-compact-detection-fix.md`
|
||||
§15 设计文档:`docs/design/24-compact-detection-fix.md`
|
||||
|
||||
**检测方法**:读 gateway 日志尾部 2MB,按 sessionKey 过滤 `[compaction] rotated active transcript` 事件。
|
||||
如果最近的 rotation 事件在 120s 窗口内 → 视为 compact 循环进行中(可能还在 post-compact retry)。
|
||||
|
||||
@@ -342,6 +342,8 @@ async def _handle_pull_request(payload: Dict[str, Any]) -> None:
|
||||
await _handle_pr_opened(payload)
|
||||
elif action == "closed":
|
||||
await _handle_pr_closed(payload)
|
||||
elif action == "synchronize":
|
||||
await _handle_pr_synchronize(payload)
|
||||
|
||||
|
||||
async def _handle_pr_opened(payload: Dict[str, Any]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user