Repository navigation
fix(gateway): hot-reload automatic compaction settings - #118010
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 11:14 AM ET / 15:14 UTC. ClawSweeper reviewWhat this changesThe PR makes existing automatic-compaction settings reload in the running Gateway and adds planner, handler, and isolated Gateway regression coverage. Merge readinessThis is still necessary: current Priority: P1 Review scores
Verification
How this fits togetherGateway configuration changes are diffed into a reload plan, which decides whether to do nothing, refresh runtime state in place, or restart the Gateway. Automatic compaction settings feed model and transcript-compaction behavior, so their plan classification determines whether future compactions see an edited configuration. flowchart LR
A[OpenClaw config edit] --> B[Gateway config diff]
B --> C[Reload plan classification]
C -->|current main: no-op| D[No runtime update]
C -->|PR: hot reload| E[Gateway hot-reload handler]
E --> F[Prepared model runtime refresh]
F --> G[Later automatic compaction]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +383. Total +384 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the existing compaction configuration contract, classify its subtree as hot in the single Gateway reload planner, and land only after the rebased head has completed required CI. Do we have a high-confidence way to reproduce the issue? Yes, from current source: an Is this the best way to solve the issue? Yes. Adding the precise existing configuration subtree to the canonical Gateway reload plan is the narrowest owner-boundary repair because the established hot handler already publishes the candidate configuration and refreshes prepared model runtime state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 807506381a03. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
* fix(gateway): hot-reload automatic compaction settings * test(gateway): isolate compaction hot-reload e2e coverage --------- Co-authored-by: Peter Steinberger <[email protected]>
Fixes #114654
Root cause
Gateway hot reload classified automatic compaction settings as a full restart even though the active runtime can apply them through the existing reload path. That made a config-only compaction change interrupt the Gateway instead of taking effect in place.
Fix
Verification
Agent Transcript
Redacted agent workflow transcript