Repository navigation
refactor: keep inbox and task state within lint limits - #158684
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 September 26, 2026, 2:20 AM ET / 06:20 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch moves Gateway mention text formatting and task activity cleanup into focused modules while preserving their existing behavior. Merge readiness✅ Ready for maintainer review Keep open. Current Priority: P3 Review scores
Verification
How this fits togetherThe Gateway mention inbox turns committed mentions into text shown to clients. The task registry tracks live task activity and clears temporary state when its in-memory view is replaced. flowchart LR
A[Mention input] --> B[Mention inbox]
B --> C[Text presentation]
C --> D[Gateway client]
E[Task restore] --> F[Task registry]
F --> G[Activity cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +17. Total +17 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep mention presentation and task activity cleanup with their respective owners, then land the repair through the normal lint and Gateway/task validation gates. Do we have a high-confidence way to reproduce the issue? Yes, from source: the checked current-main files count 713 and 702 lines under the configured 700-line rule. This review did not execute lint. Is this the best way to solve the issue? Yes. The extracted expressions and cleanup operation retain their existing callers and state owner, with no competing implementation found. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 837fad120fba. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
This narrow lint repair was explicitly requested under the maintainer task to finish and land #157920, after its native gate reproduced these two unchanged-main line-limit failures. It is not an unsolicited refactor. Scope is the four reviewed files only; the maintainer independently inspected the frozen patch and approved the behavior-preserving extraction. The current PR CI failure is separate: |
|
I am coordinating the current-main full-lint blocker for native correction gates on #158673 and #158680. On a fresh detached canonical main at I will reuse these existing repairs instead of creating a duplicate. Are you actively landing this PR, or is a native maintainer handoff available? I am independently checking the patch and exact-head evidence. No changes to your branch, review records, checkout, or lease have been made. |
|
Merged via squash auto-merge.
|
* refactor: keep inbox and task state within lint limits * fix(gateway): preserve boxed coercion without chained assertions
* refactor: keep inbox and task state within lint limits * fix(gateway): preserve boxed coercion without chained assertions
* fix: avoid event-loop stalls during channel retention pruning * test: run LINE webhook ingress with its host database broker * test(zalo): await durable webhook delivery before assertions * fix(ci): restore core lint line limits (#158625) * fix(ci): restore core lint line limits Share the kernel test environment with fresh per-case copies and remove a redundant session publication map alias. Preserve all assertions, environment values, publication ordering, and stored state contracts. * test(gateway): keep health monitor fixtures within lint limits * refactor: keep inbox and task state within lint limits (#158684) * refactor: keep inbox and task state within lint limits * fix(gateway): preserve boxed coercion without chained assertions * refactor(channels): integrate canonical ingress mutation kernels Integrate the existing mutation extraction from #158628 while retaining the worker-owned prune operation and its prepared input. Preserve the public option type, authority checks, and retention ordering. * test: join ingress fixtures in native worker pools * test: include ingress consumers in native batch expectations * test: route and settle native ingress worker fixtures * test(channels): preserve ingress cleanup failures * test(channels): normalize mixed cleanup results * test(doctor): reuse migration config fixture helper --------- Co-authored-by: Jason (Json) <[email protected]>
* fix: avoid event-loop stalls during channel retention pruning * test: run LINE webhook ingress with its host database broker * test(zalo): await durable webhook delivery before assertions * fix(ci): restore core lint line limits (openclaw#158625) * fix(ci): restore core lint line limits Share the kernel test environment with fresh per-case copies and remove a redundant session publication map alias. Preserve all assertions, environment values, publication ordering, and stored state contracts. * test(gateway): keep health monitor fixtures within lint limits * refactor: keep inbox and task state within lint limits (openclaw#158684) * refactor: keep inbox and task state within lint limits * fix(gateway): preserve boxed coercion without chained assertions * refactor(channels): integrate canonical ingress mutation kernels Integrate the existing mutation extraction from openclaw#158628 while retaining the worker-owned prune operation and its prepared input. Preserve the public option type, authority checks, and retention ordering. * test: join ingress fixtures in native worker pools * test: include ingress consumers in native batch expectations * test: route and settle native ingress worker fixtures * test(channels): preserve ingress cleanup failures * test(channels): normalize mixed cleanup results * test(doctor): reuse migration config fixture helper --------- Co-authored-by: Jason (Json) <[email protected]>
What Problem This Solves
Restores the existing source line-limit check for mention/task files over the 700-line limit (713 and702 counted lines). Both failures reproduce in unchanged main code.
User Impact
No user-visible change. Mention presentation, task cleanup, and native JSON numeric coercion retain their existing behavior. No stored-data, schema, or authorization changes.
Why This Change Was Made
This narrow CI repair was explicitly requested as part of the maintainer task to finish and land #157920. It is not an unsolicited refactor.
Move unchanged mention title/excerpt formatting into a focused presentation module and move bulk activity-overlay cleanup into its existing process-state owner. No lint limits, baselines, suppressions, or tests were added.
CI also exposed an unrelated boxed-number assertion on main. We verified a correction, then main independently landed the same operation in
66b812f26e7. This branch incorporates that canonical fix; the progress-snapshot file is no longer in the PR diff.Evidence
lint:no-chained-type-assertionson unchanged mainserver-chat-progress-snapshot.ts:36. Same focused command reproduced locally; it passes with the correction. The failed run remains retained.No release, live service, installed runtime, or enforcement setting was changed. Required CI and native review still govern landing.