Repository navigation
Avoid full metadata rewrites for thread timestamp updates - #48983
Merged
copyberry[bot] merged 1 commit intoSep 28, 2026
Conversation
## Why Updates that only change `updated_at` should not rewrite unrelated thread metadata or its indexes. ## What changed Use `touch_thread_updated_at` for timestamp-only patches when the SQLite row exists and the rollout path is unchanged. Preserve the full update path for missing rows, changed rollout paths, and patches containing other metadata, including staged changes. ## Testing Add regression coverage for legacy and paginated histories that verifies missing-row reconstruction, timestamp-only writes using SQLite triggers, preservation of other metadata, and application and removal of staged metadata. GitOrigin-RevId: d5bc70d57e591e3eb8e9521f0c31a7ef75f244d3
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/d5bc70d57e591e3eb8e9521f0c31a7ef75f244d3
branch
from
September 28, 2026 13:44
688a21d to
c0d2694
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/d5bc70d57e591e3eb8e9521f0c31a7ef75f244d3
branch
September 28, 2026 13:44
hazuchi-takumi
temporarily deployed
to
issue-triage
September 28, 2026 13:49 — with
GitHub Actions
Inactive
hazuchi-takumi
temporarily deployed
to
issue-triage
September 28, 2026 13:49 — with
GitHub Actions
Inactive
hazuchi-takumi
temporarily deployed
to
issue-triage
September 28, 2026 13:49 — with
GitHub Actions
Inactive
hazuchi-takumi
temporarily deployed
to
issue-triage
September 28, 2026 13:50 — with
GitHub Actions
Inactive
karolzlot
temporarily deployed
to
issue-triage
September 28, 2026 13:55 — with
GitHub Actions
Inactive
karolzlot
temporarily deployed
to
issue-triage
September 28, 2026 13:55 — with
GitHub Actions
Inactive
karolzlot
temporarily deployed
to
issue-triage
September 28, 2026 13:55 — with
GitHub Actions
Inactive
karolzlot
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
ivangsa
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
ivangsa
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
ivangsa
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
PederAndersson
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
PederAndersson
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
PederAndersson
temporarily deployed
to
issue-triage
September 28, 2026 13:56 — with
GitHub Actions
Inactive
kamikazeklown-gif
temporarily deployed
to
issue-triage
September 28, 2026 14:05 — with
GitHub Actions
Inactive
kamikazeklown-gif
temporarily deployed
to
issue-triage
September 28, 2026 14:05 — with
GitHub Actions
Inactive
kamikazeklown-gif
temporarily deployed
to
issue-triage
September 28, 2026 14:05 — with
GitHub Actions
Inactive
kamikazeklown-gif
temporarily deployed
to
issue-triage
September 28, 2026 14:06 — with
GitHub Actions
Inactive
seanbarbee-lang
temporarily deployed
to
issue-triage
September 28, 2026 14:10 — with
GitHub Actions
Inactive
seanbarbee-lang
temporarily deployed
to
issue-triage
September 28, 2026 14:10 — with
GitHub Actions
Inactive
seanbarbee-lang
temporarily deployed
to
issue-triage
September 28, 2026 14:10 — with
GitHub Actions
Inactive
carlsonlstout
temporarily deployed
to
issue-triage
September 28, 2026 14:11 — with
GitHub Actions
Inactive
carlsonlstout
temporarily deployed
to
issue-triage
September 28, 2026 14:11 — with
GitHub Actions
Inactive
carlsonlstout
temporarily deployed
to
issue-triage
September 28, 2026 14:11 — with
GitHub Actions
Inactive
josharian
temporarily deployed
to
issue-triage
September 28, 2026 14:12 — with
GitHub Actions
Inactive
josharian
temporarily deployed
to
issue-triage
September 28, 2026 14:12 — with
GitHub Actions
Inactive
josharian
temporarily deployed
to
issue-triage
September 28, 2026 14:12 — with
GitHub Actions
Inactive
SeptimusB
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
SeptimusB
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
SeptimusB
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
Forrestwang002
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
Forrestwang002
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
Forrestwang002
temporarily deployed
to
issue-triage
September 28, 2026 14:25 — with
GitHub Actions
Inactive
Forrestwang002
temporarily deployed
to
issue-triage
September 28, 2026 14:27 — with
GitHub Actions
Inactive
AlexShipov
temporarily deployed
to
issue-triage
September 28, 2026 14:33 — with
GitHub Actions
Inactive
AlexShipov
temporarily deployed
to
issue-triage
September 28, 2026 14:33 — with
GitHub Actions
Inactive
AlexShipov
temporarily deployed
to
issue-triage
September 28, 2026 14:33 — with
GitHub Actions
Inactive
AlexShipov
temporarily deployed
to
issue-triage
September 28, 2026 14:34 — with
GitHub Actions
Inactive
stevenback
temporarily deployed
to
issue-triage
September 28, 2026 14:46 — with
GitHub Actions
Inactive
stevenback
temporarily deployed
to
issue-triage
September 28, 2026 14:46 — with
GitHub Actions
Inactive
stevenback
temporarily deployed
to
issue-triage
September 28, 2026 14:46 — with
GitHub Actions
Inactive
stevenback
temporarily deployed
to
issue-triage
September 28, 2026 14:47 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Avoid full metadata rewrites for thread timestamp updates
Why
Updates that only change
updated_atshould not rewrite unrelated thread metadata or its indexes.What changed
Use
touch_thread_updated_atfor timestamp-only patches when the SQLite row exists and the rollout path is unchanged. Preserve the full update path for missing rows, changed rollout paths, and patches containing other metadata, including staged changes.Testing
Add regression coverage for legacy and paginated histories that verifies missing-row reconstruction, timestamp-only writes using SQLite triggers, preservation of other metadata, and application and removal of staged metadata.