Skip to content

fix(desktop): upgrade @pierre/diffs to fix line-number ordering (SUPER-804) - #4848

Merged
Kitenite merged 1 commit into
ParadevAI:mainfrom
justincrich:improvement/SUPER-804-diff-line-numbers
May 23, 2026
Merged

Kitenite merged 1 commit into
ParadevAI:mainfrom
justincrich:improvement/SUPER-804-diff-line-numbers

Conversation

@justincrich

@justincrich justincrich commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades @pierre/diffs from 1.1.3 → 1.1.22 to fix out-of-order line numbers in the diff viewer
  • The package was downgraded from 1.1.7 → 1.1.3 in commit 4a2bcb116 (pane-redesign PR feat: redesign pane layout system (@superset/panes) #3088) to satisfy bunfig.toml's minimumReleaseAge = 259200 (3-day) policy
  • The line-number ordering bug exists in v1.1.3 and was fixed across subsequent releases

Root Cause

bunfig.toml enforces a 3-day minimum release age for all packages. On April 1, @pierre/diffs@1.1.7 was within the age window for CI, so it was downgraded to v1.1.3 to unblock the pane-redesign PR. v1.1.3 contains gutter rendering bugs documented in:

Why v1.1.22 instead of v1.2.2?

v1.2.0+ is currently blocked by the same minimumReleaseAge policy (v1.2.0 is only 1.9 days old). v1.1.22 is the newest version that passes the 3-day check (10.6 days old). Once v1.2.1+ ages past the 3-day window, a follow-up PR can upgrade to capture the Chrome-specific gutter fix from PR #729.

Impact

  • Only apps/desktop depends on @pierre/diffs (no other apps/packages affected)
  • No breaking-change APIs used — verified that fileGap, enableHoverUtility, renderHoverUtility, renderCustomMetadata are not imported anywhere in apps/desktop/src/
  • Typecheck passes (28/28 tasks)
  • Lint passes (4558 files, no issues)

Linear

Fixes SUPER-804

Test plan

  • bun install succeeds
  • bun run typecheck passes
  • bun run lint passes
  • Open desktop app, navigate to a workspace with changes, verify line numbers display in sequential order
  • Verify no regressions in diff viewer (syntax highlighting, colors, annotations, scroll decorations)

should see this:
image


Open in Stage

Summary by cubic

Upgrades the desktop diff viewer to fix out-of-order line numbers, restoring correct gutter numbering and resolving SUPER-804.

  • Dependencies
    • Bump @pierre/diffs from 1.1.3 to 1.1.22 (newest allowed by bunfig.toml minimumReleaseAge); only apps/desktop uses it; no breaking APIs used.

Written for commit db31201. Summary will update on new commits. Review in cubic

Summary by CodeRabbit

  • Chores
    • Updated internal dependencies to latest versions.

Review Change Stack

@capy-ai

capy-ai Bot commented May 22, 2026

Copy link
Copy Markdown

Capy auto-review is paused for this organization because the monthly auto-review limit has been reached. Increase the limit or turn it off in billing settings to resume automatic reviews.

@ghost

ghost commented May 22, 2026 •

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 2 individual chapters for you:

Title
1 Upgrade @pierre/diffs to fix line-number ordering
2 Other changes
Open in Stage

Chapters generated by Stage for commit db31201 on May 23, 2026 7:17am UTC.

@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3f75b70e-f77b-4043-a32c-70ffb64805a0

📥 Commits

Reviewing files that changed from the base of the PR and between fa9e389 and db31201.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • apps/desktop/package.json

📝 Walkthrough

Walkthrough

The desktop application's @pierre/diffs dependency is updated from version 1.1.3 to 1.1.22 in the package manifest.

Changes

Dependency Update

Layer / File(s) Summary
@pierre/diffs version bump
apps/desktop/package.json
The @pierre/diffs package dependency is updated from v1.1.3 to v1.1.22.

🎯 1 (Trivial) | ⏱️ ~2 minutes

🐰 A version bump so neat,
From 1.1.3, quite sweet!
To 1.1.22 it flies,
Diff improvements, what a prize! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely summarizes the main change: upgrading @pierre/diffs to fix line-number ordering in the desktop diff viewer, with the ticket reference.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description comprehensively covers all required sections with detailed context, root cause analysis, rationale for version selection, impact assessment, and a complete test plan.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.spec/improvements/SUPER-804/root_cause_analysis.md:
- Line 31: The document's downgrade reason text currently claims a 7-day
minimum-release-age ("Minimum-release-age policy (7 days required)"), which
conflicts with the PR scope that uses a 3-day minimum-release-age (259200s);
update the line to reflect the 3-day policy by replacing the "7 days" wording
with "3 days (259200s)" or equivalent phrasing so the root_cause_analysis.md
entry matches the PR's policy value.
- Around line 8-11: The fenced code block containing the release-downgrade note
("fix(ci): downgrade `@pierre/diffs` to pass minimum-release-age policy" /
"`@pierre/diffs` 1.1.7 → 1.1.3 (released 2026-03-21)") needs a language tag;
update that triple-backtick fence in root_cause_analysis.md to use a language
such as text (e.g., change ``` to ```text) so markdown linting passes and the
docs remain consistent.

In @.spec/improvements/SUPER-804/SCOPE.md:
- Around line 40-41: The SCOPE acceptance criteria currently require
`@pierre/diffs` version 1.2.2 but the PR upgraded apps/desktop/package.json to
1.1.22; update the SCOPE.md entries that mention `@pierre/diffs` and the bun
install check to expect `1.1.22` (and ensure the bullet for bun install reflects
that v1.1.22 meets minimumReleaseAge/no-conflict), and apply the same correction
to the duplicate entries referenced on lines 49-50 so the documented scope
matches the implemented dependency version.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6b5cf227-d3c5-4fc5-9152-de5e632e8d0a

📥 Commits

Reviewing files that changed from the base of the PR and between afab6f0 and fa9e389.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (7)
  • .spec/improvements/SUPER-804/BRIEF.md
  • .spec/improvements/SUPER-804/SCOPE.md
  • .spec/improvements/SUPER-804/evidence_analysis.md
  • .spec/improvements/SUPER-804/follow-ups.md
  • .spec/improvements/SUPER-804/investigation_findings.md
  • .spec/improvements/SUPER-804/root_cause_analysis.md
  • apps/desktop/package.json

Comment on lines +8 to +11
```
fix(ci): downgrade @pierre/diffs to pass minimum-release-age policy
@pierre/diffs 1.1.7 → 1.1.3 (released 2026-03-21)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a language tag to the fenced code block.

This block should declare a language (for example text or bash) to satisfy markdown linting and keep docs consistent.

Proposed doc fix
-```
+```text
 fix(ci): downgrade `@pierre/diffs` to pass minimum-release-age policy
 `@pierre/diffs` 1.1.7 → 1.1.3 (released 2026-03-21)
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 8-8: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.spec/improvements/SUPER-804/root_cause_analysis.md around lines 8 - 11, The
fenced code block containing the release-downgrade note ("fix(ci): downgrade
`@pierre/diffs` to pass minimum-release-age policy" / "`@pierre/diffs` 1.1.7 → 1.1.3
(released 2026-03-21)") needs a language tag; update that triple-backtick fence
in root_cause_analysis.md to use a language such as text (e.g., change ``` to
```text) so markdown linting passes and the docs remain consistent.

### Version Analysis
- **Current version**: 1.1.3 (has line number bug)
- **Fixed version**: 1.1.7 (likely contains fix)
- **Downgrade reason**: Minimum-release-age policy (7 days required)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix policy duration: it conflicts with documented repo policy.

Line 31 states a 7-day requirement, but this PR context and scope record a 3-day minimum-release-age (259200s). Please correct this to keep the root-cause chain consistent.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.spec/improvements/SUPER-804/root_cause_analysis.md at line 31, The
document's downgrade reason text currently claims a 7-day minimum-release-age
("Minimum-release-age policy (7 days required)"), which conflicts with the PR
scope that uses a 3-day minimum-release-age (259200s); update the line to
reflect the 3-day policy by replacing the "7 days" wording with "3 days
(259200s)" or equivalent phrasing so the root_cause_analysis.md entry matches
the PR's policy value.

Comment thread .spec/improvements/SUPER-804/SCOPE.md Outdated
Comment on lines +40 to +41
- [ ] `@pierre/diffs` version updated to `1.2.2` in `apps/desktop/package.json`
- [ ] `bun install` completes without errors (v1.2.2 is >60 days old, no `minimumReleaseAge` conflict)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Update scope targets to match the implemented dependency version.

This scope still requires 1.2.2, but the PR actually upgrades apps/desktop/package.json to 1.1.22. Please align acceptance criteria and in-scope file expectations to avoid false verification outcomes and stale follow-up assumptions.

Also applies to: 49-50

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.spec/improvements/SUPER-804/SCOPE.md around lines 40 - 41, The SCOPE
acceptance criteria currently require `@pierre/diffs` version 1.2.2 but the PR
upgraded apps/desktop/package.json to 1.1.22; update the SCOPE.md entries that
mention `@pierre/diffs` and the bun install check to expect `1.1.22` (and ensure
the bullet for bun install reflects that v1.1.22 meets
minimumReleaseAge/no-conflict), and apply the same correction to the duplicate
entries referenced on lines 49-50 so the documented scope matches the
implemented dependency version.

@greptile-apps

greptile-apps Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR upgrades @pierre/diffs from 1.1.3 to 1.1.22 in apps/desktop to fix out-of-order line numbers in the diff viewer, which were reintroduced when the package was downgraded in PR #3088 to satisfy bunfig.toml's 3-day minimumReleaseAge policy.

  • apps/desktop/package.json: @pierre/diffs bumped 1.1.3→1.1.22; bun.lock also picks up a transitive @pierre/theme upgrade (0.0.22→0.0.28) and pre-existing but previously unrecorded version bumps for @superset/desktop (1.10.3→1.11.0) and @superset/host-service (0.8.11→0.8.12).
  • Spec documents: Six new investigation/scope artifacts added under .spec/improvements/SUPER-804/; notably the binding SCOPE targets v1.2.2 but the implementation delivers v1.1.22, and no formal scope amendment is recorded — the Chrome-specific gutter fix ([diffs] Fix gutter utility rendering quirk pierrecomputer/pierre#729, landed in v1.2.1) remains deferred to a follow-up PR.

Confidence Score: 3/5

The dependency change itself is narrow and low-risk, but the implementation diverges from its own binding specification without a recorded amendment, and the lockfile bundles in unrelated workspace version bumps that aren't accounted for.

The @pierre/diffs upgrade is a single-line change confined to apps/desktop with no API breakage. However, the binding SCOPE document explicitly requires v1.2.2 and states it passes the age policy — the PR delivers v1.1.22 and contradicts the scope's age claim, with no formal amendment. The bun.lock also carries unacknowledged version bumps for @superset/desktop (minor bump 1.10.3→1.11.0) and @superset/host-service that are outside the stated scope and unexplained.

.spec/improvements/SUPER-804/SCOPE.md needs a formal scope amendment; bun.lock version bumps for @superset/desktop and @superset/host-service should be explicitly acknowledged.

Important Files Changed

Filename Overview
apps/desktop/package.json Single-line version bump @pierre/diffs 1.1.3→1.1.22; package version shows 1.11.0 (minor bump, not a patch) — the version bump itself is unrelated to the diff but was swept in by the lockfile regeneration
bun.lock Lock updated for @pierre/diffs 1.1.3→1.1.22 and @pierre/theme 0.0.22→0.0.28; also captures pre-existing but previously unrecorded version bumps for @superset/desktop (1.10.3→1.11.0) and @superset/host-service (0.8.11→0.8.12) — these are unrelated to the stated PR scope
.spec/improvements/SUPER-804/SCOPE.md Binding scope requires upgrade to v1.2.2 and asserts it passes minimumReleaseAge; implementation delivers v1.1.22 with no formal scope amendment recorded
.spec/improvements/SUPER-804/root_cause_analysis.md Investigation artifact documenting the root cause; correctly identifies the 1.1.7→1.1.3 downgrade as the source of the bug
.spec/improvements/SUPER-804/follow-ups.md Deferred follow-up documentation, no code changes
.spec/improvements/SUPER-804/BRIEF.md New ticket brief — documentation only, no code impact
.spec/improvements/SUPER-804/evidence_analysis.md Investigation evidence document, no code changes
.spec/improvements/SUPER-804/investigation_findings.md Investigation findings document, no code changes

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["@pierre/diffs v1.1.3\n(line-number bug present)"]
    B["@pierre/diffs v1.1.22\n(this PR — line-number bug fixed)"]
    C["@pierre/diffs v1.2.2\n(SCOPE.md binding target)"]
    D["@pierre/diffs v1.2.1\n(Chrome gutter fix — PR #729)"]
    E["minimumReleaseAge policy\n(bunfig.toml — 3 days)"]
    F["Follow-up PR\n(once v1.2.x ages past 3 days)"]

    A -->|"bun install / this PR"| B
    B -->|"passes age check\n10.6 days old"| G["apps/desktop deployed"]
    C -->|"blocked — SCOPE says >60d old\nbut PR says only ~1.9d old"| E
    D -->|"released May 20, 2026\nonly ~2 days old"| E
    E -->|"deferred"| F
    F -->|"upgrade to v1.2.1+"| D
Loading

Comments Outside Diff (1)

  1. bun.lock, line 769-778 (link)

    P2 Unrelated workspace version bumps swept in by lockfile regeneration

    Running bun install regenerated the lock file from all workspace package.json files, which captured pre-existing but previously unrecorded version bumps: @superset/desktop 1.10.3→1.11.0 (minor) and @superset/host-service 0.8.11→0.8.12. Neither change is mentioned in the PR description, the apps/desktop/package.json diff only shows the @pierre/diffs line, and "Scope amendments: (none)" in SCOPE.md makes the desktop minor bump especially surprising. If these version strings were already committed to their respective package.json files, the lockfile is simply catching up — but it would be worth calling that out explicitly so reviewers know these aren't accidental changes bundled into this PR.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: bun.lock
    Line: 769-778
    
    Comment:
    **Unrelated workspace version bumps swept in by lockfile regeneration**
    
    Running `bun install` regenerated the lock file from all workspace `package.json` files, which captured pre-existing but previously unrecorded version bumps: `@superset/desktop` 1.10.3→1.11.0 (minor) and `@superset/host-service` 0.8.11→0.8.12. Neither change is mentioned in the PR description, the `apps/desktop/package.json` diff only shows the `@pierre/diffs` line, and `"Scope amendments: (none)"` in SCOPE.md makes the desktop minor bump especially surprising. If these version strings were already committed to their respective `package.json` files, the lockfile is simply catching up — but it would be worth calling that out explicitly so reviewers know these aren't accidental changes bundled into this PR.
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
Fix the following 3 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 3
.spec/improvements/SUPER-804/SCOPE.md:40-41
**Binding scope not satisfied and not formally amended**

The SCOPE document has `status: binding` and its first acceptance criterion is `@pierre/diffs` upgraded to `1.2.2`. The document also explicitly claims "v1.2.2 is >60 days old, no `minimumReleaseAge` conflict". The PR delivers `1.1.22` instead, citing that v1.2.0 is only 1.9 days old — directly contradicting the scope's own age claim. Since `## Scope amendments` still reads "(none)", this deviation isn't formally captured. The scope document should be amended to explain why `1.1.22` is the interim target, to keep the binding record accurate and prevent confusion when the follow-up upgrade to v1.2.x is eventually filed.

### Issue 2 of 3
bun.lock:769-778
**Unrelated workspace version bumps swept in by lockfile regeneration**

Running `bun install` regenerated the lock file from all workspace `package.json` files, which captured pre-existing but previously unrecorded version bumps: `@superset/desktop` 1.10.3→1.11.0 (minor) and `@superset/host-service` 0.8.11→0.8.12. Neither change is mentioned in the PR description, the `apps/desktop/package.json` diff only shows the `@pierre/diffs` line, and `"Scope amendments: (none)"` in SCOPE.md makes the desktop minor bump especially surprising. If these version strings were already committed to their respective `package.json` files, the lockfile is simply catching up — but it would be worth calling that out explicitly so reviewers know these aren't accidental changes bundled into this PR.

### Issue 3 of 3
bun.lock:2114-2117
**`@pierre/theme` transitive bump not called out in the test plan**

`@pierre/theme` moves from `0.0.22` to `0.0.28` (6 releases) as a transitive dependency of `@pierre/diffs@1.1.22`. The PR's test plan doesn't include verifying that custom-theme registration (`registerCustomTheme`) and the theme's color-variable contract still behave correctly with the new theme version. Given that `SCOPE.md` explicitly lists `registerCustomTheme` as a component to verify, it would be good to confirm this was actually exercised rather than relying solely on typecheck passing.

Reviews (1): Last reviewed commit: "fix(desktop): upgrade @pierre/diffs 1.1...." | Re-trigger Greptile

Comment thread .spec/improvements/SUPER-804/SCOPE.md Outdated
Comment on lines +40 to +41
- [ ] `@pierre/diffs` version updated to `1.2.2` in `apps/desktop/package.json`
- [ ] `bun install` completes without errors (v1.2.2 is >60 days old, no `minimumReleaseAge` conflict)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Binding scope not satisfied and not formally amended

The SCOPE document has status: binding and its first acceptance criterion is @pierre/diffs upgraded to 1.2.2. The document also explicitly claims "v1.2.2 is >60 days old, no minimumReleaseAge conflict". The PR delivers 1.1.22 instead, citing that v1.2.0 is only 1.9 days old — directly contradicting the scope's own age claim. Since ## Scope amendments still reads "(none)", this deviation isn't formally captured. The scope document should be amended to explain why 1.1.22 is the interim target, to keep the binding record accurate and prevent confusion when the follow-up upgrade to v1.2.x is eventually filed.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .spec/improvements/SUPER-804/SCOPE.md
Line: 40-41

Comment:
**Binding scope not satisfied and not formally amended**

The SCOPE document has `status: binding` and its first acceptance criterion is `@pierre/diffs` upgraded to `1.2.2`. The document also explicitly claims "v1.2.2 is >60 days old, no `minimumReleaseAge` conflict". The PR delivers `1.1.22` instead, citing that v1.2.0 is only 1.9 days old — directly contradicting the scope's own age claim. Since `## Scope amendments` still reads "(none)", this deviation isn't formally captured. The scope document should be amended to explain why `1.1.22` is the interim target, to keep the binding record accurate and prevent confusion when the follow-up upgrade to v1.2.x is eventually filed.

How can I resolve this? If you propose a fix, please make it concise.

Comment thread bun.lock
Comment on lines +2114 to 2117
"@pierre/diffs": ["@pierre/diffs@1.1.22", "", { "dependencies": { "@pierre/theme": "0.0.28", "@shikijs/transformers": "^3.0.0", "diff": "8.0.3", "hast-util-to-html": "9.0.5", "lru_map": "0.4.1", "shiki": "^3.0.0" }, "peerDependencies": { "react": "^18.3.1 || ^19.0.0", "react-dom": "^18.3.1 || ^19.0.0" } }, "sha512-1Iv7kdl6OABFCd1n2HQbGUiRHouXPaHoIjcb7Lwg8zeJKY5ph+cESFcGEyIiwW0NCbKGtYS2bTnXmI+Eze5dwg=="],

"@pierre/theme": ["@pierre/theme@0.0.22", "", {}, "sha512-ePUIdQRNGjrveELTU7fY89Xa7YGHHEy5Po5jQy/18lm32eRn96+tnYJEtFooGdffrx55KBUtOXfvVy/7LDFFhA=="],
"@pierre/theme": ["@pierre/theme@0.0.28", "", {}, "sha512-1j/H/fECBuc9dEvntdWI+l435HZapw+RCJTlqCA6BboQ5TjlnE005j/ROWutXIs8aq5OAc82JI2Kwk4A1WWBgw=="],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 @pierre/theme transitive bump not called out in the test plan

@pierre/theme moves from 0.0.22 to 0.0.28 (6 releases) as a transitive dependency of @pierre/diffs@1.1.22. The PR's test plan doesn't include verifying that custom-theme registration (registerCustomTheme) and the theme's color-variable contract still behave correctly with the new theme version. Given that SCOPE.md explicitly lists registerCustomTheme as a component to verify, it would be good to confirm this was actually exercised rather than relying solely on typecheck passing.

Prompt To Fix With AI
This is a comment left during a code review.
Path: bun.lock
Line: 2114-2117

Comment:
**`@pierre/theme` transitive bump not called out in the test plan**

`@pierre/theme` moves from `0.0.22` to `0.0.28` (6 releases) as a transitive dependency of `@pierre/diffs@1.1.22`. The PR's test plan doesn't include verifying that custom-theme registration (`registerCustomTheme`) and the theme's color-variable contract still behave correctly with the new theme version. Given that `SCOPE.md` explicitly lists `registerCustomTheme` as a component to verify, it would be good to confirm this was actually exercised rather than relying solely on typecheck passing.

How can I resolve this? If you propose a fix, please make it concise.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 issues found across 8 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".spec/improvements/SUPER-804/root_cause_analysis.md">

<violation number="1" location=".spec/improvements/SUPER-804/root_cause_analysis.md:31">
P2: Incorrect policy threshold in root-cause analysis: states '7 days' when actual bunfig.toml enforces a 3-day minimum release age (259200s)</violation>
</file>

<file name=".spec/improvements/SUPER-804/SCOPE.md">

<violation number="1" location=".spec/improvements/SUPER-804/SCOPE.md:40">
P2: SCOPE.md binding acceptance criteria target @pierre/diffs@1.2.2 but the PR actually upgrades to 1.1.22, creating a misalignment that can drive incorrect implementation and validation</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

### Version Analysis
- **Current version**: 1.1.3 (has line number bug)
- **Fixed version**: 1.1.7 (likely contains fix)
- **Downgrade reason**: Minimum-release-age policy (7 days required)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: Incorrect policy threshold in root-cause analysis: states '7 days' when actual bunfig.toml enforces a 3-day minimum release age (259200s)

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .spec/improvements/SUPER-804/root_cause_analysis.md, line 31:

<comment>Incorrect policy threshold in root-cause analysis: states '7 days' when actual bunfig.toml enforces a 3-day minimum release age (259200s)</comment>

<file context>
@@ -0,0 +1,63 @@
+### Version Analysis
+- **Current version**: 1.1.3 (has line number bug)
+- **Fixed version**: 1.1.7 (likely contains fix)
+- **Downgrade reason**: Minimum-release-age policy (7 days required)
+
+## Resolution Path
</file context>

Comment thread .spec/improvements/SUPER-804/SCOPE.md Outdated
@@ -0,0 +1,78 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: SCOPE.md binding acceptance criteria target @pierre/diffs@1.2.2 but the PR actually upgrades to 1.1.22, creating a misalignment that can drive incorrect implementation and validation

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .spec/improvements/SUPER-804/SCOPE.md, line 40:

<comment>SCOPE.md binding acceptance criteria target @pierre/diffs@1.2.2 but the PR actually upgrades to 1.1.22, creating a misalignment that can drive incorrect implementation and validation</comment>

<file context>
@@ -0,0 +1,78 @@
+## Binding scope (chosen: moderate)
+
+### Acceptance criteria
+- [ ] `@pierre/diffs` version updated to `1.2.2` in `apps/desktop/package.json`
+- [ ] `bun install` completes without errors (v1.2.2 is >60 days old, no `minimumReleaseAge` conflict)
+- [ ] `bun run typecheck` passes
</file context>
Suggested change
---
- [ ] `@pierre/diffs` version updated to `1.1.22` in `apps/desktop/package.json`

@Kitenite
Kitenite force-pushed the improvement/SUPER-804-diff-line-numbers branch from fa9e389 to db31201 Compare May 23, 2026 07:17
@Kitenite
Kitenite merged commit a980b50 into ParadevAI:main May 23, 2026
1 check was pending
MocA-Love added a commit to MocA-Love/superset that referenced this pull request May 25, 2026
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.

3 participants