Repository navigation
fix(threads): move user message actions below the bubble - #703
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 14, 2026 11:26
nixuuu
added a commit
that referenced
this pull request
Nov 14, 2026
The delayed-rejection test sometimes reads `expired` before the successful turn's account update runs, even though the turn is already committed. This is a test race: ingestion commits the turn, then awaits settling, broadcasts and agent-bus handling before calling `coreTurnLogin`. A database count therefore cannot establish that the success has entered `ProviderAccounts.afterTurn`; the test's no-op queue barrier can run ahead of it. Observe the real account-update enqueue, keep the rejected account read held until the success is queued, then wait for both real updates to finish before asserting `signed_in`. Waiting for both independently also catches a stale rejection when ordering is broken. Remove the database-count helper and the two-second sampling loop. Product ordering in `provider-accounts.ts` and `turn-logins.ts` stays unchanged. Related: #696, #700, #703 ### Verification - Stress: **171 passed, 29 failed out of 200 (14.5% failures)** before; **200 passed, 0 failed** after. Each repetition runs the focused file, including the earlier device-login scenario this case depends on; the target case executes once per repetition. The after run passed all **800/800** tests in **310.99 s**. No retries, sleeps or timeout increases were added. - The baseline used 48 completed direct repetitions, then 152 with the repository's shared-Postgres runner. The after run used `nice -n 10 bun run check:tmp <focused-file> --rerun-each=200`; its identical source was staged under a temporary test filename so the unchanged baseline could run alongside it. Both used a private `TMPDIR` under `/var/tmp`. - Mutation check: bypassing the real queue with `update()` makes the new test fail with `Expected: signed_in / Received: expired`. The mutation was confined to a temporary test copy and removed. - `bun install`, `bun run typecheck`, `bun run lint`, `bun run format:check`, and the final focused file: **passed**, all with `nice -n 10` and temp under `/var/tmp`. The shared-Postgres runner reported no test temp directories left behind. No UI, protocol or runtime behavior changes.
This was referenced Nov 16, 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.
User messages now show Edit from here, Copy message and their timestamp below the bubble, aligned to its right edge. Both user and assistant footers use
MessageActionRow, retaining the assistant row's control sizes, colours, hover/focus fade and reserved height. Goal and date labels stay above the input.Validation:
niceand temp under/var/tmp: install, typecheck (zero Svelte errors/warnings), lint, format:check, gen:check, web build, Android export and iOS export.tests/integration/provider-sign-in-expired.test.ts:192(unexpectedexpiredbeforesigned_in). This is outside the changed UI files. CI for the documentation follow-up is running.Copy audit: no UI text changed.