GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): changes made between turns no longer show as the turn's work by joaomendoncaa · Pull Request #28168 · pingdotgg/t3code

Conversation

@joaomendoncaa

@joaomendoncaa joaomendoncaa commented Oct 31, 2026

Copy link
Copy Markdown

Problem

A turn's changed-files card is diffed from the previous turn's checkpoint, not from the workspace when the turn started. Any change made between two turns in the same checkout is therefore charged to the next turn. In a shared checkout this shows another thread's commits and edits as this thread's work.

Concrete case from two threads on one checkout:

  • Thread B committed two files at 09:26–09:27.
  • Thread A's next turn ran at 09:46 and only executed a read-only git ls-tree.
  • Thread A still showed 12 changed files +928 −688, including thread B's files.

This is the between-turn case in #22315. #17161 filters files Git brought in through pulls, merges, and rebases, but another thread's local commits and working-tree changes are not imports, so they remain.

Change

Capture a start snapshot for each run at turn start, before the provider starts, in a separate ref:

refs/t3/orchestration-v2/checkpoints/<scope>/start/<ordinal>

At turn completion, diff from that start snapshot when it exists. Fall back to the previous checkpoint when it does not, so old turns and failed baseline captures keep today's behavior. Single-turn diff queries prefer the start snapshot too. Rollback cleanup removes start snapshots together with their checkpoints.

No contracts, client, or mobile changes. Restore still uses the full completion checkpoints.

Scope and approval

Focused server bug fix for #22315. This fixes the between-turn variant: changes that are already present when the turn starts. It does not fix another thread writing while the turn is running, because a start/end snapshot cannot attribute content changes made inside that window.

Earlier turn-start snapshot attempts (#10197, #11528) were closed when #17161 landed. This keeps the same idea to the minimum: one extra snapshot ref per turn, no new outbox or cleanup workflow, and old turns fall back unchanged.

Verification

  • Added a real-Git regression test: previous-turn checkpoint → external commit → start snapshot → no-op turn → completion snapshot. On main, the previous-checkpoint diff lists README.md and listAuthoredPaths keeps it. With the start snapshot the same diff is empty and listAuthoredPaths returns null.
  • Added a service test that verifies a turn is diffed from its start snapshot, and a diff-query test that verifies getTurnDiff uses it.
  • vp run check:changed passes: format, lint, knip, typecheck, and 74 tests across 5 files.
  • Not checked: desktop/mobile UI. The change is server-only; clients consume the same checkpoint summary and diff query.

Implemented with DeepSeek V4.1 Flash through the OpenCode harness in T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joaomendoncaa
fix(server): changes made between turns no longer show as the turn's …
ecf6641
…work
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Oct 31, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 31, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at ecf6641

Macroscope's review found this PR approvable — Turn diffs now use a snapshot taken at turn start, so edits made between turns are no longer attributed to the next turn. Existing-checkpoint fallbacks and side-chat exclusions remain in place, keeping the change limited to checkpoint bookkeeping and attribution.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@saphid saphid mentioned this pull request Nov 2, 2026
fix(server): turn diffs keep signed commits' files under log.showSignature #29124
Merged
@t3dotgg

t3dotgg commented Nov 12, 2026

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing. This PR conflicts with main in 4 files, which is more than we will review as a rebase. If the change still matters, open a fresh PR from current main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@joaomendoncaa @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.