Repository navigation
Conversation
The friend settings card read the pair's Auto-send setting with an empty rejection branch: a failed read left the checkbox at its initial false, drawn exactly like a setting that is off, while the switch stayed live — the person could read the setting as one they chose. The value is now unknown (null) until a read answers, the failed read draws one quiet status row, and the switch is withheld while unknown. Provenance: the vendored plugins/social/client.js moves from the identical list to modified_files, and the four added test files are recorded with it. Ports the intent of ThinkFlowLab#3370 (stays open).
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FlyBot 2.0 / OpenTeamily — social: hidden-window polls and read-error states
Repackages the intent of #3356, #3364 and #3370 (all three originals stay open).
Related #3356
Related #3364
Related #3370
Problem
The vendored social plugin at
runtime/flybot/plugins/social/client.js(blobdf78f717, the 2026-11-16 snapshot) still runs the polls and read paths it had inside FlyBot 1.x, where three defects were found and fixed in PRs that never landed on this tree:visibilitychangelistener at all, so a tab that came back waited out the rest of its period before its first read (social: the chat approval dock and the friends panel stop polling a hidden tab #3356);false, drawn exactly like a setting that is off while the switch stayed live (social: a failed Auto-send settings read is drawn as the setting being off, and the switch stays live #3370).What now really works
What changed
runtime/flybot/plugins/social/client.js: addspollWhileVisible(fn, ms)(no timer whiledocument.hidden, one read when the tab returns, cadence restarting from that read, returnsstop()) and routes the dock's 5 s and the panel's 15 s poll through it; adds anerrorstate toPausedChatwithdata-flybot="social-paused-error"; makesFriendChatSettingsholdauto === nulluntil a read answers, adds afriend-auto-read-errorrow, and disables the checkbox while the value is unknown.test/poll-visibility.test.js,test/paused-chat-read-error.test.js,test/friend-auto-read-error.test.js,test/client-harness.mjs.plugins/social/client.jsmoves out ofdocs/upstream/flybot-files.json(identical) intodocs/upstream/migration-manifest.json→modified_files, with its original and new hashes, and the four added test files are recorded there too; the flybotfile_countdrops 46 → 45.Unchanged by design
The visible cadence (5 s / 15 s), every sentence already on screen, the
social/status,social/pausedandsocial/settingsendpoints, the plugin's host surface, and the server-config path are untouched.src/social.jsandsrc/server-config.jsare untouched.Intentionally not in this PR
Proof
v2/repack-social-ui-20261125at42851df3be4e2e887e3af341eb25eaf85e8f5eb4; base is upstreammainat push time (be7b1dac, the Add a FlyBot feature demo to the README #3380 merge), so the merged README demo is preserved. The push tool writes changed blobs, so the change is one commit on top of the vendored tree rather than the three local commits it was built from.TMPDIRon a writable directory — the credentials testsmkdtempunder it, and a read-onlyTMPDIRfails 34 of them withEROFS):cd runtime/flybot/plugins/social && npm test(node --import ./test/resolve.mjs --test "test/*.test.js") → 178 tests, 178 pass, 0 fail.git worktreeat the root commit5e78a30, i.e. upstream6be84f48): 165 tests, 165 pass, 0 fail — so this branch adds 13 tests and 13 passes and changes no existing result.node --test test/poll-visibility.test.js test/paused-chat-read-error.test.js test/friend-auto-read-error.test.js→ 13 tests, 13 pass.client.js: 9 fail, 4 pass (the 4 pin behaviour that already worked: on/off drawing, no buttons on an unmounted read, unmount cleanup).python3 scripts/verify-upstream-migration.py→verify-upstream-migration: ok (flybot 45 files, bot-social 437 files).python3 -m unittest discover -s tests -p 'test_upstream_migration.py'→ 7 tests, OK.client.jsis executed byprovenance / flybot-social-plugin-tests; thesocial-hostjobs importindex.js/src/social.jsand notclient.js.Overlap check
Read the three open originals (#3356, #3364, #3370) and their diffs: they are written against our 1.x
plugins/social/client.js(89592f6a) and do not apply here (poll-visibility.test.jsdoes not exist in 2.0, and the hunks collide atclient.js:4011/:3813). This branch reimplements the same behaviour at the 2.0 paths; no other open pull request touchesruntime/flybot/plugins/social/client.jsordocs/upstream/migration-manifest.json.Deployment / rollout
none
Not claimed
No vendor/container/browser acceptance and no parity claim. The behaviour, not the hunk, was ported; the branch is one commit because the push tool replays blobs.
Written-by: Dev-2
Bot: FlyBot Dev-2