Skip to content

fix(ui): hide pre-thread changes from session diffs - #115708

Merged
vincentkoc merged 2 commits into
mainfrom
fix/session-diff-start-baseline
Jul 29, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/session-diff-start-baseline

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Closes #115628

What Problem This Solves

Fixes an issue where users opening a fresh Control UI thread would see checkout changes and generated bootstrap files that already existed before the thread started.

Why This Change Was Made

Each new operator session generation now records a bounded, content-free fingerprint baseline after workspace bootstrap. The diff RPC filters only files that remain byte-identical to that baseline; later edits reappear, while legacy sessions and oversized or unsafe files keep the existing conservative behavior.

User Impact

Fresh thread diffs now show work attributable to that thread instead of inherited checkout noise such as an unchanged AGENTS.md.

Evidence

The PR also refreshes docs/docs_map.md because the current main branch had a stale generated heading entry that made the required check-docs merge gate fail independently of this change.

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 06:56
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the fix/session-diff-start-baseline branch from efffcfa to ce48538 Compare July 29, 2026 07:00
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper review gate note: no review or Rank-up moves: were published for this head. The exact-item dispatch completed, but the explicit @clawsweeper re-review command router failed twice on ClawSweeper current main because scripts/prepare-worker-record-cache.ts is missing:

Proceeding once required CI is green using the completed clean local autoreview, focused 17/17 tests, full changed checks, and the real Gateway RPC Crabbox proof already linked in the PR body.

@vincentkoc
vincentkoc merged commit dd3d1d1 into main Jul 29, 2026
123 of 126 checks passed
@vincentkoc
vincentkoc deleted the fix/session-diff-start-baseline branch July 29, 2026 07:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(ui): scope session diffs to thread changes

* docs: refresh generated map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Fresh thread diff includes pre-existing checkout changes

1 participant