Skip to content

Fix: Windows Python command compatibility for statusline and hooks#118

Merged
davila7 merged 1 commit intodavila7:mainfrom
Higangssh:fix/windows-python-command
Nov 15, 2025
Merged

Fix: Windows Python command compatibility for statusline and hooks#118
davila7 merged 1 commit intodavila7:mainfrom
Higangssh:fix/windows-python-command

Conversation

@Higangssh
Copy link
Copy Markdown
Contributor

@Higangssh Higangssh commented Oct 24, 2025

Problem

I was trying to use the context-monitor statusline on Windows and it just wouldn't work. After digging into it, I
found that all the downloaded configs use python3 commands, but Windows doesn't have python3 - it only has
python.

This affects any statusline or hook that needs to run Python scripts.

Fixes #119

Changes

Added platform-aware Python command detection:

Windows:

  • Tries py (Windows Python launcher) first
  • Falls back to python
  • Then python3 as last resort

Linux/Mac:

  • Keeps using python3 (no change)

Modified files:

  • cli-tool/src/index.js

What it does:

  • Detects OS platform
  • Automatically replaces python3 with python in JSON configs on Windows
  • Updates E2B sandbox Python detection to try multiple commands

Testing

Tested on Windows 11 with Python 3.13.5:

  • python and py commands work
  • ✓ Config replacement works correctly
  • ✓ Statusline and hooks now execute properly
  • ✓ Verified Linux/Mac behavior stays the same

- Replace python3 with python in JSON configs on Windows
- Add cross-platform Python detection (py/python/python3)
- Update E2B sandbox to try multiple Python commands
- Follows PEP 397 Python launcher best practices
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 24, 2025

@Higangssh is attempting to deploy a commit to the Daniel Avila's projects Team on Vercel.

A member of the Team first needs to authorize it.

@davila7 davila7 merged commit edb5bbe into davila7:main Nov 15, 2025
1 of 2 checks passed
cateyephotos added a commit to cateyephotos/claude-code-templates that referenced this pull request Apr 19, 2026
…ila7#116, davila7#117, davila7#118)

Three new evidence-based supplement monographs from a unified Mode 1 + Mode 6
pipeline run for Linear issues SUPP-272, SUPP-273, SUPP-274.

Citation integrity gates passed for all 3 (verify-citations.js exit 0):
  - 116 Ergothioneine: 12 papers, 13 unique PMIDs/DOIs verified live via PubMed/CrossRef
  - 117 Sulforaphane:  12 papers, 12 unique PMIDs/DOIs verified live via PubMed/CrossRef
  - 118 Glycine:       12 papers, 12 unique PMIDs/DOIs verified live via PubMed/CrossRef
  Note: every PMID listed in the Linear-issue starter sets was hallucinated; all
  final references were sourced from live PubMed esearch and esummary results.

Per supplement (each with seed.js dry-run 0 errors, all 10 monograph sections):
  - 116 Ergothioneine — Tier 3 (qs 55). Antioxidants. Longevity / Antioxidant
    Support / Cardiovascular / Neuroprotection. Smith 2020 Heart cohort
    (n=3236, 21.4yr, HR=0.79 CV mortality), Yau 2024 J Alz Dis pilot RCT,
    Sprenger 2025 Cell Metab MPST direct activation, Ames PNAS 2018
    longevity-vitamin classification.
  - 117 Sulforaphane — Tier 2 (qs 70). Antioxidants. Singh 2014 PNAS ASD
    pivotal RCT (34% ABC, p<0.001), Egner 2014 Qidong RCT (n=291, +61% benzene
    mercapturic acid), Yuan 2025 Phase II lung Ki-67, Tian 2024 NAFLD insulin
    resistance, Monteiro 2023 preclinical renoprotection meta-analysis.
  - 118 Glycine — Tier 3 (qs 52). Amino Acids. Bannai 2012 sleep (3 g pre-bed),
    File 1999 Bioglycin cognition, Kumar 2023 J Gerontol A GlyNAC RCT (cited
    only for substrate-level mechanistic inference per issue guidance).

Mechanism glossary: +17 entries (5 ergothioneine + 6 sulforaphane + 6 glycine);
glossary rebuilt with 321 mechanisms across 9 categories.

9 new compare pages (Mockup B layout) generated:
  - ergothioneine-vs-{urolithin-a, glutathione, calcium-alpha-ketoglutarate}
  - sulforaphane-vs-{turmeric-curcumin, quercetin, glutathione}
  - glycine-vs-{glynac, l-theanine, collagen-peptides}

15 provenance documents written (5 per supplement) in
content/provenance/{ergothioneine, sulforaphane, glycine}/

All 12 category pages, all guide pages, sitemap regenerated; site-stats
patched across 25 pages; honeypots injected on 64 newly-generated pages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

[Bug] Windows compatibility: python3 command not found in statusline and hooks

2 participants