Skip to content

perf(renderer): index four projections that rescanned their inputs per keystroke - #18747

Merged
nwparker merged 1 commit into
mainfrom
perf/index-quadratic-scans
Sep 5, 2026
Merged

nwparker merged 1 commit into
mainfrom
perf/index-quadratic-scans

Conversation

@nwparker

@nwparker nwparker commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​95 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​95
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​481 $\color{#cf222e}{\Huge{\mathbf{−}}}$​38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​443

ELI5

Four places in the UI were looking things up the slow way: for each item in one list, scan the whole of another list. That's fine for five items and terrible for five hundred — and all four sit on paths that rerun on every keystroke or every time any tab or agent status changes.

The fix in every case is the same and boring: build a lookup table once, then look things up in it. Same results, same order, same everything — just without re-reading the phone book for every name.

Concretely:

  1. Typing in the workspace board filter re-indexed every workspace's searchable text on every character. Now the index is built once and only the search reruns.
  2. The tab bar resolved each editor tab against the global list of open files across all worktrees, once per tab. Now it's a map.
  3. The Source Control file tree rebuilt every folder's full path by re-joining its parent segments — for every folder, for every file. Now it accumulates as it walks down.
  4. The sidebar scanned all its rows from the top, once per project header, to find where each section ends. Now one pass builds all the answers.

What Changed

File Was Now
sidebar/workspace-kanban-search.ts + use-workspace-kanban-search.ts palette document index rebuilt inside the query-keyed useMemo buildWorkspaceBoardPaletteDocuments split out, memoized on [worktrees, repoMap]
tab-group/useTabGroupItemProjections.ts .find over state.openFiles per editor tab; .find over groupTabs per tabOrder entry openFileById / browserTabById / groupTabById maps, alongside the terminalTabById this file already built
right-sidebar/source-control-tree.ts segments.slice(0, i + 1).join('/') per segment → O(files × depth²) chars copied path accumulated down the walk
sidebar/worktree-header-section-boundaries.ts full findIndex over render rows per header + indexOf per bucket one indexing pass each, first-match-wins to match findIndex/indexOf; successors indexed per bucket since an id can sit in more than one bucket ordering
sidebar/worktree-header-section-boundaries.test.ts — new: per-bucket successor, no-successor fallback, and duplicate-header first-wins cases

The board change mirrors the shape worktree-jump-palette-document-index.ts already provides for Cmd-J — the board caller was simply skipping the memoized entry point.

Why

All four projections are O(n·m) on paths that rerun per keystroke or per store write, so they scale with the user's data in exactly the place that produces input lag. Indexing once per stable input is what each surrounding file already does for its other lookups.

Linked Issue

N/A — found during a renderer performance audit; no tracking issue.

Visual Proof

N/A — no visual or interaction change. The benchmark asserts each indexed shape returns the same result as the scan it replaces.

Measurements

pnpm bench:renderer-quadratic-scans (new, checked in). Three of the four scenarios import and time the production export against a hand-written reproduction of the pre-change function. The tab-group scenario is modelled on both sides — the projection lives inside the useTabGroupItemProjections React hook and cannot be imported without a renderer — so its row measures a reproduction of the change, not the change. Every scenario asserts before/after produce the same result before timing.

projection drives scale before after
workspace board filter (per keystroke burst) production 300 worktrees × 12 keystrokes 15.4 ms 4.4 ms 3.5x
tab-group projections (per unified-tab write) modelled 60 tabs × 120 open files 1.23 ms 0.34 ms 3.6x
source-control tree build (per filter keystroke) production 5000 changed files 6.2 ms 3.9 ms 1.6x
sidebar header boundaries (per row-model rebuild) production 80 repos × 600 rows 2.0 ms 0.8 ms 2.6x

The tree and sidebar wins are smaller than the scans they remove: the rest of each function (tree finalize/sort, per-row size estimation) is linear and now dominates. Earlier revisions of this PR reported 18.1x and 2.3x for those two rows from proxies that timed only the removed loop; those numbers were a model, not the function.

Negative user-facing trade-offs

None identified. Each change replaces a linear scan with an index built from the same input:

  • Same results, same order. Map construction is first-wins and I kept it that way explicitly, matching findIndex/indexOf semantics. The benchmark asserts the production function's output equals the pre-change reproduction before timing, and the new boundaries test pins the duplicate-header and multi-bucket cases.
  • Same paths in the tree. The accumulated ancestor path produces byte-identical strings to slice().join('/').
  • Same filter behaviour. The board still uses the evidencePolicy: 'board' documents (Improve cmd j search keyword match #15170 — a card may only be hidden by text printed on it). Moving the build out did not change which fields are indexed.
  • No new memory of note. The new maps hold references to objects already in the store; they are memoized on the same inputs the surrounding memos already key on, so they are rebuilt exactly when the data changes.
  • No debouncing added. I deliberately did not debounce the Source Control filter — that would be a visible trade-off (a beat of lag while typing). This PR only makes the existing per-keystroke work cheaper.

matchWorkspaceBoardWorktrees keeps documents optional and falls back to building them, so no existing caller (including its tests) changes behaviour.

Testing

  • pnpm tc ✅

  • npx vitest run src/renderer/src/components/{sidebar,tab-group,right-sidebar} — 4541 passed (4537 existing unmodified + 4 new) ✅

  • pnpm run check:code-quality:changed ✅

  • pnpm bench:renderer-quadratic-scans ✅ (macOS; pure TypeScript projections, no platform-dependent behaviour)

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Agent skill upstream boundary

  • Not applicable.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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

ℹ️ No critical issues — one misplaced doc comment inline; the refactor itself looks sound.

Reviewed changes

  • Board search index split — buildWorkspaceBoardPaletteDocuments extracted and memoized on [worktrees, repoMap] in use-workspace-kanban-search.ts, so keystrokes rerun searchWorktreeDocuments over an already-built index instead of rebuilding every worktree's normalized fields.
  • Tab-group projection indexes — openFileById, browserTabById, and groupTabById maps replace per-tab .find scans in useTabGroupItemProjections.ts, alongside the pre-existing terminalTabById.
  • Source-control tree path accumulation — source-control-tree.ts accumulates the ancestor path down the walk instead of segments.slice(0, i + 1).join('/') per segment.
  • Sidebar header boundary indexes — worktree-header-section-boundaries.ts replaces per-header findIndex/indexOf with first-wins Map indexes built once per call.
  • Benchmark — new config/scripts/renderer-quadratic-scan-benchmark.mjs with a bench:renderer-quadratic-scans script, asserting baseline/indexed equality before timing.

I traced each change against its pre-change shape: the board path is byte-for-byte equivalent (searchWorktrees already decomposed into buildWorktreePaletteDocuments + searchWorktreeDocuments with the same evidencePolicy: 'board'), the accumulated ancestor path produces identical strings, the successor indexes preserve findIndex/indexOf first-wins semantics (including the last-element → undefined case), and the tab maps are keyed exactly as the .find calls were. Existing tests cover matchWorkspaceBoardWorktrees and buildSourceControlTree; the equivalence claims hold.

ℹ️ Nitpicks

  • The PR description states "Map construction is first-wins" as a blanket claim. That is only true of the sidebar boundary indexes (!has() guards). The three tab maps (openFileById, browserTabById, groupTabById) use new Map(list.map((item) => [item.id, item])), which is last-wins on duplicate keys. It is safe here because OpenFile.id is documented as unique ("use filePath as unique key") and the pre-existing terminalTabById already used the same shape, but the description overstates the invariant.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: cea954ed-d5de-4995-a514-bee0ae75f7c6

📥 Commits

Reviewing files that changed from the base of the PR and between aa9b868fe3a141991b8162d0fe8daa8b19da897a and 63e3b1a.

📒 Files selected for processing (1)
  • package.json

Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The change optimizes renderer projections by replacing repeated linear scans with memoized palette documents and lookup maps. Source-control tree construction now accumulates ancestor paths incrementally. Sidebar boundary calculations precompute header and successor indexes. A benchmark script compares baseline and indexed implementations, validates equivalent results, and reports timing data. An npm script runs the benchmark.

Merge Risk: 🔵 Low · up to 63e3b

Renderer lookup and traversal optimizations improve performance, but the benchmark output has an unlabeled speedup column that can make reported results harder to interpret. This is a bounded documentation/reporting issue and does not block runtime use.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed and covers the change, motivation, testing, benchmarks, trade-offs, and checklist. However, it marks the mandatory Linked Issue section as N/A, although the template requir… Add the required linked issue reference in the Linked Issue section. If no issue exists, create or identify the tracking issue. Also complete the Review section if repository policy requires reviewer notes there.
Docstring Coverage ⚠️ Warning Docstring coverage is 31.58% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 7 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the renderer performance change and the four repeated projections it optimizes. It is concise and directly related to the main changes.
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.
Full details: Description check

Explanation

The description is detailed and covers the change, motivation, testing, benchmarks, trade-offs, and checklist. However, it marks the mandatory Linked Issue section as N/A, although the template requires an issue link.

Full details: Docstring Coverage

Explanation

Docstring coverage is 31.58% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 7 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI

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.

@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

🧹 Nitpick comments (1)
config/scripts/renderer-quadratic-scan-benchmark.mjs (1)

3-4: 🚀 Performance & Scalability | 🔵 Trivial | 🏗️ Heavy lift

Benchmark production projections or label these as microbenchmarks.

Line 4 claims that every scenario drives a production export. The tab and sidebar timings run local implementations. The source-control timing runs ancestorPathsBefore and ancestorPathsAfter; it only checks that buildSourceControlTree returns a nonempty result. A production regression can therefore leave this script passing and still print a speedup.

Extract benchmarkable production projection functions, or rename these rows and remove the production-equivalence claim.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 48821d9a-d298-4038-90de-de5e66b5cb98

📥 Commits

Reviewing files that changed from the base of the PR and between 2e80972 and 78576c2.

📒 Files selected for processing (7)
  • config/scripts/renderer-quadratic-scan-benchmark.mjs
  • package.json
  • src/renderer/src/components/right-sidebar/source-control-tree.ts
  • src/renderer/src/components/sidebar/use-workspace-kanban-search.ts
  • src/renderer/src/components/sidebar/workspace-kanban-search.ts
  • src/renderer/src/components/sidebar/worktree-header-section-boundaries.ts
  • src/renderer/src/components/tab-group/useTabGroupItemProjections.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@nwparker
nwparker force-pushed the perf/index-quadratic-scans branch from 78576c2 to 0e2ddac Compare September 5, 2026 01:00

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

✅ No new issues found.

Reviewed changes

  • Restored the matchWorkspaceBoardWorktrees doc contract — the "returns null when no filtering is active" JSDoc is back on the match function, and buildWorkspaceBoardPaletteDocuments carries its own; the duplicated board-policy note is folded into one comment.
  • Scoped the sidebar successor index per bucket — indexBucketSuccessors now returns Map<bucketKey, Map<id, successor>>, fixing a real bug the initial refactor introduced: an id sitting in more than one bucket could resolve a successor from the wrong bucket (the caller resolves via repoHeaderBucketByRepoId, not bucket iteration order).
  • Added a focused boundaries test — worktree-header-section-boundaries.test.ts pins the per-bucket successor case, the no-successor fallback, and duplicate-header first-wins, all against estimateRenderRowSize geometry.
  • Reworked the benchmark into honest microbenchmarks — a shared compare(label, scale, before, after) gate asserts baseline and indexed shapes agree before timing, envInt/repeat clean up the setup, and the misleading "drives a production export" claim is gone. The source-control scenario is now purely synthetic (no buildSourceControlTree import); its production equivalence is covered by existing unit tests.

I verified the per-bucket fix against the pre-PR bucketIds.indexOf(id) + 1 semantics and the flat-map failure mode it corrects; the new tests' 28 / 32 / 116 geometry constants match estimateRenderRowSize, and the generic indexHeaderRenderRows keyOf filters reproduce the old findIndex first-wins behavior exactly for both repo and project-group headers.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker force-pushed the perf/index-quadratic-scans branch from 0e2ddac to 7a3bf90 Compare September 5, 2026 01:15

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

✅ No new issues found.

Reviewed changes

  • Benchmark now drives the production exports — scenarios 1, 3 and 4 time the real matchWorkspaceBoardWorktrees/buildWorkspaceBoardPaletteDocuments, buildSourceControlTree, and getRepoHeaderSectionEndByRepoId against a hand-written reproduction of the pre-change loop, so a production regression now trips the JSON.stringify equality gate instead of passing silently. Scenario 2 stays modelled on both sides and is now labelled modelled in a new drives column.
  • Added a .tsx/.json load hook — an esbuild transformSync strips the transitively imported sidebar row-model icons, reusing the repo's established --experimental-transform-types + registerHooks bootstrap.

I diffed both inline reproductions against the pre-change sources (segments.slice(0, i + 1).join('/') and the per-header findIndex/indexOf loop) and against the current production functions: the equality gates compare array/object shapes (never a Map), so JSON.stringify is a faithful equivalence check, and repeat now returns its last result so the gate can serialize it.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: c5e8b67f-fbe2-4551-a949-02c2c24d54be

📥 Commits

Reviewing files that changed from the base of the PR and between 0e2ddacf13c9b23c2a24d166e0f5cccda440242b and aa9b868fe3a141991b8162d0fe8daa8b19da897a.

📒 Files selected for processing (2)
  • config/scripts/renderer-quadratic-scan-benchmark.mjs
  • package.json

Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.

// -------------------------------------------------

console.log('Renderer quadratic-scan removals\n')
console.log('| projection | drives | scale | before | after | |')

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Label the speedup column.

Line 358 renders a blank sixth column. Line 362 emits the speedup value in that column. Add a speedup header so the Markdown report is self-describing.

Proposed fix
-console.log('| projection | drives | scale | before | after | |')
+console.log('| projection | drives | scale | before | after | speedup |')
📝 Committable suggestion

‼️ 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.

Suggested change
console.log('| projection | drives | scale | before | after | |')
console.log('| projection | drives | scale | before | after | speedup |')

…r keystroke

Four renderer projections scanned a collection inside a loop over another collection, each on a
path that reruns per keystroke or per store write. All four now build the index once per stable
input, which is what the surrounding code already does for its other lookups.

`workspace-kanban-search.ts` called `searchWorktrees`, the convenience wrapper that builds the
palette document index inline. The board's filter hook memoized the whole call on the query, so
every character re-normalized and re-segmented every indexed field of every worktree — and did
it again on every agent-status tick while a query was active, since those churn board
identities. `buildWorkspaceBoardPaletteDocuments` splits out, memoized on
`[worktrees, repoMap]`; only the match reruns per keystroke. This is the shape
`worktree-jump-palette-document-index.ts` already provides for Cmd-J.

`useTabGroupItemProjections` resolved each editor tab against `state.openFiles` — the global
list across every worktree — and each `tabOrder` entry against the group's tabs, with a `.find`
per element. Both are now `Map` lookups, alongside the `terminalTabById` index the same file
already built. The memo key `groupTabs` gets a new identity on any unified-tab write, so this
ran on title, label and colour changes.

`buildSourceControlTree` rebuilt every ancestor path with `segments.slice(0, i + 1).join('/')`
per segment, making tree construction O(files x depth^2) in characters copied — on the path the
Source Control file filter rebuilds per keystroke. The path now accumulates.

`worktree-header-section-boundaries.ts` ran a full `findIndex` over the render rows for every
header row, plus an `indexOf` over the bucket ordering, in two `useMemo`s keyed on `renderRows`
— so it recomputed on every sidebar row-model change, not just during a drag. One indexing pass
each, first-match-wins to match `findIndex`/`indexOf`. The successor index is keyed per bucket
because a repo or group id can appear in more than one bucket ordering; a flat id-keyed map would
pick whichever bucket was iterated first. `worktree-header-section-boundaries.test.ts` pins that
and the first-wins duplicate-header case.

Measured by `pnpm bench:renderer-quadratic-scans`. Three scenarios time the production export
against a reproduction of the pre-change function; the tab-group scenario is modelled on both
sides because the projection lives inside a React hook. Each asserts before/after agree first.

| projection | drives | scale | before | after | |
| --- | --- | --- | --- | --- | --- |
| workspace board filter (per keystroke burst) | production | 300 worktrees x 12 keystrokes | 15.4 ms | 4.4 ms | 3.5x |
| tab-group projections (per unified-tab write) | modelled | 60 tabs x 120 open files | 1.23 ms | 0.34 ms | 3.6x |
| source-control tree build (per filter keystroke) | production | 5000 changed files | 6.2 ms | 3.9 ms | 1.6x |
| sidebar header boundaries (per row-model rebuild) | production | 80 repos x 600 rows | 2.0 ms | 0.8 ms | 2.6x |

The tree and sidebar wins are smaller than the scans they remove because the rest of each
function (tree finalize/sort, per-row size estimation) is linear and now dominates.
4,537 existing sidebar, tab-group and right-sidebar tests pass unmodified.
@nwparker
nwparker force-pushed the perf/index-quadratic-scans branch from aa9b868 to 63e3b1a Compare September 5, 2026 07:06
@nwparker
nwparker merged commit 320f4c8 into main Sep 5, 2026
27 checks passed
@nwparker
nwparker deleted the perf/index-quadratic-scans branch September 5, 2026 07:11
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…r keystroke (stablyai#18747)

Four renderer projections scanned a collection inside a loop over another collection, each on a
path that reruns per keystroke or per store write. All four now build the index once per stable
input, which is what the surrounding code already does for its other lookups.

`workspace-kanban-search.ts` called `searchWorktrees`, the convenience wrapper that builds the
palette document index inline. The board's filter hook memoized the whole call on the query, so
every character re-normalized and re-segmented every indexed field of every worktree — and did
it again on every agent-status tick while a query was active, since those churn board
identities. `buildWorkspaceBoardPaletteDocuments` splits out, memoized on
`[worktrees, repoMap]`; only the match reruns per keystroke. This is the shape
`worktree-jump-palette-document-index.ts` already provides for Cmd-J.

`useTabGroupItemProjections` resolved each editor tab against `state.openFiles` — the global
list across every worktree — and each `tabOrder` entry against the group's tabs, with a `.find`
per element. Both are now `Map` lookups, alongside the `terminalTabById` index the same file
already built. The memo key `groupTabs` gets a new identity on any unified-tab write, so this
ran on title, label and colour changes.

`buildSourceControlTree` rebuilt every ancestor path with `segments.slice(0, i + 1).join('/')`
per segment, making tree construction O(files x depth^2) in characters copied — on the path the
Source Control file filter rebuilds per keystroke. The path now accumulates.

`worktree-header-section-boundaries.ts` ran a full `findIndex` over the render rows for every
header row, plus an `indexOf` over the bucket ordering, in two `useMemo`s keyed on `renderRows`
— so it recomputed on every sidebar row-model change, not just during a drag. One indexing pass
each, first-match-wins to match `findIndex`/`indexOf`. The successor index is keyed per bucket
because a repo or group id can appear in more than one bucket ordering; a flat id-keyed map would
pick whichever bucket was iterated first. `worktree-header-section-boundaries.test.ts` pins that
and the first-wins duplicate-header case.

Measured by `pnpm bench:renderer-quadratic-scans`. Three scenarios time the production export
against a reproduction of the pre-change function; the tab-group scenario is modelled on both
sides because the projection lives inside a React hook. Each asserts before/after agree first.

| projection | drives | scale | before | after | |
| --- | --- | --- | --- | --- | --- |
| workspace board filter (per keystroke burst) | production | 300 worktrees x 12 keystrokes | 15.4 ms | 4.4 ms | 3.5x |
| tab-group projections (per unified-tab write) | modelled | 60 tabs x 120 open files | 1.23 ms | 0.34 ms | 3.6x |
| source-control tree build (per filter keystroke) | production | 5000 changed files | 6.2 ms | 3.9 ms | 1.6x |
| sidebar header boundaries (per row-model rebuild) | production | 80 repos x 600 rows | 2.0 ms | 0.8 ms | 2.6x |

The tree and sidebar wins are smaller than the scans they remove because the rest of each
function (tree finalize/sort, per-row size estimation) is linear and now dominates.
4,537 existing sidebar, tab-group and right-sidebar tests pass unmodified.
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