Skip to content

fix(chat): avoid duplicate sent bubbles before history loads - #13

Merged
christso merged 1 commit into
christso/mainfrom
fix/chat-sent-clock-reconciliation
Nov 5, 2026
Merged

christso merged 1 commit into
christso/mainfrom
fix/chat-sent-clock-reconciliation

Conversation

@christso

@christso christso commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Change

A confirmed send made before history loads can appear twice when browser and native clocks differ. It now shows compact sent status with expandable text; sends with an existing history baseline keep their normal faded bubble.

Matching and the 60-second expiry stay unchanged, so an older identical native message cannot falsely settle a new send. The compact status may remain until that expiry. This differs from native Codex/Claude lists because this bridge lacks a trustworthy first-read send boundary. This is one of two independent fork improvements; the receipt-recovery upstream draft remains separate.

Validation

  • bun run check fast: 10,615 passed, zero failures, 41 repository skips; type/build/generated/workflow checks passed.
  • Proof-first component regression: two expected failures before the fix; 42 passed afterward; 73 with locale/convention checks.
  • Native Codex 0.166.0 on isolated Herdr 0.9.5: all three clock/history cases have one submit and one native user turn. The reproduced first-read case now has zero faded duplicates and one compact disclosure. Reload submits nothing. No browser errors or desktop overflow.
  • Completed code review: no findings. All required hosted checks are green, including Integration and browser after its failed-job retry. fix(settings): backport phone pairing close repair #15 separately merged the upstream repair for the Settings race exposed by the initial run. Physical-phone checks were not run locally.
  • Deployed combination 1b76b353: 10,625 fast tests passed. Native clock controls and first-read reproduction repeated from the installed checkout with mobile/touch emulation: one submit and turn, no faded duplicates, no reload resend or overflow.

Evidence

Installed-build native green recordings and deployment verification.

Paired native red/green MP4s, screenshot and results.


Compound Engineering

Keep sends without a pre-send baseline as compact expandable status.
Preserve timestamp matching and per-send identity guards when the first
read cannot disambiguate native turns across independent clocks.
@christso

christso commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Merge review: CodeRabbit did not review this fork PR. A completed agent correctness review covered the final nine-file change and found no issues. It traced send capture and settlement, retained identity/matching/expiry, native disclosure semantics, timer cleanup, wrapping/touch targets and locale coverage. No review findings remain.

Head 99c4549e912a4ecb9701eaa5ebfc4f332c0b8224: fast checks passed (10,615 tests, zero failures, 41 skips). Native baseline and green runs showed one submit and one native user turn in all three clock/history scenarios; the ambiguous first-read case has compact status instead of a full faded duplicate. The exact installed combination repeats this with mobile/touch emulation and no reload resend. Matching remains conservative and the compact status may remain until the existing expiry.

The initial hosted other-browser failure was the independent Settings-close race repaired by #15; its failed jobs are rerunning. Merge will wait for the required checks and the Settings repair.

Installed-build native green recordings and verification.

@christso

christso commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

The failed-job retry completed successfully. All required hosted checks are green on the unchanged reviewed head 99c4549e912a4ecb9701eaa5ebfc4f332c0b8224, including the full other-browser suite and Integration and browser aggregate. No unresolved review threads remain. Proceeding with this independent presentation fix while #15 finishes its own browser retry.

@christso
christso merged commit 752af63 into christso/main Nov 5, 2026
20 of 22 checks passed
@christso
christso deleted the fix/chat-sent-clock-reconciliation branch November 5, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant