Repository navigation
refactor(zalouser): deslop profile and monitor forwarding - #162409
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 1:01 AM ET / 05:01 UTC. ClawSweeper reviewWhat this changesThe PR removes redundant Zalo Personal profile normalization and forwarding helpers while preserving acknowledgement ordering and monitor cancellation. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused cleanup absent from inspected main and the latest release. No introduced correctness or security defect was found. Priority: P3 Review scores
Verification
How this fits togetherZalo Personal connects OpenClaw to personal Zalo accounts. Its API adapter selects saved credential profiles, while its monitor receives messages, sends acknowledgements, and manages listener shutdown. flowchart TD
A[Profile input] --> B[Normalize profile]
B --> C[Zalo API and saved credentials]
D[Incoming Zalo message] --> E[Message monitor]
E --> C
E --> F[Agent dispatch]
G[Abort signal] --> H[Stop listener and ingress]
E --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -20. Total -20 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep profile normalization in the existing API owner and preserve the monitor’s acknowledgement and shutdown contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR proposes behavior-preserving cleanup rather than a reported defect. Is this the best way to solve the issue? Yes: reusing the existing normalization owner and removing single-use forwarding preserves the inspected contracts without adding another implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0783e3f28d4e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Reuse canonical parsing, target projection, lifecycle primitives and parameter contracts across channel plugins and the channel SDK. Preserve delivery text, allowlists, pairing, transport behavior, persisted data and public input shapes. Reject Mattermost JSON-null interaction callbacks through the existing invalid-body HTTP 400 path. Preserve single-account attachment signing and all Slack native command coverage. Related: #162339, #162409.
…62409) ## What Problem This Solves Zalo Personal repeats profile normalization already owned by `withZaloApi` and keeps single-use forwarding helpers around acknowledgement and abort handling. ## User Impact No intended behavior change. Profile identity, credential persistence, delivery/seen ordering, cancellation, config keys, stored state, wire formats, and user-visible text are preserved. ## Why This Change Was Made Ten callers now pass their original profile input to the existing API owner, which normalizes it synchronously before awaiting work. Callers that use the normalized profile for cache, persistence, or multiple operations retain their local value. The acknowledgement sequence keeps one captured argument object and the same catch boundary; abort registration and removal use the existing stable settlement callback directly. Measured production delta: 17 additions, 37 deletions, **20 net lines removed**. No tests, dependencies, or public APIs changed. ## Evidence Independent Codex P0–P2 autoreview completed with no actionable findings. On Blacksmith Testbox `tbx_01m3tth7s6zv8bhz30yzqck42k` ([run](https://github.com/openclaw/openclaw/actions/runs/36813922824)), the repository wrapper verified the candidate source tree `7a829a473e09830208a6725213cea8dbac29781e` from base `215c75a82f1859f259d34e4343ccb76970c2ca5a` plus this two-file patch: - Full Zalo Personal suite: 25 files / 226 tests passed (92 s including preparation). - Plugin contracts: 48 files / 1,153 tests passed (66 s). - Both cycle checks reported zero; SDK export registration passed. - Changed-file checks passed (396 s), including targeted extension type/lint checks and the repository guards. Existing credential tests cover mixed-case profile selection; listener and monitor cases cover abort, closure, message rejection, account scope and delivery behavior. No tests were added or changed, and no live Zalo messages were sent. Hosted exact-head CI is the final merge gate.
Reuse canonical parsing, target projection, lifecycle primitives and parameter contracts across channel plugins and the channel SDK. Preserve delivery text, allowlists, pairing, transport behavior, persisted data and public input shapes. Reject Mattermost JSON-null interaction callbacks through the existing invalid-body HTTP 400 path. Preserve single-account attachment signing and all Slack native command coverage. Related: openclaw#162339, openclaw#162409.
What Problem This Solves
Zalo Personal repeats profile normalization already owned by
withZaloApiand keeps single-use forwarding helpers around acknowledgement and abort handling.User Impact
No intended behavior change. Profile identity, credential persistence, delivery/seen ordering, cancellation, config keys, stored state, wire formats, and user-visible text are preserved.
Why This Change Was Made
Ten callers now pass their original profile input to the existing API owner, which normalizes it synchronously before awaiting work. Callers that use the normalized profile for cache, persistence, or multiple operations retain their local value. The acknowledgement sequence keeps one captured argument object and the same catch boundary; abort registration and removal use the existing stable settlement callback directly.
Measured production delta: 17 additions, 37 deletions, 20 net lines removed. No tests, dependencies, or public APIs changed.
Evidence
Independent Codex P0–P2 autoreview completed with no actionable findings.
On Blacksmith Testbox
tbx_01m3tth7s6zv8bhz30yzqck42k(run), the repository wrapper verified the candidate source tree7a829a473e09830208a6725213cea8dbac29781efrom base7e43f459ced39aed2030eb455aa4fcb977d3427aplus this two-file patch:Existing credential tests cover mixed-case profile selection; listener and monitor cases cover abort, closure, message rejection, account scope and delivery behavior. No tests were added or changed, and no live Zalo messages were sent. Hosted exact-head CI is the final merge gate.
Hosted CI run 36817193822 passed on exact head
17dd06004c8cff5e0b2d4bc10f89985f62cbea20; squash-merged as58432fd36569356c0f18b1af7b49d66512bb6f40. Merge ancestry was verified on freshly fetched main.