hooks: last-resort `python3` probe launches the Microsoft Store redirector on Windows (visible console flash, exit 9009)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
graphify/hooks.pyを読み、_PYTHON_DETECTの「Last resort」ブロック、特にpython3とpythonの確認順序を調べてください。Microsoft Storeのアプリ実行エイリアスを有効にし、Store Pythonをインストールしていない状態で、Windows上のGit Bashでフォールバックを再現してください。フックがWindowsAppsリダイレクターの起動を回避し、引き続き利用可能なPythonインタープリターを見つけられれば完了です。payloadにはテストファイル名が記載されていません。
索引モデルが issue の本文から書いたものです。
説明
Where: graphify/hooks.py, _PYTHON_DETECT, the "Last resort" block — python3 -c "$_GFY_PROBE" is tried before python -c … (0.9.92: L131–135; same order back to 0.8.36 L64–68).
What happens on Windows: with the Microsoft Store app-execution alias enabled (the Windows 10/11 default) and no Store Python installed, command -v python3 in Git Bash resolves to /c/Users/<me>/AppData/Local/Microsoft/WindowsApps/python3 — the AppInstallerPythonRedirector.exe stub. Running it opens a visible console window for ~1.1 s, then exits 9009. So on any machine where the pinned interpreter, .graphify_python, the launcher shebang and the uv-tools scan all miss (removed venv, graphify moved to another env, GUI git client with a minimal PATH), every commit flashes a terminal window before the hook falls through to python.
Environment: Windows 11 Home 23H2 (build 22631), Git for Windows, Windows Terminal 1.24 as default terminal, CPython 3.11.9 (per-user install under %LOCALAPPDATA%\Programs\Python, not the Store build), graphifyy 0.8.36 (probe block unchanged in 0.9.92).
Repro (Git Bash, alias on, no Store Python):
command -v python3 # -> /c/Users/<me>/AppData/Local/Microsoft/WindowsApps/python3
time python3 --version # console window appears for ~1.1 s; exit code 9009
Measured three times from a hidden launcher: ~1.1 s each, one AppInstallerPythonRedirector.exe + OpenConsole.exe per call.
Caveat: on my machine the hook never reached this branch (the pinned interpreter has graphify), so this is measured on the alias directly, not through a hook run.
Suggested fix (either):
- on Windows (
uname -s= MINGW*/MSYS*/CYGWIN*) probepythonbeforepython3; or - skip a
python3whose resolved path contains/WindowsApps/(case "$(command -v python3)" in */WindowsApps/*) ;; esac).
Related: #287 noted the WindowsApps stub's exit code for the AGENTS.md command; #1416 touches the python3 fallback in skill-claw.md. Neither covers the hook probe or the window flash. The console-window burst from DETACHED_PROCESS is #2253 (fixed in 0.9.29) and is a different mechanism.
- 主要言語
- Python
- スター
- 124k
- フォーク
- 11.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Graphify-Labs/graphify のほかの issue
-
GRAPHIFY_DISABLE_THINKING is ignored by the claude backend, so thinking eats max_tokens and extraction truncates対応中かも @bercedev が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
Graphify-Labs/graphify#4546 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
--update runbook: graph.json backup instruction comes after the diff that needs it, so the graph diff never runs対応中かも @sunildivakar96-cpu が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Graphify-Labs/graphify#4539 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: graphify tree ignores the repo tag on merged graphs: no per-repo roots, and identical relative paths from different repos collapse together対応中かも @AromalBiju1 が 3 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Pi skill uses unsupported general-purpose subagent instead of delegate対応中かも @bercedev が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Graphify-Labs/graphify#4494 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Graphify-Labs/graphify#3763 ·
メンテナーはふだん 1 日以内に返信
Graphify-Labs/graphify の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
521xueweihan/HelloGitHub#4063 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Vanilla-OS/apx-gui#112 ·
-
Devstral and Voxtral: section 5 fails in us-east-1 with 400 "Model does not support audio modality"オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
aws-samples/sample-per-model-bedrock#409 ·
メンテナーはふだん 1 日以内に返信
-
DuckDB 2.0 breaks to_pyarrow_batches対応中かも @DG47 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ibis-project/ibis#12196 ·
メンテナーはふだん 1 日以内に返信