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(ui): calm diff word highlights with @pierre/diffs 1.5.1 by Hona · Pull Request #51236 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Sep 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Makes the review diff easier to scan, closer to GitHub Desktop.

Before After
  • One word highlight per changed line. Upgrades @pierre/diffs 1.2.10 → 1.5.1 and switches lineDiffType from word-alt to the new word-line, which joins everything from the first to the last changed word.
  • Quieter collapsed rows. "N unmodified lines" mixed 15% white in dark mode and read like a highlighted line. Now 5% dark / 2% light.
- lineDiffType: "word-alt",
+ lineDiffType: "word-line",
/* packages/session-ui/src/pierre/index.ts */
--diffs-bg-separator-override: light-dark(
  color-mix(in lab, var(--diffs-bg) 98%, var(--diffs-mixer)),
  color-mix(in lab, var(--diffs-bg) 95%, var(--diffs-mixer))
);

Migration (1.3, 1.4, 1.5):

  • Type-only APIs now take a caret argument: FileDiffOptions<T, undefined>, FileOptions<T, undefined>, PreloadMultiFileDiffResult<T, undefined>, PreloadFileDiffResult<T, undefined>.
  • FileDiffHydrationProps is a union, so SSR hydration passes either fileDiff or both oldFile and newFile.
  • Editor, persistState, and partial-diff edit changes don't apply; we don't use edit mode. We already pass cacheKeys.
  • The large-diff pool's tokenizeMaxLineLength: 1 now applies to worker-rendered diffs, so diffs over 500k characters render as plain text, as the perf correctness test already expects. The large-file component test now checks for plain text instead of syntax spans.
  • 1.5 only writes --diffs-column-number-width / --diffs-column-width for scrolling files with annotations. Our mobile full-width file comments relied on them in wrap mode, so they now derive the gutter from the code grid (container-type: inline-size + margin-inline-start: calc(100% - 100cqi)).

Sorry, something went wrong.

Uh oh!

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

All reactions
Copilot AI lite review requested due to automatic review settings September 24, 2026 22:31
Copilot AI reviewed Sep 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot mentioned this pull request Sep 24, 2026
📊 AI CLI 工具社区动态日报 2026-09-25 litang9/big_model_radar#448
Open
@Hona
fix(ui): calm diff word highlights with @pierre/diffs 1.5.1
26ed5a8
@Hona
Hona force-pushed the calmer-diff-highlights branch from 6b2c175 to 26ed5a8 Compare September 29, 2026 04:30
@Hona Hona changed the title fix(ui): calm diff word highlights and collapsed rows fix(ui): calm diff word highlights with @pierre/diffs 1.5.1 Sep 29, 2026
@Hona
fix(ui): keep mobile file comments full width on @pierre/diffs 1.5
f4cc28d
@Hona
Hona enabled auto-merge (squash) September 29, 2026 04:54
@Hona
Hona disabled auto-merge September 29, 2026 04:58
@Hona
Hona merged commit a604b7f into anomalyco:v2 Sep 29, 2026
10 checks passed

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@Hona
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.