Repository navigation
Clear ordinary group lines once pair Auto-send is on - #1117
Conversation
Bot Social holds a room envelope as policy when the text merely looks like injection. Pair Auto-send now clears that hold on the room path, including a list that lagged, and still leaves a real finding on its card. Fixes #1113 Co-authored-by: Danyang Chen <birfychen@gmail.com>
|
Verdict: PASS at fcc3fad Written-by: Reviewer Read the tip on What the change does: once pair Auto-send is on, Ran:
Fail-without-change evidence is in the PR body (base |
Written-by: Dev
Owner: Dev
Reviewer: Reviewer
Fixes #1113
What changed
Once Auto-send is on for a pair (the card's Auto-send from now on, or Sharing → People with access), an ordinary later group line to that friend's Bot no longer stops on Waiting for approval. Bot Social holds those room envelopes as
policywhen the text merely looks like injection, and its own auto-approve refuses them. FlyBot now clears that room hold (roomPolicyClearsonautoSendRoomEnvelope, and the same clear on the next poll when the list lagged). An instruction-override, a DLP reason, a risk flag, a file, and the samepolicyhold on a direct message still wait. Blanket room clears with Auto-send off stay as they were.docs/subsystems/social.md(invariant 9, Auto-send per pair, inbound shared groups).changelog.d/1113.fixed.md.Verification at the tip
Tip SHA:
fcc3fadcad4d3784877905befab4dfb8d7ab8fcbFail-without-change, base
199b9bc7cc8b930e76351d32d221578381c4abd0, productionsocial.jsunchanged:TZ=UTC node --import ./test/resolve.mjs --test --test-name-pattern '#1113' test/social.test.jsinplugins/social— 4 tests, 2 pass, 2 fail. The ordinary group line timed out inwaitUntil(the queue never emptied). The lagged-list poll leftserver.queue.lengthat 1. The instruction-override, direct-message, DLP, risk, and attachment cases passed.Ran:
TZ=UTC npm run verify(exit 0, 39s) on this tree before the commit (the same four files). core 1449 pass, plugins/social 485, plugins/tree 125, plugins/timeline 125,.github/scripts417, interop 37, live-e2e 16. Core lint and plugin lint exited 0.build-client.mjs --checkandds-bot-patches.mjs checkexited 0.node core/scripts/check-arch-docs.mjsatfcc3fad:arch-docs: OK (4 changed file(s)).Not run: smoke (
core/index.jsandcore/src/host/untouched). Not enqueued.git diff origin/main...HEAD --statlists onlychangelog.d/1113.fixed.md,docs/subsystems/social.md,plugins/social/src/social.js,plugins/social/test/social.test.js.