GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Chore(deps-dev): Bump electron from 41.3.0 to 42.0.0 in the electron group across 1 directory by dependabot[bot] · Pull Request #7 · ymnao/scripta

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 4, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Bumps the electron group with 1 update in the / directory: electron.

Updates electron from 41.3.0 to 42.0.0

Release notes

Sourced from electron's releases.

electron v42.0.0

Release Notes for v42.0.0

Stack Upgrades

  • Chromium 148.0.7778.96
    • New in 148
    • New in 147
  • Node v24.15.0
    • Node 24.15.0 blog post
  • V8 14.8

Breaking Changes

Behavior Changed: macOS notifications now use UNNotification API

Electron has migrated from the deprecated NSUserNotification API to the UNNotification API on macOS. The new API requires that an application be code-signed in order for notifications to be displayed. If an application is not code-signed, notifications will emit a failed event on the Notification object. #47817

Behavior Changed: electron no longer downloads itself via postinstall script

Previously, the electron npm package would download the Electron binary from the repository's GitHub Releases in the package's postinstall script. With recent supply chain security attacks against the npm ecosystem with postinstall scripts as a common attack vector, Electron will now download itself dynamically the first time that its main bin script is run (e.g. via npx electron). See [RFC #22](electron/rfcs#22) for more context. #49328

Behavior Changed: Offscreen rendering default device scale factor

Previously, OSR used the primary display's device scale factor for rendering. Starting from Electron 42, the default changes to a constant value of 1.0 for more consistent output sizes. Use webPreferences.offscreen.deviceScaleFactor to specify a custom value. #49683

Removed: quotas object from Session.clearStorageData(options)

When calling Session.clearStorageData(options), the options.quotas object is no longer supported because it has been removed from upstream Chromium.

Removed: ELECTRON_SKIP_BINARY_DOWNLOAD environment variable

This environment variable is no longer supported due to the new lazy download behavior. #50459

Features

Additions

  • Added app.configureWebAuthn({ touchID: { keychainAccessGroup } }) to enable the WebAuthn Touch ID platform authenticator on macOS. Also introduces a select-webauthn-account session event for discoverable-credential selection. #51411 (Also in 41)
  • Added Notification.getHistory() for macOS. #51123
  • Added Notification.handleActivation(callback) API on Windows to handle notification clicks, replies, and action buttons - including when the app is launched from a notification (cold start). #49919
  • Added ELECTRON_INSTALL_PLATFORM and ELECTRON_INSTALL_ARCH variables to install binaries from other platforms and architectures. #49981
  • Added allowExtensions privilege to protocol.registerSchemesAsPrivileged() to enable Chrome extensions on custom protocols. #50530 (Also in 40, 41)
  • Added app.isActive() to check if the app is the active/foreground application (macOS only). #49622
  • Added globalShortcut.setSuspended() and globalShortcut.isSuspended() methods to temporarily suspend and resume global shortcut handling. #50777
  • Added id and groupId options to the Notification constructor on macOS. id allows custom identifiers for notifications, and groupId visually groups notifications together in Notification Center. #50304
  • Added webContents.getOrCreateDevToolsTargetId(). #49733 (Also in 41)
  • Added a disclaim option to the UtilityProcess API to allow for TCC disclaiming on macOS. #49128 (Also in 39, 40, 41)
  • Added a reason property to the Notification 'closed' event on Windows to allow developers to know the reason the Notification was dismissed. #49913 (Also in 40, 41)
  • Added an usePrinterDefaultPageSize option to webContents.print() to allow using the printer's default page size. #49523 (Also in 41)
  • Added animation functionality to view.setBounds and added view.setBackgroundBlur. #48812

... (truncated)

Commits
  • 51db52e fix: set XDG app ID and WM_CLASS based on normalized app name (#51479)
  • 3998b93 fix: handle createWindow() rejection in import-meta test fixture (#51468)
  • 5ce31c3 fix: don't let tests hang for an hour (#51466)
  • 49f7d16 chore: bump chromium to 148.0.7778.96 (42-x-y) (#51402)
  • 673351b chore: use oxfmt and oxlint in 42-x-y (#51435)
  • 7369f7d fix: constrain AllowUniversalAccessFromFileURLs to file: origins in agent clu...
  • dc58761 fix: prevent borders and smearing in transparent frameless/client fra… (#51430)
  • 84ea8a1 build(deps): bump dorny/paths-filter from 3.0.2 to 4.0.1 (#51408)
  • 6e01ddb refactor: gin_helper::Promise managed by cppgc (#51405)
  • 2d943ef feat: support WebAuthn Touch ID platform authenticator on macOS (#51411)
  • Additional commits viewable in compare view

Sorry, something went wrong.

Uh oh!

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

All reactions
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 4, 2026
@dependabot dependabot Bot changed the title chore(deps-dev): Bump electron from 41.3.0 to 41.5.0 in the electron group chore(deps-dev): Bump electron from 41.3.0 to 41.5.0 in the electron group across 1 directory May 4, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/electron-45519eda25 branch 2 times, most recently from e7ee6f6 to ab72fc0 Compare May 5, 2026 06:44
@dependabot dependabot Bot changed the title chore(deps-dev): Bump electron from 41.3.0 to 41.5.0 in the electron group across 1 directory chore(deps-dev): Bump electron from 41.3.0 to 42.0.0 in the electron group across 1 directory May 6, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/electron-45519eda25 branch from ab72fc0 to 9aa2d83 Compare May 6, 2026 14:46
@dependabot dependabot Bot changed the title chore(deps-dev): Bump electron from 41.3.0 to 42.0.0 in the electron group across 1 directory Chore(deps-dev): Bump electron from 41.3.0 to 42.0.0 in the electron group across 1 directory May 7, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/electron-45519eda25 branch 2 times, most recently from 06bc7bb to 7747bb7 Compare May 8, 2026 01:33
@ymnao ymnao mentioned this pull request May 8, 2026
chore: Dependabot 5 PR の取り込み判断 #25
Closed
12 tasks
@ymnao

ymnao commented May 8, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

dependabot[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@dependabot @github

dependabot Bot commented on behalf of github May 8, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

All reactions

Sorry, something went wrong.

Uh oh!

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

@ymnao

ymnao commented May 8, 2026

Copy link
Copy Markdown
Owner

@dependabot recreate

dependabot[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@dependabot
Chore(deps-dev): Bump electron in the electron group across 1 directory
9cc6c59
Bumps the electron group with 1 update in the / directory: [electron](https://github.com/electron/electron).


Updates `electron` from 41.3.0 to 42.0.0
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](electron/electron@v41.3.0...v42.0.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-version: 41.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: electron
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/electron-45519eda25 branch from e261291 to 9cc6c59 Compare May 8, 2026 13:53
@ymnao
ymnao merged commit 3c251fd into main May 8, 2026
5 checks passed

Uh oh!

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

@ymnao
ymnao deleted the dependabot/npm_and_yarn/electron-45519eda25 branch May 8, 2026 14:01
@ymnao ymnao mentioned this pull request May 8, 2026
fix: electron 42 への対応(バイナリ取得補完 + module external 化) #37
Merged
3 of 5 tasks
ymnao added a commit that referenced this pull request May 31, 2026
@ymnao @claude
chore: PR #103 code-review 7 件反映 (CI ガード設計欠陥修正)
9a1ff5e
/code-review で検出した 7 件全てに対応。最重要は self-counting 解消
(scripts/check-tauri-residue.sh → scripts/check-legacy-residue.sh)。

Fix #1: self-counting で Phase 5 green 化が原理的に不可能だった問題:
- scripts/check-tauri-residue.sh → check-legacy-residue.sh にリネーム
- ci.yml job tauri-residue → legacy-residue にリネーム
- package.json check:tauri-residue → check:legacy-residue にリネーム
- ci.yml コメントから "Tauri" / "WKWebView" verbatim を排除
- 結果: 88 行 (うち 4 行 self-reference) → 84 行 baseline と一致

Fix #2: pnpm verify が CI と divergence していた問題:
- verify chain に typecheck:e2e + build を追加
- check:legacy-residue は意図 fail のため verify には含めない (CLAUDE.md
  で「補助」として別行案内)

Fix #3: PATHS の coverage gap:
- pnpm-workspace.yaml (CLAUDE.md 上 canonical config) 追加
- vite.config.e2e.ts 追加
- tsconfig.json (root) 追加
- docs/tauri-purge-inventory.md §2.1 にも追従

Fix #4: WebKit 扱いの inventory との非整合:
- script ヘッダで WebKit 除外の意図を明記 (-webkit- prefix FP 回避)
- inventory §2.1 / §2.5 / §2.6 で CI ガードとの差分を明記
  (ime.ts:4 等 WebKit 系コメントは CI 非対象 → Phase 3 で手動チェック)

Fix #5: git grep exit ≥2 (pathspec error / 非 git repo 等) を silently
success として扱っていた問題:
- if RESULT=$(...) を捨て、明示的に EXIT=$? を捕捉
- case 0 / 1 / *) で 3 分岐 (match / no-match / error)
- error 時は stderr 出力 + exit 2

Fix #6: continue-on-error は workflow 成否にのみ作用し job の check-run
は failure のまま残るため、branch protection の required status checks
に追加すると merge blocking される:
- workflow コメントに caveat を追記
- 「Phase 5 完了まで required 化しない」運用を明示

Fix #7: :(exclude)scripts/check-tauri-residue.sh の dead code 化:
- 新ファイル名 :(exclude)scripts/check-legacy-residue.sh に更新
- 「PATHS に scripts/ を含めないため現状 no-op、defensive 配置」コメント
  追記

検証:
- bash scripts/check-legacy-residue.sh → 84 行検出 (PR 直前と一致)
- pnpm verify (format / lint / typecheck / typecheck:e2e / test /
  test:e2e / build) 全 pass

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ymnao added a commit that referenced this pull request May 31, 2026
@ymnao @claude
chore: Tauri 残骸検出 CI ガードを追加 (#82 Phase 1 PR-2) (#103)
d0f3a7b
* chore: Tauri 残骸検出 CI ガードを追加 (#82 Phase 1 PR-2)

Issue #82 サブタスク D。Phase 2-5 の削除・置換進捗を質的に追跡する
CI ガードを設置する。

変更:
- scripts/check-tauri-residue.sh: 13 種の FORBIDDEN keyword
  (tauri / wkwebview / __TAURI / webviewWindow / @tauri-apps /
  src-tauri / tauri:// / tauri-plugin / data-tauri- /
  convertFileSrc / WebviewWindow / appWindow / tauri.conf) を
  git grep で検出。1 hit でも exit 1。対象スコープは
  docs/tauri-purge-inventory.md §2.1 と同期。-webkit- prefix CSS
  の false positive は keyword に WebKit を含めないことで除外
- package.json: check:tauri-residue script + verify script を追加
  (verify = format && lint && typecheck && test && test:e2e の
  chain を codify。check:tauri-residue は Phase 5 完了時に verify
  へ合流予定)
- .github/workflows/ci.yml: tauri-residue job を追加。Phase 1 時点
  では既存残骸 84 行が検出され意図 fail するため continue-on-error:
  true で merge を blocking しない運用。Phase 5 完了 PR で除去
- CLAUDE.md: 「コミット前の検証」を pnpm verify に集約

ローカル実行: 84 行検出で exit 1 (期待動作)。inventory §2.2 の
集計 (B 14 行 + 残り A/C/D) と整合。

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

* chore: PR #103 code-review 7 件反映 (CI ガード設計欠陥修正)

/code-review で検出した 7 件全てに対応。最重要は self-counting 解消
(scripts/check-tauri-residue.sh → scripts/check-legacy-residue.sh)。

Fix #1: self-counting で Phase 5 green 化が原理的に不可能だった問題:
- scripts/check-tauri-residue.sh → check-legacy-residue.sh にリネーム
- ci.yml job tauri-residue → legacy-residue にリネーム
- package.json check:tauri-residue → check:legacy-residue にリネーム
- ci.yml コメントから "Tauri" / "WKWebView" verbatim を排除
- 結果: 88 行 (うち 4 行 self-reference) → 84 行 baseline と一致

Fix #2: pnpm verify が CI と divergence していた問題:
- verify chain に typecheck:e2e + build を追加
- check:legacy-residue は意図 fail のため verify には含めない (CLAUDE.md
  で「補助」として別行案内)

Fix #3: PATHS の coverage gap:
- pnpm-workspace.yaml (CLAUDE.md 上 canonical config) 追加
- vite.config.e2e.ts 追加
- tsconfig.json (root) 追加
- docs/tauri-purge-inventory.md §2.1 にも追従

Fix #4: WebKit 扱いの inventory との非整合:
- script ヘッダで WebKit 除外の意図を明記 (-webkit- prefix FP 回避)
- inventory §2.1 / §2.5 / §2.6 で CI ガードとの差分を明記
  (ime.ts:4 等 WebKit 系コメントは CI 非対象 → Phase 3 で手動チェック)

Fix #5: git grep exit ≥2 (pathspec error / 非 git repo 等) を silently
success として扱っていた問題:
- if RESULT=$(...) を捨て、明示的に EXIT=$? を捕捉
- case 0 / 1 / *) で 3 分岐 (match / no-match / error)
- error 時は stderr 出力 + exit 2

Fix #6: continue-on-error は workflow 成否にのみ作用し job の check-run
は failure のまま残るため、branch protection の required status checks
に追加すると merge blocking される:
- workflow コメントに caveat を追記
- 「Phase 5 完了まで required 化しない」運用を明示

Fix #7: :(exclude)scripts/check-tauri-residue.sh の dead code 化:
- 新ファイル名 :(exclude)scripts/check-legacy-residue.sh に更新
- 「PATHS に scripts/ を含めないため現状 no-op、defensive 配置」コメント
  追記

検証:
- bash scripts/check-legacy-residue.sh → 84 行検出 (PR 直前と一致)
- pnpm verify (format / lint / typecheck / typecheck:e2e / test /
  test:e2e / build) 全 pass

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@ymnao ymnao mentioned this pull request Jun 7, 2026
feat: KaTeX CSS/font 完全オフライン化 + tmp 脆弱性解消 #145
Merged
3 of 4 tasks
ymnao added a commit that referenced this pull request Jun 7, 2026
@ymnao @claude
feat: KaTeX CSS/font 完全オフライン化 + tmp 脆弱性解消 (#145)
522b79b
* fix(deps): [email protected] の Path Traversal 脆弱性を override で解消(Dep #7)

tmp-promise → [email protected](GHSA 対象)を >=0.2.6 に強制。
ビルド時のみ使用される transitive dep のため、ランタイム影響なし。

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* feat: PDF/HTML export の KaTeX CSS/font を完全オフライン化(#121)

- scripts/generate-katex-css.js でビルド時に katex.min.css の woff2 font を
  data: URI に inline 化し src/generated/katex-inline-css.ts に書き出す
- export.ts の CDN <link> を <style> による inline 埋め込みに置換
- woff/ttf fallback を除去(woff2 は全モダンブラウザ対応済み)
- postinstall / dev / build の scripts に生成スクリプトを chain

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: /simplify 指摘対応 — buildFence 切り出し・生成スクリプト改善

- buildFence を code-fence.ts へ移動し、MarkdownEditor が export.ts を
  eager import しなくなった(katexInlineCss ~368KB の起動時ロード回避)
- generate-katex-css.js に mtime チェック追加(up-to-date なら即終了)
- woff/ttf 除去 regex を 1 つに統合
- dist / test:e2e:electron の scripts に generate chain を追加(漏れ修正)

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: クリーン checkout で typecheck/test が壊れる問題を修正

src/generated/ は gitignore のため、postinstall 未実行の状態で
typecheck / test / dev:e2e 等を単独実行すると TS2307 で失敗していた。
生成スクリプトの mtime チェックにより up-to-date 時は即終了するため、
全コマンドに chain しても実行コストは無視可能。

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: プロンプト export のデフォルトテンプレートから CDN 記述を除去

HTML/PDF export は inline CSS 化済みだが、プロンプト export の
指示文に CDN 利用の記述が残っていた。オフライン化の方針に合わせて
インライン CSS + data URL font の埋め込み指示に変更。

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: 生成スクリプトの stale mtime キャッシュ撤去 + テスト強化

- mtime 比較による早期終了を削除。pnpm は package files に元の
  mtime を保持する場合があり、katex 更新時に再生成されない恐れがあった
- 生成スクリプトに変換後の self-check を追加(url(fonts/) や
  https?:// が CSS に残っていたら即エラー)
- テストに data:font/woff2;base64 の存在確認と url(fonts/) 不在、
  外部 stylesheet link 不在の assertion を追加

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* docs: exploratory-qa の KaTeX CDN 既知バグ記述を更新

#79 は #121 で解消済み、#93 も修正済みであることを反映。

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
This was referenced Jul 21, 2026
cancelFilenameSearch を renderer 側で配線する (workspace 切替入口) #390
Closed
refactor: searchFilenames に generation ベース明示 cancel を追加 (High #8) #391
Merged
検索/スキャン系 IPC のキャッシュ化 + 段階的転置インデックス化 (Phase A-D) #394
Closed
feat: search/scan IPC の FileListCache + watcher hook を導入 (#394 Phase A) #395
Merged
ymnao added a commit that referenced this pull request Jul 22, 2026
@ymnao @claude
feat: search/scan IPC の FileListCache + watcher hook を導入 (#394 Phase …
bb7fb90
…A) (#395)

* feat: search/scan IPC の FileListCache + watcher hook を導入 (#394 Phase A)

- canonical workspace root ごとに `.md` パス集合を持つ FileListCache を新設
- 派生物 (sorted / fileMap / existingStems) は lazy 構築 + batch 適用で dirty 化
- watcher.ts の flush から canonical batch を tap して cache を先に更新
- watcher:start で acquire / stopWatcherForWindow で release (refcount)
- collectMdFilesForWorkspace を cache 経路 + populate + 直接 walk の 3 分岐に整理
- walkMdFiles に isStale を追加 (#7 の cancel 穴の暫定手当)
- scanBacklinksImpl の self-reference / fileMap 判定を canonical ベースに統一
- search-cache.test.ts で refcount / batch / populate epoch guard / in-flight dedup を検証

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* refactor: /simplify 指摘を反映 (#394 Phase A round 1)

- collectMdFilesForWorkspace の cached pre-check を落として 2 分岐に整理
  (populate 側が同じ判定を持つため重複)
- populateFileListCache の `?? result` fallback を削除 (setCacheFiles 後は
  getSortedFiles が必ず非 null で unreachable な defensive path だった)
- processMdFilesParallel の skipFile を (ioFile) 単一引数に戻す
  (scanBacklinksImpl は ioFile しか使わない)
- MdFiles.input を mutable にして searchFilenamesImpl の `[...input]` spread
  を除去 (canonicalToInputPaths の返り値は毎回新規確保で安全)
- 未使用の getCachedMdFiles import を削除

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* fix: code-reviewer round 1 指摘の Warning を修正 (#394 Phase A)

- Warning 1: populateFileListCache の epoch guard 失敗時に walk 生の unsorted
  配列が返っていたのを sortWalkResult で byteCmp 済みにして返す。
  「collectMdFilesForWorkspace は常に sort 済み」不変条件を維持
- Warning 2: scanBacklinksImpl の fileMap / self-reference 判定を canonical
  比較から旧仕様の input 比較に戻す。canonical だと workspace 内 symlink
  ノート (`alias.md -> actual.md`) で walk 側 `.../alias.md` と realpath 済み
  target `.../actual.md` が食い違い backlink が空になる regression
- 上記に伴い getCachedFileMap の import と processMdFilesParallel の
  skipFile 引数を revert (input inFile 単一引数)
- search-cache.test.ts: epoch guard 失敗時テストを 3 要素に増やして
  「返り値も byteCmp 済み」を lock

Co-Authored-By: Claude Opus 4.7 <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
This was referenced Jul 24, 2026
394 Phase D follow-up C: search API types (indexOptions) + populate contract + e2e fixture unification #407
Closed
feat: 394 Phase D 本配線 (searchFilesImpl を L3 candidates 経由化 + #399 消化 + #7 クローズ) #409
Merged
ymnao added a commit that referenced this pull request Jul 24, 2026
@ymnao
feat: 394 Phase D 本配線 (searchFilesImpl を L3 candidates 経由化 + #399 消化 + …
abc2118
…#7 クローズ) (#409)

* feat: #394 Phase D 本配線 (searchFilesImpl を L3 candidates 経由化 + #399 消化 + #7 クローズ)

- searchFilesImpl を L3 InvertedIndex 候補経由に本配線
  - buildScanList 純関数 (inverted-index.ts) で候補 ∪ (allIoFiles \ indexedValid) に絞る
  - caseSensitive / disabled / query.length<2 / 改行含 query は全走査 fallback
- #399 Finding 2 (symlink 認可境界)
  - walkMdFiles で symlink dir 再帰を除外 (loop 防御 + 主要経路 potential 露出遮断)
  - piggyback / idle-fill の indexFile 直前で realpath → isRealPathInsideRoot 再確認
- #399 Finding 1 (valid-skip x dark assert regression)
  - verifyIndexSuperset を violation 内訳返却の collectViolations に分解
  - dark assert を dual-run 化 (candidates 経路 vs 全走査 で hit file 集合を突合)
  - violation → 該当 file を disk から再 index → 再検証。解消なら warn、未解消なら throw
- #7 (walk 直列 await) クローズ準備
  - populate 経路にも entry-alive baseline の isStale を渡し、workspace close で walk 早期 return
- 実 Electron e2e safety net: chokidar → L3 end-to-end + dual-run 突合 (search-l3.electron.spec.ts)

unit test 2796 passed。

* refactor: Phase D round 1 /simplify 対応 (allowed 公式統合 / idle-fill order / isRealPathAllowed 必須化)

/simplify 4 agents 並列 → 主要 finding を fix:
- inverted-index.ts の buildScanList と collectViolations の allowed 集合公式が独立実装
  → isScanEligible 純関数に集約 (公式ズレの再発防止)
- collectViolations の JSDoc に「reindex callback を持つ」旨の dead 記述が残っていたので削除
  (実装では callback を持たず、reindex は呼び手責務)
- idle-fill: readFile → realpath 認可の順を realpath → readFile に反転
  (workspace 外 symlink に対する全文読み込みコストを 0 に落とす)
- IdleFillDeps.isRealPathAllowed を optional → required に変更
  (fail-open 事故を型で防ぐ。test の fake deps は `async () => true` で境界通過を明示)
- e2e safety net から `fill("")` → `fill(query)` の 2 段 debounce を除去 (単発切替)

Skip 記録:
- collectIndexedValid 毎回 O(N) / indexFile 内容同一性チェックなし / pathToId 無制限成長: 既存問題、Phase D scope 外 (follow-up 起票候補)
- runDarkAssert の別 module 切り出し: wikilink/backlink への横展開計画未確定
- walkMdFiles symlink 除外の引数化: followSymlinks 設定導入時に判断 (YAGNI)
- populate isStale の JSDoc 追加: round 2 或は dismiss
- e2e fixture 統合: 個別 spec の独立性、統一は別 PR
- L2 hit/miss の realpath ガード共通化: 型/意味論の差 (epoch capture の pre/post) で明快さが落ちるため見送り

* fix: Phase D round 1 code-reviewer (Fable) 対応 (dark assert epoch 逆順 + walk dead code + e2e detection)

Fable code-reviewer 主要 finding を fix:
- W1 (Critical race): runDarkAssert の re-index で epoch capture が readFile より後 → bump 後の epoch を capture して stale text を新 epoch で valid 化する race。piggyback / idle-fill と同順序 (capture-before-read) に修正
- W2 (dead code): walkMdFiles の `if (ent.isSymbolicLink()) continue;` は `if (ent.isDirectory())` の内側で到達不能 (Node の readdir は symlink→dir に対して isDirectory=false / isSymbolicLink=true を返すため)。dead check を削除し、コメントを実挙動 (symlink dir は if/else どちらの分岐にも入らず自然に skip) に合わせる
- W3 (comment error): `isRealPathInsideRoot` の「realpath 失敗 (dangling symlink 等) は false を返す (fail-closed)」は不正確 — realpathBestEffort は「祖先 realpath + suffix」に fall-through するため dangling でも true を返し得る。コメントを実挙動 + 下流 (readFile ENOENT skip) との multi-layer defense に修正
- W4 (e2e detection): dark assert throw は IPC の reject に化けて SearchPanel の catch で「結果なし」表示に化ける → step (3) が assert 違反時も green で通る。pageerror 監視 + 正方向 post-step で throw を検出
- W7 (test 欠如): collectViolations の null / eligible / violation / invalidate 分岐 4 test + idle-fill isRealPathAllowed=false path の skip 記録 test を追加

Suggestions 対応:
- S1: L2 hit path の「await 境界が無い」コメント + 認可 await 後の shouldStop 再チェック
- S2: runDarkAssert throw 前に「reindex 自体が届いていない」ケース (workspace close の handle no-op) を isIndexedAndValid で切り分けて warn に落とす
- S6: truth pass の「行単位」コメントを whole-content includes 実装に合わせて修正

Skip (round 2 or follow-up):
- W5 (indexRoot fail-open 型改善): 現 4 caller は全て indexRoot 明示、follow-up issue 候補
- W6 (populate 部分 list): renderer 側 requestId で破棄される緩和層あり、design 契約補強は別 PR
- S3 (realpathCache staleness): 既存設計、コメント補強のみで大幅変更しない
- S4 (runDarkAssert 後の shouldStop 再チェック): 結果は既に確定、renderer は requestId で捨てるため実害なし
- S5 (verify() dead code): test で契約維持

unit test 217 passed。

* fix: Phase D round 2 (a) fix (e2e polling + dark-assert dead code 除去)

/pr fix-or-issue-or-dismiss 分類の (a) fix 3 件:
- Fable round 2 Critical: e2e safety net が SearchPanel の fs-change 再検索不在で構造的に fail
  → pollSearchUntil helper で query を toggle (empty ↔ target) して debounce を再発火、
    watcher batch (500ms) 反映後の再検索を確実に踏む
- Fable round 2 W1: runDarkAssert の stillUnindexed 切り分けが dead code
  (collectViolations が返す violation の定義自体が indexedValid=true なので、
   isIndexedAndValid=false が真になる分岐は成立しない) → 除去
- Fable round 2 W4: pageerror 監視は SearchPanel の catch で吸収されて無効
  → console.error 監視 + main stderr 監視を追加し `[dark-assert]` 系メッセージ 0 件を assert

unit test 217 passed / typecheck 3 tsconfig green。

* fix: e2e pollSearchUntil の toggle ロジックバグ修正 (CI PR #409 electron-e2e fail)

CI で pollSearchUntil が 15s timeout していた原因:
- toggle=false で開始 → 最初の iter で fill(query) → toggle=true → check スキップ
- 次 iter で fill("") → toggle=false → check 実行 → 但し input は "" なので当然結果なし
- 全 check が「入力が空の時」に走り、target query の結果を一度も評価しない

fix: iteration ごとに「fill("") → fill(query) → 500ms wait → check」の直列パターンに変更。
SearchPanel useEffect は query 変更で cleanup + 新 timer 開始のため、直後の fill(query) で
timer が reset される。1 iteration ~500ms、15s timeout で ~30 iter = batch 反映まで十分待てる。
@ymnao ymnao mentioned this pull request Aug 16, 2026
test: win32 の fs semantics を windows-latest で実測する probe を足す #503
Merged
4 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@ymnao
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.