You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(e2e): fix kernel auto-launch and trust flow for fixture notebooks (#1046)
* fix(e2e): fix kernel auto-launch and trust flow for fixture notebooks
Three root causes addressed:
1. Fixture notebooks missing kernelspec metadata — added python3
kernelspec to 1-vanilla.ipynb, 2-uv-inline.ipynb, and
5-pyproject.ipynb. All passing fixtures already had kernelspec;
without it, detect_runtime() returned None and the auto-launch
took a less-tested code path.
2. detect_runtime() didn't infer Python from runt.uv/runt.conda —
added fallback so notebooks with inline Python deps are correctly
identified as Python even without a kernelspec. Three new tests
cover this.
3. Trust-dependent E2E specs waited for kernel ready before handling
trust — untrusted notebooks block auto-launch, so the kernel never
starts. Restructured uv-inline and conda-inline specs to trigger
execution first (surfacing the trust dialog), approve it, then wait
for kernel ready.
Also:
- Improved auto-launch decision logging (always logs skip reason)
- getKernelStatus() helper now prefers data-kernel-status attribute
- Removed unused imports in prewarmed-uv spec
* fix(notebook-doc): use struct init to satisfy clippy field_reassign_with_default
0 commit comments