Repository navigation
fix(signal): stop typing when reply turns end - #167569
ZengWen-DT wants to merge 1 commit into
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 real behavior proof before merge. What this changesConnects Signal typing-stop requests to the shared reply cleanup lifecycle. Example: Signal account +15550009999 replies to “hello” from +15550001111.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR repairs a concrete Signal defect that remains on current main and in the latest release; no introduced correctness or security defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Signal monitor receives inbound messages and dispatches replies through the shared lifecycle; its typing adapter translates lifecycle events into provider RPC requests. flowchart TD
A[Incoming Signal message] --> B[Signal monitor]
B --> C[Shared reply lifecycle]
C --> D[Signal typing adapter]
D --> E[Provider start or stop RPC]
C --> F[Reply delivery]
Technical reviewBest possible solution: Keep Signal terminal cleanup in the existing shared lifecycle with matching account and conversation bindings. Do we have a high-confidence way to reproduce the issue? Source establishes the failure: terminal cleanup cannot send a provider stop when Signal supplies only start; no target code or live reproduction was run during this review. Is this the best way to solve the issue? The patch repairs the missing adapter operation using the existing provider API and shared ordering owner, without adding configuration or duplicating lifecycle policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ad6af54167b9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +226, Docs 0. Total +236 across 6 files. Added test files: 1. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 22, 2026, 4:34 AM ET / 08:34 UTC (Revision 2). |
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
65196c9 to
9d99863
Compare
9d99863 to
c097ca5
Compare
Closes #127565
What Problem This Solves
Fixes Signal typing indicators remaining active until provider expiry after an OpenClaw reply ends, including silent replies and failed turns.
User Impact
Signal receives an explicit typing stop for the same conversation and account when the reply lifecycle closes. No configuration changes are required.
Why This Change Was Made
The Signal reply adapter supplied only a typing-start callback even though the provider already supports terminal stop. This wires both callbacks into the existing shared lifecycle, retaining its late-start ordering and deduplication. Stop errors are logged without failing or repeating the reply.
The small Signal-local adapter extraction keeps the existing oversized event handler within its line-cap ratchet; shared lifecycle code is unchanged.
Evidence
4420648c404; current headc097ca5eaf8cadc61eb69fb5ee1c96fd27be816cretains the existing reply-typing change and adapts the test-worker routing. The prior refresh failed a focused remote test because its harness API had changed; this head adapts that test and a new remote run is pending. Prior results below refer to earlier heads. Real Signal start/stop proof remains outstanding.Candidate
65196c9a6b23cb7a3f0a1965ea08bfe4501841ac, tree1ea994699ab1740f219c927a4f756e9d0295a8a3, retains the tested based0194c3401f9c225dfd24d232715011e7dbf3f5d. The exact patch applies cleanly to main77cecb5449650c8efd3c261fecb4be08f82e7eed; the newer SDK wrappers preserve typing callbacks. This is source-composition verification, not a runtime rerun on the newer main.pnpm test extensions/signal/src/monitor.typing.test.ts --maxWorkers=1passed 8 tests in 135.296 seconds wall time, including 89.752 seconds of compiled-worker preparation and 31.322 seconds of test time on a contended host. This reuses the existing monitor harness to verify that actual inbound-turn wiring reaches provider cleanup, which shared-helper tests alone cannot prove. CI timing is pending.Validation limits: no live Signal daemon/account or client UI was tested. Cancellation proof is a reply producer throwing AbortError, not monitor-shutdown cancellation. Never mode is supplied to the real signaler rather than resolved end-to-end from configuration. The changed-check aggregate passed 20 stages before the extension-wide type check exited 137 without diagnostics. One serial retry using the native throttled policy repeated those 20 passes and stopped at the same typecheck, again exit 137 without diagnostics (365.726 seconds total; 163.87 seconds in that stage). The exit is consistent with resource pressure but its exact cause was not independently established; later aggregate stages were not reached. The broader Signal extension run was interrupted after observing 501 passing tests and 20 UNIX-socket bind failures (EPERM under the host policy). Full build, full tests, and complete repository/doc gates have not passed; this is a draft.