Skip to content

[diffs] CodeView / WorkerPool Init Race Fix - #911

Merged
amadeus merged 7 commits into
beta-1.3from
amadeus/codeview-init-race
Jun 30, 2026
Merged

amadeus merged 7 commits into
beta-1.3from
amadeus/codeview-init-race

Conversation

@amadeus

@amadeus amadeus commented Jun 30, 2026

Copy link
Copy Markdown
Member

Since the release of CodeView, there has been an issue on initialization where CodeView attempts to render before the WorkerPool is ready, which while generally harmless, does end up rendering some zero height containers and does cause some layout validation thrash.

I also found a few areas that I could tighten up with virtualization calculations being properly delayed by a tick (bad). So also potentially improved cases of scrolling into un-measured annotations above.

Fixes #786

@vercel

vercel Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jun 30, 2026 7:00pm
pierre-docs-diffshub Ready Ready Preview Jun 30, 2026 7:00pm
pierre-docs-trees Ready Ready Preview Jun 30, 2026 7:00pm
pierrejs-diff-demo Ready Ready Preview Jun 30, 2026 7:00pm

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d9a565b39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@amadeus

amadeus commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d51b423ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@amadeus

amadeus commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

@codex resolve

@amadeus

amadeus commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0437c659f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@amadeus

amadeus commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 027c6fe8e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@amadeus
amadeus merged commit b4f76e2 into beta-1.3 Jun 30, 2026
8 checks passed
@amadeus
amadeus deleted the amadeus/codeview-init-race branch June 30, 2026 19:07
amadeus added a commit that referenced this pull request Jul 21, 2026
* Smol fixes

* Fix styles that will break codeview
* Add an easy commented out field for the dev check

* Prevent rendering of CodeView before worker pool is initialized

* Add test for worker readiness

* Smol corrections for annotation errors

* Be able to handle a failing worker pool gracefully

* PR Review Feedback: Fix up test to use spyOn

* PR review feedback: trigger an initialization for the worker pool if needed
srid added a commit to juspay/kolu that referenced this pull request Aug 20, 2026
Bump the terminal engine from **`@xterm/xterm@6.1.0-beta.300` /
`@xterm/addon-webgl@0.20.0-beta.297`** to the latest published betas —
**`6.1.0-beta.302` / `0.20.0-beta.298`** — and take the Code tab's diff
viewer from **`@pierre/diffs@1.2.12` to `1.3.5`**.

kolu rides the xterm 6.1 beta line via `pnpm.overrides` (stable latest
is still 6.0.0). Other addons and `@xterm/headless` stay on their
package ranges, same as the previous bump (#2130). `@pierre/trees` is
already on `1.0.0-beta.6`, its latest tag, so it does not move. Edit
mode from Pierre 1.3 is not adopted.

### What's new in xterm.js (since beta.300)

| Upstream | What it does for tiles |
| --- | --- |
| [xtermjs#6081](xtermjs/xterm.js#6081) | After
a program clears scrollback with **`ESC[3J`**, the viewport **follows
new output** instead of staying pinned to the empty top of the buffer
(`isUserScrolling` was left set, so `BufferService.scroll()` refused to
advance). |

beta.301 is CI-only (release-workflow permissions). WebGL addon
**297→298** is that same CI commit; pin it as the live `beta` tag,
independently of xterm's suffix.

### What's new in Pierre Diffs (1.2.12 → 1.3.5)

The Code tab's vanilla `CodeView` / `FileTree` wrappers compile
unchanged. What the viewer picks up:

- Syntax highlighting no longer races the worker pool on first open
([pierre#911](pierrecomputer/pierre#911))
- Virtualized rows no longer flash a previous file's header as you
scroll ([pierre#740](pierrecomputer/pierre#740))
- Expanding collapsed diff context, and live-updating a diff that's
already on screen, both work as they should
([pierre#861](pierrecomputer/pierre#861),
[pierre#881](pierrecomputer/pierre#881))
- The viewport keeps its place when a file drops out of a multi-file
view
([pierre#1047](pierrecomputer/pierre#1047));
resize handling is hardened
([pierre#1054](pierrecomputer/pierre#1054))

### This change

- `pnpm.overrides`: xterm **300→302**, addon-webgl **297→298** (matched
pair of latest betas)
- `@pierre/diffs` declared range **^1.2.12 → ^1.3.5**
- Refresh `fetchPnpmDeps` hash in `nix/workspace.nix`
- Changelog: edit the unreleased xterm note; add a Code-tab Pierre note
- `@kolu/xterm-kit` contract suites 94/94 and `@kolu/solid-pierre` 45/45
green on the new pins; typecheck of xterm-kit, solid-pierre, and
kolu-client exits 0

### Try it locally

```sh
nix run github:juspay/kolu/chore/deps-xterm-pierre
```

_Generated by Grok Build (model `grok-4.6`)._

This branch was successfully deployed

4 active deployments
Preview – pierre-docs-diffs — 027c6fe8 Deployed Jun 30, 2026 by vercel[bot]
Preview – pierre-docs-trees — 027c6fe8 Deployed Jun 30, 2026 by vercel[bot]
Preview – pierre-docs-diffshub — 027c6fe8 Deployed Jun 30, 2026 by vercel[bot]
Preview – pierrejs-diff-demo — 027c6fe8 Deployed Jun 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant