Skip to content

fix(fork): keep hyprws CI green after the 2525 sync - #1480

Merged
donjor merged 2 commits into
hyprwsfrom
t3code/retire-usage-splice
Oct 1, 2026
Merged

donjor merged 2 commits into
hyprwsfrom
t3code/retire-usage-splice

Conversation

@donjor-agent

@donjor-agent donjor-agent Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

πŸ€– claude/anthropic claude-opus-5-5 (medium)

Problem

After the v0.0.45-nightly.20261001.2525 sync, hyprws CI is red in two required jobs, and neither fix can land without the other:

  • Test Web: upstream's KeybindingsSettings.logic.test.ts expects usage.open last, but fork commit 2234874eff4 still splices it in second.
  • Test: two WindowPolicy.fork.test.ts cases lose the preload's load-time subscription, because vite-plus 1.0 brings Vitest 4 and Vitest 4 clears mock calls before each test.

Change

  • Keybindings: retires 2234874eff4: KeybindingsSettings.logic.ts returns to upstream's text, and its fork sibling test goes. Upstream's case feeds the bindings reversed, so it covers the input-order stability that test asserted.
  • Window policy: the fork test file keeps the preload's load-time subscriptions and reads them alongside each test's own calls. The single-subscription case still fails if a bridge adds a second ipcRenderer subscription.

It is one sync repair, marked Fork-Repair, so fork-fold splits each hunk into its owner, as it does for e827cc55de1.
This supersedes #1482.

Scope and approval

Release blocker for the fork's stable cut.
The independent review of the 2525 sync found the keybinding failure; the window-policy failure surfaced in PR CI.

Verification

  • vp test run apps/desktop/src/preview/WindowPolicy.fork.test.ts apps/web/src/components/settings/KeybindingsSettings.logic.test.ts β†’ 37 passed; before: 3 failed
  • vp run typecheck in apps/web and in apps/desktop β†’ exit 0
  • vp run fork:ci β†’ exit 0

πŸ€– claude-opus-5-5 via Claude Code in T3 Code

Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: no
Fork-Repair: v0.0.45-nightly.20261001.2525

Upstream now orders the Usage block itself and expects `usage.open` last; the fork's splice kept it second and failed upstream's reversed-input test. Retires 2234874.

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: no
… under Vitest 4

Vite-plus 1.0 brings Vitest 4, which clears mock calls before each test, so the demand-state tests lost the subscription the preload module makes at load.

Fork-Domain: multi-window
Fork-Tier: bugfix
Fork-Upstreamable: no
@donjor-agent donjor-agent Bot changed the title fix(web): retire the usage keybinding splice upstream superseded fix(fork): keep hyprws CI green after the 2525 sync Oct 1, 2026
@donjor
donjor merged commit 22ffe5d into hyprws Oct 1, 2026
10 checks passed
@donjor
donjor deleted the t3code/retire-usage-splice branch October 1, 2026 11:37
donjor added a commit that referenced this pull request Oct 1, 2026
Squashes:

- e83247e refactor(web): centralize thread route navigation
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 1, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 2, 2026
Squashes:

- e83247e refactor(web): centralize thread route navigation
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 2, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 2, 2026
Squashes:

- e83247e refactor(web): centralize thread route navigation
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 2, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 2, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 2, 2026
Squashes:

- 2613b16 refactor(web): centralize thread route navigation (#1480)
- 05ad591 test(fork): move fork test blocks into fork-owned siblings
- 0fe3488 test(fork): complete fork-owned test sibling migration
- b8ff858 fix(web): follow upstream pull-request listing behind the project scope seam

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 2, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 2, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 3, 2026
Squashes:

- 8f70af5 refactor(web): centralize thread route navigation (#1480) (#29)
- c2a9597 fixup! refactor(web): centralize thread route navigation (#1549) (#1549)
- 75cd953 fixup! refactor(web): centralize thread route navigation (#1569) (#1569)
- d9c4706 fixup! refactor(web): centralize thread route navigation (#1586) (#1586)

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 3, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 3, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 3, 2026
Squashes:

- ccb93ba refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- 80742cd feat(dev): open isolated test apps alongside stable

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 3, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor pushed a commit that referenced this pull request Oct 3, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 4, 2026
Squashes:

- ccb93ba refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- 80742cd feat(dev): open isolated test apps alongside stable

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 4, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 4, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 6, 2026
Squashes:

- 4e3be4143e4 refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- ead034c270b fix(fork): adapt fork seams to v0.0.46-nightly.20261005.2689

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 6, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 6, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 8, 2026
Squashes:

- 4e3be4143e4 refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- ead034c270b fix(fork): adapt fork seams to v0.0.46-nightly.20261005.2689

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 8, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 8, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 10, 2026
Squashes:

- 4e3be4143e4 refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- ead034c270b fix(fork): adapt fork seams to v0.0.46-nightly.20261005.2689

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 10, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 10, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 11, 2026
Squashes:

- 4e3be4143e4 refactor(web): centralize thread route navigation (#1480) (#29) (#1549) (#1569) (#1586)
- ead034c270b fix(fork): adapt fork seams to v0.0.46-nightly.20261005.2689

Fork-Domain: multi-window
Fork-Tier: core
Fork-Upstreamable: no
donjor added a commit that referenced this pull request Oct 11, 2026
Upstream's v0.0.45-nightly.20261001.2525 sorts usage keybindings by option order itself and puts usage.open last, so the fork splice and its sibling test go.

Squashes:
- 22ffe5d fix(fork): keep hyprws CI green after the 2525 sync (#1480) (#1480)

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
donjor added a commit that referenced this pull request Oct 11, 2026
…#1498)

## Problem

A refold drops PR links an older fold wrote as a bare `(#N)` on its member lines: `forkPullRequests` harvests only full `RSI-Software/t3code-hyprws#N` refs there.
The 2026-10-02 sync refold lost `#395` this way; `#29` and `#177` went earlier.

## Change

- **Harvest:** `forkPullRequests` also reads a bare `(#N)` on `Squashes:` member lines
- **Guard:** `prove` runs a link guard; it refuses a fold that drops any link an old commit cites
- **Backfill:** a plan field `RSI-Software/t3code-hyprws#N` attaches that link to the line's lead member line; a lone member then renders as a fold
- **Docs:** fork guide and `fork-fold` skill state the rule and the plan field

On today's trunk the bare harvest already rescues 7 links that the next refold would have dropped (`#118`, `#142`, `#174`, `#178`, `#183`, `#671`, `#753`).

## Scope and approval

Refs #1491

Implements its decision rows: harvest, guard, backfill on the next fold, no pin tags or extra refs.
No trunk history is rewritten here, so the backfill conditions stay open until the next fold publishes with these plan lines:

```text
be0d8ab	#395
c12585f	#177
2613b16	#29
```

The other eight links still need an attach-or-retire call at that fold.

## Verification

```text
vp test run scripts/fork-fold.test.ts β†’ exit 0 (32 passed)
vp run typecheck (scripts) β†’ exit 0
vp run fork:ci β†’ exit 0
```

<details>
<summary>Dry-run backfill on origin/hyprws b4b09b8 (no ref moved)</summary>

An identity plan of all 139 ahead commits plus the three link fields above:

```text
fork:fold apply β†’ 139 commits β†’ 139 on 9f65218585
- be0d8ab feat(desktop): launch Electron … (#224) (#224) (#395)
- c12585f feat(agents): select custom main-thread agents (#31) (#31) (#177)
- 2613b16 refactor(web): centralize thread route navigation (#1480) (#29)
fork:fold prove origin/hyprws 9f65218585
member guard β†’ 0 finding(s)
link guard β†’ 0 finding(s)
git diff --quiet β†’ exit 0
fork:delta --check β†’ exit 0
fork:scan --replay-of b4b09b8 β†’ exit 0
```

</details>

Claude Opus 5.5, Claude Code.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: core
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant