Skip to content

fix(app): order stored messages by creation time - #41001

Merged
thdxr merged 1 commit into
devfrom
app-message-order
Aug 7, 2026
Merged

fix(app): order stored messages by creation time#41001
thdxr merged 1 commit into
devfrom
app-message-order

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • order desktop/app message stores by creation time with ID as an equal-time tie-breaker
  • retain binary-search insertion using the composite timestamp-and-ID key
  • cover optimistic and live messages with nonmonotonic IDs
  • leave part ordering and UI transcript boundaries unchanged

Testing

  • bun run test:unit (709 passed)
  • bun typecheck
  • Prettier
  • git diff --check

Benchmark

Production benchmark setup was attempted before and after. Chromium crashed before reporting metrics in both runs; production builds succeeded and unit/type checks passed.

Requested by: @thdxr (Dax Raad via Slack)

@opencode-agent
opencode-agent Bot force-pushed the app-message-order branch from c2fee2b to 6169209 Compare August 7, 2026 04:54
@opencode-agent opencode-agent Bot changed the title fix(app): order messages by creation time fix(app): order stored messages by creation time Aug 7, 2026
@thdxr
thdxr enabled auto-merge (squash) August 7, 2026 04:58
@thdxr
thdxr merged commit 9113255 into dev Aug 7, 2026
11 checks passed
@thdxr
thdxr deleted the app-message-order branch August 7, 2026 05:06
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant