Repository navigation
fix(mobile): match web thread rows while working - #545
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Use the shared domain formatter for the bot row too, and apply formatting and lint spacing to the changed thread row files. Related: #545
nixuuu
force-pushed
the
fix/mobile-thread-row-parity
branch
from
November 12, 2026 09:10
68eeb41 to
a0e9072
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Use the shared domain formatter for the bot row too, and apply formatting and lint spacing to the changed thread row files. Related: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
`SendMessage` can deadlock with a source transaction and deferred range journaling during a linked-computer move. The advisory key in #545 decodes to `1102188573303919923`, exactly `hashtextextended('canopy.thread_mirror_journal', 0)`. The original PostgreSQL wait graph is 105 → 106 (transaction holding the `threads` row), 106 → 104 (global journal advisory lock), 104 → 105 (KEY SHARE tuple lock queued behind SendMessage). The original log omits the SQL statements for 104 and 106. The regression pins these roles to real `commandDone`, `ingestThread`, and SendMessage paths. The inversion came from #539: `thread_replication_enqueue` updates the same clock twice for a turn and its thread projection. PostgreSQL rechecks an unchanged FK when the previous row version belongs to the current transaction. That takes a fresh `threads` KEY SHARE while already holding the global journal lock. SendMessage, ingest and move admission acquire the thread row before their deferred journal. Migration 0124 inserts an immutable `thread_replication_sources` row between the clock and `threads`. Repeated clock updates now check that anchor without locking the execution row. Bootstrap creates it while already holding the thread row. Existing epochs, cursors and journal payloads survive; FK integrity and deletion cascades remain. No retries or weaker execution locks. Lock rule: source rows precede journal barriers/clocks; deferred journaling takes global journal → per-thread range barrier → clock and must not acquire `threads` locks there. This is documented in the helper and in Polish in `docs/linked-computers.md`. Validation: - Deterministic database barriers arrange command completion → ingest → queued SendMessage. The fixed test checks message delivery, the persisted ingest cursor, and publication of the committed notice. A second barrier case overlaps actual range publication, move freezing and SendMessage. - The existing move/history/files/old-home redirect/third-computer scenario runs twenty times in CI. - The migration upgrade test checks retained journal state and cascading deletion. - RED confirmed on the original schema in [CI 43189075639, Tests 4/4](https://github.com/itsoltech/canopy/actions/runs/43189075639/job/131083597540): the new regression fails with `40P01`. PostgreSQL's context shows `SELECT 1 FROM ONLY public.threads ... FOR KEY SHARE` from the second `thread_replication_enqueue(...,'thread',...)` clock update, under `computer_thread_changed`. That run also exposed an old-home mirror cleanup timeout in repetition 3/20 and an unrelated native-interaction fixture timeout; neither is counted as proof of the deadlock. GREEN pending on [the fixed head](https://github.com/itsoltech/canopy/actions/runs/43190996415). - Full CI covers frozen `bun install`, `gen:check`, typecheck, lint, formatting, every `check:tmp` shard and the web build. Local tests/install/builds were not run because this host is under a performance measurement; only changed-file oxfmt/oxlint ran at nice 19. Lock audit: thread-row locks in admission/queue/steers, ingest/settle/interactions, lifecycle/moves, bus/worktree/checkout/import and GitHub paths precede their deferred journal triggers. Range publication and client windows share `prepareRangeClock`. Publication-failure persistence runs after the read transaction ends; cursor/ACK storage locks mirror state rather than source `threads`. Bot-view, bot-name, GitHub-cache, proxy-migration and index-build advisory locks have different keys and do not match the incident. Copy audit: no user-facing text changes. Fixes: #539 Related: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
When a linked computer watches a home gateway, its project ID translation can change the same live thread row that the home's web and mobile clients receive. A working worktree thread can then show “Unknown project” even though its stored placement is correct. Clone each outbound stream message before translating IDs so local clients keep the home project ID and the peer receives its global ID. The source of the problem is `remoteServe`: `create(descriptor, message)` returns an already typed protobuf message unchanged. Hub subscriptions share those instances, and `ConfigIds.map` mutates project references in place. Project alias mapping was introduced in #168; #526 and #539/#541/#543 did not introduce this boundary. Both clients resolve projects by exact `projectId`, so both are affected. The database placement and `threadSelect` retain the parent project and joined worktree; this is an ID rewrite, rather than evidence of a partial status row. No client merge fallback or cwd-based guess is needed. The gateway integration regression uses two linked databases with merged project aliases and a side thread inheriting its parent's worktree. A real worker holds a turn open while overview updates and a resumed thread delta arrive. It checks the local/global project IDs and branch before, during and after work, including an unread update while working. The branch-over-directory presentation change remains in #545, which uses the same domain helper on mobile and web. Validation: scoped `nice -n 19` oxlint and oxfmt checks passed; `git diff --check` passed. Local installation, typecheck, tests, builds, fingerprints, browser and render measurements remain deferred at the maintainer's request while host diagnostics run. GitHub CI will run the required suite. The local commit hook was skipped using its supported `SKIP_SIMPLE_GIT_HOOKS` switch because commitlint is not installed in this worktree and local install is deferred; CI validates the Angular title. Copy audit (`docs/copy.md` §8): no UI strings, labels, errors, empty states or actions changed. The existing “Unknown project” fallback remains; this fix supplies its correct project reference. Documentation change is in Polish. No mobile/native dependencies, client subscriptions or timers changed. Related: #168 Related: #545
Use the shared domain formatter for the bot row too, and apply formatting and lint spacing to the changed thread row files. Related: #545
nixuuu
force-pushed
the
fix/mobile-thread-row-parity
branch
from
November 12, 2026 11:55
a0e9072 to
5e0fba8
Compare
nixuuu
marked this pull request as ready for review
November 12, 2026 12:08
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Animate timeline work and nested command disclosures on the UI thread. Replace delayed inverted-list anchor corrections with a bounded header session, isolate disclosure state, and keep web manual headers anchored consistently. Verification is pending the maintainer test window; publish as a draft so CI runs remotely before local checks or profiling. Related: #524 Related: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Expanding or collapsing turn work currently changes its height at once, and the inverted mobile timeline corrects the tapped header only after two frames and again after 180 ms. Native cell anchoring can also move the viewport during that interval. Nested tool-group state lives in the turn, rebuilding its work rows on every toggle. This change keeps the manual disclosure header as the scroll anchor, including the latest turn, and adds a shared mobile accordion for turn work and nested command groups. Rebased onto `dev` after #545 (`1c65b93173a8c820618bd9afd45fe3ab1ba95246`) without conflicts. Native-device checks remain with the maintainer; the measured evidence and its limits are below. ### Changes - Replace delayed JS header measurements with an active UI-thread Reanimated `measure` / `scrollTo` session. Pause `maintainVisibleContentPosition` during manual disclosure motion; cancel on a reader drag, superseding tap, or unmount, then restore automatic anchoring. Invalid measurements do not issue a scroll correction. Preserve the existing inverted FlatList and stable turn keys; do not introduce item-height estimates or list layout animations. - Add `TimelineDisclosure`: lazy first mount, retained body through collapse and reversals, one initial layout measurement, synchronous UI measurements on subsequent toggles, and natural height after opening. Height and the existing stable chevron use the shared `fast` / `smoothOut` motion. Reduced motion changes both immediately. Hidden retained bodies stop viewport clocks/decorations and are excluded from touch and accessibility traversal. - Keep nested-group state inside each group. Memoize body rows and turn cells, retain the turn data array across list-wrapper updates, and keep timeline directory/quote callbacks stable. Suppress image-viewport refresh work during manual corrections. No custom JS animation-frame loop is used. - Web already anchors historical headers through `VirtualFeed.keep`; remove the latest-fold exception so it follows the same rule. Apply that contract to the long-thread fixture. Update the Polish timeline, mobile, and performance documentation. No mobile thread-list rows, dependencies, native configuration, or UI text changed. ### Verification - Static inspection confirms the previous body was conditionally mounted without a height transition, and the anchor combined two delayed JS measurement passes with native visible-cell anchoring. This is a diagnosis of the competing correction path; the exact one-frame flicker still needs native reproduction and confirmation. #524 changed web streaming/shared snapshot reduction, not the mobile disclosure/anchor implementation, so it is context only. - Local `bun install` and `bun run gen:check` passed. Focused gateway/mobile/history checks passed: `bun test tests/integration/ui-thread-deltas.test.ts tests/integration/mobile-devices.test.ts tests/integration/history-pages.test.ts` — 24 tests, 154 assertions, zero failures. Did not repeat the full `check:tmp`, as requested. File-scoped oxfmt and oxlint previously passed with zero diagnostics. No web UI tests were added. - Rebased-head [CI](https://github.com/itsoltech/canopy/actions/runs/43215766418) passed generated-code checks, all typechecks (including mobile and Svelte), lint, formatting, all four test shards with temp-directory checks, and the web/Linux builds. The Angular PR title also passes remote commitlint. - Production fingerprints match the rebased baseline exactly on both platforms, using `bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive`: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`; Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Baseline dependencies were installed separately to preserve relative source paths. No native library, configuration, or dependency changes. - Real Chromium check of `/dev/long-thread?turns=1000&inherited=0`, with production `FeedRowView` / `VirtualFeed`: historical and latest summaries expand/collapse with **0 CSS px maximum sampled header drift**. Historical summaries: six toggles per combination at 1280×800 and 390×844, light and dark. Latest summary: six toggles per theme at desktop width, plus ten toggles per theme starting at the bottom (initial bottom gap 0). Sampled the header on every animation frame for 550 ms per toggle; inspected both themes and widths visually. The ordinary thread page calls the same `keep(rowKey)` API; the browser scenario used synthetic long-thread data, not a user's live thread. - Copy audit: no UI strings changed. No QA logs, screenshots, recordings, counter instrumentation, or benchmark artifacts are committed. Physical scroll limits still apply when collapse leaves less content than the viewport. Retaining previously opened bodies trades local state continuity for memory within the virtualized turn window; measure that on long threads. ### Render counts Temporary render counters executed the real mobile `ThreadTimeline`, `TimelineTurn`, grouping, memo boundaries, disclosure state and anchor session with React 19.3.0's renderer on Bun 1.4.4. Dataset: 1,000 synthetic turns; a fixed 20-turn mounted window; ten summary toggles and ten nested-group toggles after initial mount. Native geometry, frame scheduling, list windowing and leaf presentation were stubbed. These are measured JavaScript reconciliation counts, **not native-device frame pacing or native FlatList measurements**. | Operation | Before: rendered turn cells | After: rendered turn cells | | --- | ---: | ---: | | Summary expand/collapse | 1 | 1 | | Nested command group expand/collapse | 1 | 0 | | Parent update with identical timeline inputs | 20 | 0 | No other turn rendered during isolated toggles, and no turn remounted in either version. Newly mounted body rows were counted separately: first summary open 2 before / 2 after; first nested-group open 1 / 1. Summary close/reopen rendered zero body rows after the change; before, closing rendered the answer and reopening remounted the two work rows. Native UI-thread motion/anchoring, long-thread native scrolling, and retained-body memory still require the device checks below. ### Maintainer device checks 1. On the same long thread on iPhone and Android, put a completed summary near the middle of the screen, with earlier messages visible above it. Open and close it ten times, then rapidly reverse it before the 250 ms motion ends. Record at 60 fps: the header and content above it should remain fixed, the body and content below should move continuously, and no frame should show unrelated earlier messages. 2. Repeat for the latest turn while at the bottom and for nested “Ran N commands” groups. Expand command details inside a group, close/reopen the parent, and check retained state, smoothly turning chevrons, fully hidden closed bodies, and no clipped content after settling. Repeat with a long label and a tall result. 3. Repeat with the keyboard open and closed, then drag the timeline during the animation. The drag should immediately take over; the composer should not fold from a programmatic correction. Load an older history page and use “Jump to latest” afterward to check automatic anchoring and following. 4. Enable system Reduce Motion, then repeat the toggles in light/dark and phone/wide layouts. Height and chevrons should switch immediately without a viewport flash. VoiceOver/TalkBack should report expanded state and skip controls inside collapsed content. 5. Confirm the reconciliation counts on a native device with React Native Profiler/render counters, excluding initial mounts and counting newly mounted children separately. Compare scrolling the same 1,000-turn thread and memory after opening many summaries. On web, optionally repeat the synthetic-fixture checks in a real conversation, including nested groups. Related: #524 Related: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Hovering or focusing a sidebar thread now swaps its provider mark for an Archive button in the reserved bottom-right slot. The existing actions menu stays in place. Archived rows offer Unarchive, and bot rows reuse their existing archive handler in the unread-count slot. - The swap uses CSS hover/focus selectors and motion tokens, with an instant swap for reduced motion. Hover does not update list state. The quick action stays hidden for coarse pointers and devices without hover; the existing menu remains available. - Quick actions stop propagation, preserve computer/branch truncation, and transfer focus to the next root row after success, falling back to the previous row or search. They share menu confirmations, gateway calls, read-only restrictions and cascade-unarchive behavior. Archiving still stops running turns and cancels schedules; Undo restores the archive state without restarting work. - Web and mobile thread archiving now offer the existing toast pattern with Undo. Mobile thread rows also support a left swipe using the installed React Native PanResponder and Reanimated. Taps, long presses and vertical scrolling retain their responders. No dependencies, native configuration, lockfiles or EAS fingerprint inputs were changed. ### Validation Rebased onto `origin/dev` at `b78c6f54e`, including the mobile thread-row parity changes in #545. The shared provider opacity, working-row contrast, activity/status components and independent age subscriptions are retained. Quick archive uses `ProviderIcon size="sm"` so both marks fit the same 14 px slot; the mobile swipe wrappers compose around the updated rows. Current head: `87d2ea8735a4d0f6e927df8aed91eaf62cf5bcca`. Both commit headers pass local commitlint. The worktree uses the main repository's installed node_modules through a local, untracked symlink; the formatting follow-up commit passed the normal commit hook without skipping it. - After the rebase, local `bun install`, `gen:check`, web/mobile typecheck, changed-file lint/format checks, commitlint and `git diff --check` pass. The existing `sidebar-lifecycle.test.ts -t archive` integration cases pass: 4 tests, 36 assertions, covering durable archive/read metadata, archived side threads, cascading archive with running-turn interruption, and cancellation without replay after restoration. No UI tests were added. The full `check:tmp` was deliberately not repeated locally, as requested; CI runs the suite. - CI is running again for the rebased head. The previous fully reviewed head passed static checks, commitlint, all four test shards, web/Linux builds and the aggregate check. The PR remains ready for review. - Real Chromium review passed in light/dark at a 1440×900 viewport, with the sidebar at 288 px and its 220 px minimum, plus a 393 px phone viewport. Short, typical and very long titles and long computer/path text truncate without overlapping the action. Hover preserves row rectangles and DOM identities; the archive icon shares the provider icon's center and 14 px resting size. Tooltip and contextual accessible labels are present. - Archive removes the row without opening/selecting it; Undo restores it. Archived-section Unarchive works. Keyboard Tab reaches the quick action, and successful archive moves focus to the next row, including after confirmation. With reduced motion, computed swap transition durations are zero. Both the quick action and the menu show the same working-thread confirmation when Confirm archive is enabled. With it disabled, archive acts immediately. The disposable offline-worker fixture persisted the archive, enqueued `interruptTurn`, and cancelled its schedule; no live provider process was used. - Phone emulation with `(hover: none)` and `(pointer: coarse)` keeps quick actions hidden; an actual emulated touch hold opens the existing actions sheet without navigation. No page errors were observed. The T3 browser disconnected, so review used one isolated local Chromium session through agent-browser, with Playwright CLI attached to that same browser for touch emulation. All browser and stack processes are stopped after review. - After the rebase, a fresh T3 Chromium review passed in light/dark: both provider and quick archive icons measure 14 px at the same center, hover preserves row rectangles and identities, archive preserves the current URL and focuses the next row, and Undo restores the row. At the 220 px sidebar minimum, the updated working row retains its contrast and the long title/metadata have no horizontal overflow. Browser and disposable stack were stopped after review. - EAS/Expo fingerprints were remeasured against the latest `dev` in the same worktree and nightly environment and are equal: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`; Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. No native dependency or configuration changes. The native mobile swipe was statically reviewed; no iOS/Android device session was run. ### Copy audit — docs/copy.md §8 | Before → after | Reason | | --- | --- | | No quick-action tooltip → `Archive` / `Unarchive` | Short verb-first labels matching the action; reused on mobile's swipe reveal. | | No quick-action accessible name → `Archive thread {title}` / `Unarchive thread {title}` | Names the action and its target for keyboard and screen-reader users. | | No bot quick-action accessible name → `Archive bot {title}` / `Unarchive bot {title}` | Uses the bot glossary term and the same contextual-label pattern. | | No thread archive confirmation toast → `Thread archived` + `Undo` | Reuses the existing past-tense toast and single-action undo pattern. | | Mobile `This also archives its side threads.` → `This also archives its side threads. Running turns stop and schedules are cancelled.` | Makes the existing running-thread effects explicit, consistent with the web confirmation. | | Audit item | Result | | --- | --- | | 1. Clarity, length, voice, case and punctuation | Static pass: brief sentence-case actions, past-tense toast, complete confirmation sentences. User titles remain dynamic values. | | 2. Glossary | Pass: thread, side thread, bot and turn retain their documented meanings; no new terms. | | 3. Verb-first actions and confirmation consistency | Pass: Archive, Unarchive and Undo; existing Archive thread confirmation retained. | | 4. Errors | No new error text; existing lifecycle/undo error handling reused. | | 5. Empty states | No empty-state text changes. | | 6. Repetition | Static pass: concise tooltips name the action; accessible names add the target, without duplicating visible descriptions. | | 7. External gaps and dependencies | No new dependency or external-gap messages. | | 8. Soul/humour | No new humorous copy. | | 9. Short, typical and long names at desktop/phone widths | Pass in real Chromium: light/dark, desktop, 220 px sidebar and 393 px phone viewport. Thread titles and long computer/path text truncate cleanly. | | 10. Meaning beyond colour, shape or position | Pass: contextual accessible button names, Archive/Unarchive tooltips, keyboard access, Undo text and the existing touch actions sheet. The native swipe reveal has a text label. | Documentation was updated in `docs/threads.md`, `docs/mobile.md` and `docs/bots.md`. The mobile row visual component was left untouched to reduce conflicts with the concurrent mobile-row work; the gesture wrapper is attached at its tree call sites.
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Remove working-only row fills on web and mobile while retaining normal text contrast, the spinner and elapsed status. Preserve selected backgrounds on hover for threads and bot conversations. Fixes: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
Remove working-only row fills on web and mobile while retaining normal text contrast, the spinner and elapsed status. Preserve selected backgrounds on hover for threads and bot conversations. Fixes: #545
nixuuu
added a commit
that referenced
this pull request
Nov 12, 2026
) Working sidebar threads gained a neutral fill in #545 that looks too close to the selected thread, especially in dark mode. Remove that fill on web and mobile: an unselected working thread now uses its spinner and Working label, while the current thread retains the selected background regardless of activity. Only unselected web thread and Bots conversation rows receive the lighter hover fill. Keyboard focus keeps its separate outline. Bots already have no working-only fill; selected bot/group conversations now retain their selected fill on hover. Keep the normal title/metadata contrast from #545 and the action swaps, reduced-motion behavior, reserved slots and gutters from #576. Update the related Polish documentation; UI copy is unchanged. Fixes: #545 Validation: - Rebased onto `dev` at `968757a4c`, including #591 and #594. Reviewed head: `070efea27b73c7fec7049b1be061c42258e7f17e`. Blame and patches identify #545 (`1c65b9317`) as introducing the working fill on both clients. Reviewed #549, #576 and #583; they did not introduce it. - On the assigned review server, `bun install --frozen-lockfile`, `bun run gen:check`, full `bun run typecheck`, `bun run lint`, `bun run format:check` and the production web build pass after the rebase. Svelte reports zero errors and warnings. Changed-file mobile ESLint, repository formatting, commitlint and `git diff --check` also pass. No web UI tests were added or run. - A single Chromium browser reviewed the production build against a disposable gateway/database: light/dark at 1440px desktop and 1100px narrow widths, 288px and 220px sidebars, plus the 393px phone drawer. Checked working-only, selected-only, selected+working, hover and keyboard focus in Threads and Bots, including a working side thread and short/long labels. Working-only rows are transparent; hover uses 4%, selection uses 6% light / 8% dark, and keyboard focus retains its separate 2px outline. Selected rows keep their fill on hover. Row bounds remain fixed and labels do not overflow. Reduced motion gives zero-duration action swaps. Final navigation reports no console errors. - The mobile change only removes the `busy ? c.well` background branch from a TSX file. Native dependencies, configuration, fingerprint configuration, assets and lockfile are unchanged. Base/head fingerprints generated on the assigned server with `nice -n 19`, using `expo-updates fingerprint:generate` and the production/nightly environment, are identical: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. This uses Expo's underlying runtime fingerprint engine. The maintainer confirmed that this local comparison is sufficient for the JS-only change; authenticated EAS verification is not required. No build or OTA publication was started. - Browser, gateway, web and disposable database are stopped. Assigned ports are free. Verification artifacts remain outside the repository. Ready for review; the maintainer will merge once CI is green. Copy audit: no UI text changes; no copy audit required.
nixuuu
added a commit
that referenced
this pull request
Nov 21, 2026
## Change Mobile thread rows show elapsed time alone, such as `12m`, when the working spinner is visible. This keeps the value readable in the fixed-width status slot. Grouped rows without a spinner and screen-reader labels keep the explicit working status. Fixes: #545 ## Verification - Android emulator in portrait with sample data, in light and dark mode. `2m`, `12m`, and `2h` fit beside short, typical, and long names. The Android accessibility tree exposes “Working 12m” on the corresponding thread button. - Mobile typecheck, lint on the edited files, and `git diff --check` passed locally. The full verification gate runs in GitHub CI. ## Copy audit `Working 12m` → `12m` beside the spinner. This removes repeated wording and preserves the full status in the accessible name and in grouped rows without a spinner. Reviewed with short, typical, and long names at phone width. Visual verification was limited to the native phone list.
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.
Change
Mobile thread rows now share web's working ring, elapsed label, semantic colours and branch labels. Working titles and metadata retain normal contrast over the subtle working background on both clients.
formatAgeandworkingLabel: rounded minutes/hours/days, then weeks from 14 rounded days.WorkingbecomesWorking 1monce the age is no longernow.threadPlace: scratch → worktree HEAD (branch or detached commit) → directory fallback, including Windows paths. A worktree directory no longer replaces its branch on mobile.The gateway fix for working worktree rows losing their project is merged in #565 and included through the rebase onto
f7ad51cc. It prevents the linked stream from rewriting shared Hub messages in place. This PR owns the shared branch-over-directory label.Performance
SidebarThreadStatusselects its formatted string from one shared foreground clock. An unchanged string does not trigger a React render. The list and full rows do not subscribe to ticks; the tree comparator no longer compares obsolete age strings. Animation has no JS frame loop.Measured actual React component render counters before (
f7ad51cc) and after (5e0fba8d7), excluding mounts, with 12 mounted main rows: one working and 11 idle. Used the real list, tree comparator, row, status and clock; native hosts and unrelated leaf controls were adapted in an external diagnostic harness.This establishes JS render isolation, not native scrolling, Hermes timing or animation frame performance. Native animation and scrolling still require the device checks below.
Verification
origin/devatf7ad51cc, including fix(gateway): isolate linked stream project identities #565, and pushed. CI is green on5e0fba8d7: Static checks, all four test shards, Web and Linux binaries, aggregate Typecheck/tests/builds, and commitlint.bun install,bun run gen:check, rootbun run lint,bun run format:check, and mobile typecheck passed. Focused domain checks passed (20 tests, 85 assertions);tests/integration/sidebar-lifecycle.test.tspassed (6 tests, 60 assertions). The fullcheck:tmpwas intentionally not repeated, as requested by the maintainer.6ddec9ef559ee0095ac33e94ff9418a942053b17; Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9. Fingerprint baseline was dev34dedaace; its only mobile change beyond the requested rebase base is JS in ThreadSyncProgress, with no changed native inputs.animation: none; no browser runtime errors. Screenshots and diagnostic artifacts remain outside the repository. No web UI tests were added.Native visual verification was unavailable: this Linux host has no iOS runtime or Android SDK, and the linked device host twice returned “Device list failed: Could not communicate with device support. Try refreshing devices.” No native build or publication was started.
Maintainer device checks: scroll a list with one and several working threads; verify smooth rotation and scrolling, normal contrast in both themes,
Working 1mwithout row movement, and Pinpoint plus its checkout branch throughout working updates. Toggle OS Reduce Motion while open, then background/resume: rotation should stop appropriately and elapsed time should catch up. Native frame/scroll performance remains unmeasured here.Copy audit — docs/copy.md §8
Working→Working 1m: existing web wording with elapsed context; sentence case, one idea, no new term.Workingremains for an age ofnow.2w); document the compact formatter contract in the copy guide.Detached at <commit>: existing domain terminology and identical client fallback order. Scratch remainsscratch folder.Asking agent. Starting, attention/result labels and action text retain established wording.Related: #526
Related: #478
Related: #565