Repository navigation
fix(settings): group thread sync status by computer - #560
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/thread-sync-diagnostics-ux
branch
from
November 12, 2026 09:32
ce87896 to
3c6889f
Compare
nixuuu
force-pushed
the
fix/thread-sync-diagnostics-ux
branch
from
November 12, 2026 12:06
a33bdc4 to
8489f15
Compare
nixuuu
marked this pull request as ready for review
November 12, 2026 12:13
nixuuu
force-pushed
the
fix/thread-sync-diagnostics-ux
branch
from
November 12, 2026 12:25
ee7f780 to
09a3ff1
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
The same thread now exposes its home connector access and scheduled tasks from either linked computer. A dedicated display DTO omits credentials, headers, endpoints and account errors. Connector grants, schedule creation, edits and cancellation run at home with owner and revision checks. Worker grants affect every thread on that worker; inherited All workers and account administration show a compact home-management hint. Verified panel responses survive a restart and remain visible as stale when the home or panel read is unavailable. The archived sidebar now pages local rows together with committed linked metadata: the previous 7 vs 31 counts came from intentionally local-only archive reads. The three-gateway move regression now reconnects with a saved thread cursor and requires a removal from the old home. The runtime exemption for mirror subscriptions and range acknowledgments is already present in the rebased dev branch; individual thread operations still follow their redirects, and ACKs retain peer/subscription/cursor validation. Gateway-to-gateway regression coverage exercises safe metadata, schedule create/list/edit/cancel, home enforcement after grant changes, owner isolation, cached stale reads, restart/unlink and archive totals/pagination. Mobile changes are JavaScript/TypeScript only; native configuration and dependencies are unchanged. Validation: - `bun install`, `bun run gen:check`, package-db typecheck and changed-file oxfmt/oxlint passed. No full local `check:tmp` was run, as requested; CI runs the full checks and test shards. - Focused gateway-to-gateway panel tests, schema and upgrade tests passed. The three-gateway move regression passed 20 consecutive runs. After rebasing onto migration 0126, the panel/schema/inherited-access tests passed; the staged sync upgrade exposed an ordering assumption, was repaired and passed its focused rerun (17 assertions). - Real-browser review used two linked gateways in light/dark at desktop and phone widths. Both views show Connectors and Scheduled tasks. Remote grant revoke/restore was reflected at home; remote schedule create/edit/cancel worked. Disconnecting home retained connectors and schedules with explicit stale/unreachable text and disabled actions. Both archive counts were 38 (7 + 31), including offline. Short, typical and long labels remained readable without horizontal overflow; removed a duplicate offline hint that compressed schedule rows on phones. - Native fingerprints match the tested dev base (`a79d316c`) for both platforms: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`; Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Mobile changes remain JS/TS only. Subsequent rebases include JS/TS-only mobile changes from dev; fresh CI runs on the final head. Copy audit (§8): hidden sections → visible Connectors and Scheduled tasks; Manage → scoped connector-access dialog with “Changes apply to every thread on this worker.” This states the grant's actual scope. Stale metadata → explicit last-known-details status; account-wide changes → “Manage accounts on <computer>”. New actions use verbs, sentence case and text status cues; no humorous copy. Existing controls provide keyboard/focus behavior and name truncation. Browser review covered short, typical and long names in light/dark at desktop and phone widths, including offline states and dialog scrolling. Related: #543, #539 Migration coordination: rebased onto `580a4815`, including #562 = 0124, #547 = 0125, #560 = 0126 and #557 = 0127. This PR registers `0128_thread_panel_cache`; the loader and schema expectations list 0124 through 0128 in order. The staged thread-sync upgrade test reads the migration tail dynamically after the explicit 0126 stage, including 0127 and 0128, checks that durable sync state survives, and verifies that repeating the full migration is a no-op. It does not assume 0128 is the latest migration. Focused schema and staged/inherited-access upgrade tests passed again after this rebase (25 tests, 107 assertions); all 6 remote-panel integration tests also passed (63 assertions). `bun install` and `gen:check` passed. An initial panel test launch resolved a workspace package to another checkout; refreshing installation corrected the local alias before the successful rerun.
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.
Settings → Diagnostics repeated the computer hostname once per mirrored thread, making dozens of rows indistinguishable. Thread sync now shows one row per linked computer, using its display name and complete thread totals. Expanding a row loads only threads that need attention, with titles, remaining records, pause reasons and links. When reachable computers are caught up, one calm status replaces the list and zero counters.
Fixes: #543
The additive RPC returns local computer summaries separately from bounded attention pages. Every join is owner scoped; message bodies are never read. A migration records the last committed range time without inventing historical timestamps. Web and mobile share grouping/status copy, poll summaries every 5 seconds while visible/foreground, and fetch detail pages only for expanded computers. Mobile changes are JS-only; native configuration and dependencies are unchanged. The Diagnostics page only loses its obsolete subtitle; its layout and other sections are unchanged.
Validation:
bun run gen.nice -n 19.devthrough fix(mobile): expand turn summaries smoothly without scroll jumps #554, including fix(files): resolve and preview files from remote threads #546 and feat(threads): inherit access mode for subagents and bot threads #547. Resolved the generated-contract conflict by regenerating the merged proto;bun run gen:checkpassed again. Migration registry and schema expectations contain 0124, 0125 and 0126 in order.bun installpassed locally.packages/db/test/inherited-access-upgrade.test.ts,packages/db/test/thread-sync-upgrade.test.tsandpackages/db/test/schema.test.ts. The feat(threads): inherit access mode for subagents and bot threads #547 test now checks the contiguous 0124 → 0125 upgrade before applying later migrations, preserving every explicit owner choice. Earlier gateway/schema run passed 26 tests / 157 assertions. The fullcheck:tmpwas deliberately left to GitHub CI during the host measurement window.origin/devexactly on both platforms (iOS6ddec9ef559ee0095ac33e94ff9418a942053b17; Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9). Compared against a clean archive with its own matching dependency install.Copy audit (§8):