You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 33ffe5b
Browse filesBrowse the repository at this point in the historyBrowse files
The chat approval dock and the friends settings panel no longer keep a poll timer in a hidden tab: both polls go through `pollWhileVisible`, so a hidden tab makes no read and holds no timer, a tab that comes back reads once at once and restarts the cadence from that read, and the panel — which had no visibility listener — now catches up on return instead of waiting out the rest of its period. The visible cadence and everything on screen are unchanged.
Copy file name to clipboardExpand all lines: docs/subsystems/social.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,7 @@ Creating a group opens its Session with zero turns, and the host draws no sessio
128
128
- The paused-chat card's 5 s `social/paused` read and the connecting page's 2 s `social/server` read are the same rule (#3327): both go through `pollWhileVisible`, so a hidden tab makes no call, coming back reads once at once and restarts the cadence from that read, and unmount removes the listener. Nothing on screen changes; only when the reads happen while hidden.
129
129
- The peer-thinking row's 2 s `social/typing` read follows the same rule: `pollWhileVisible`, so a hidden tab makes no call, coming back reads once at once and restarts the 2 s cadence from that read, and unmount removes the listener. The visible cadence is unchanged, and nothing on screen changes.
130
130
- The face-rooms page's 5 s `social/face-rooms` read is the same rule once more: `pollWhileVisible`, so a hidden tab makes no call (not even the mount read), coming back reads once at once and restarts the 5 s cadence from that read, and unmount removes the listener. The visible cadence is unchanged, and nothing on screen changes.
131
+
- The chat approval dock's 5 s `social/status` + `approvals` poll and the friends settings panel's 15 s `social/status` poll are the same rule (#3354): both go through `pollWhileVisible`, so a hidden tab makes no call (not even the mount read) and holds no timer, coming back reads once at once and restarts the cadence from that read, and unmount removes the listener. The panel gains the catch-up read it did not have; the visible cadence and everything on screen are unchanged.
131
132
- A plain human line in an open face-to-face room is logged and fanned out once, and starts a single pass of every local Bot (admin first, capped at 6, no @ needed; #287, #295; core `openingSpeakers`, see [core-host](core-host.md)). Since #299 the Bots pick the responder from a plain line (they may `[PASS]`; the first Bot that answers ends the round unless the line is to everyone; the first Bot answers if all pass on the owner's own line), and a line to everyone or `@all` is unchanged. A friend's attested plain line (or `@all`) starts the same pass on this home, routed and single like the owner's own line (#462) (the plugin passes `attested: true` to `postHuman` only for a stamped line); an attested line that names Bots starts only the Bot(s) it names by the label the picker shows (`Friend's Chief`) or by handle; `plugins/social/test` has the two-home case. **Explicit mention list (#293):** the sender's host resolves the picker's labels against the room (`faceMentions().handles`; core `onFaceLine(fn)` passes `{ mentions }` for the owner's typed line) and `faceApi.send` puts the handles in `mentions` next to `typed_by_owner` only when `GET /v1/platform` `features` lists `mentions` (the one feature probe, `serverMentions()`); never on the legacy envelope, Bot lines or an older server. The receiver reads `mentions` (`cleanMentions`, at most 8 handles) only from a line the server attests `typed_by_owner` (`renderFaceEvent`), and `postHuman` resolves the handles against the room first (`mentionedByHandle`): only my own Bots in the list answer; a list naming nobody the room knows, or no list, falls back to the label/name reading above. The composer's `@` picker inserts the label text, so the handles are derived from it at send, not tracked in the composer.
132
133
- The encoded human line is bounded at 18 000 **code points**, not UTF-16 units (#2641): `encodeFaceHuman` cuts with the file's own `cutCodePoints`, the same 18 000-code-point budget `coSeatEnvelope` applies to an outgoing room-share line, so a person's line whose bound falls inside an emoji ends on a code-point boundary instead of storing a lone surrogate that the next UTF-8 write turns into `U+FFFD`.
133
134
- A peer string that arrives from the far side of Bot Social is capped on **code points** too (#2693): `cleanText` (60, so a friend's Bot or owner display name), `safeName` (120, an attached file's name), `draftText` (800), the person label `grantPersonView` builds in `mcp-client.js` (60), and the error and invite lines the host caps. All of them cut with one `cutCodePoints` in `src/code-points.js`, which `social.js` still re-exports (#2581), so a value whose bound falls inside an emoji keeps the emoji whole instead of ending on a lone high surrogate that a stored setting, a remote session name or a cross-home payload would show as `U+FFFD`; a value already stored that way is left unchanged rather than migrated.
0 commit comments