Skip to content

Commit 5660515

Browse files
committed
B13: record frozen Windows terminal evidence and release gates
1 parent 6349254 commit 5660515

6 files changed

Lines changed: 89 additions & 0 deletions

File tree

‎docs/MEDHA-v2-PLAN.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Release rule: fix and push all month, publish to the Store **once** at the end (
2727
| B10 | Medium | `ProjectExplorerWidget.__init__` doesn't call `load_workspace()`, so workspace projects aren't loaded and fallback logic creates a project with the workspace directory name. | `medha/project_manager.py` line 192 | Add `self.workspace_manager.load_workspace(workspace_path)` in `__init__`. |
2828
| B11 | **High** | Windows terminal never used ConPTY: code imported `pywinpty` (real module is `winpty`), wrong `spawn` args, blocking `read()` on the GUI thread, `send_control` doesn't exist; pywinpty not in build deps. Fallback never set `_shell_started` (commands stuck) and its Ctrl+C killed the shell. | `medha/terminal.py`, `requirements.txt`, spec | Fixed: `winpty` import, reader thread, `sendintr()`, fallback sets started + Ctrl+C terminates only shell children (psutil); `windows-tests.yml` runs the real-ConPTY test on windows-latest. |
2929
| B12 | Low | Python traceback line was wrong on Windows: frame-path filter compared paths without abspath/normcase on both sides. | `medha/runner.py` parse_python_traceback | Fixed: normalise both sides. Tests made path-portable for the Windows CI job. |
30+
| B13 | High (release) | Frozen Windows GUI smoke capture shows raw ANSI control sequences and `[shell exited with code 0]` before screenshot/close, although source ConPTY tests pass. Current GUI smoke checks only window visibility. | `medha/terminal.py`, `medha/smoke_gui.py`; Windows artifact run 41924745789 | Investigate frozen ConPTY reader/lifetime and terminal escape rendering; add packaged terminal command/Ctrl+C assertions before accepting release. See `docs/WINDOWS-ACCEPTANCE.md`. |
3031
More bugs come from Track B (section 3) — append them to this table with the same columns.
3132

3233
## 2. Track A — New UI like VS Code / Antigravity (ChatGPT)

‎docs/WINDOWS-ACCEPTANCE.md‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Windows release acceptance — 2026-11-05
2+
3+
**Do not submit this build yet.** The build succeeds, but frozen terminal evidence
4+
and the existing Store version block acceptance. No release/tag/Store submission
5+
was created. The publishing `windows-msix.yml` workflow was not dispatched.
6+
7+
## Provenance
8+
9+
- Main source: `d71238e4e9086863ce35064369829a4b5a1b2421` (B11 + B12).
10+
- Validation branch commit: `63492545728552b1c78e4dba9da0c8017cab9863`.
11+
- [Artifact-only Windows run](https://github.com/Kanak234/medha-ide/actions/runs/41924745789)
12+
completed successfully on windows-latest, Python 3.13.17.
13+
- [MSIX/portable ZIP and evidence artifact](https://github.com/Kanak234/medha-ide/actions/runs/41924745789/artifacts/13369462001):
14+
`medha-windows-validation`, 1,049,625,932 bytes.
15+
Archive SHA256: `d8ec3e2d4f1363ba6559750d77f1bd8b1b4f5338d211989f2878de8d6d63cdc6`.
16+
This is the Actions archive digest, not the individual MSIX digest.
17+
- Built with `packaging/windows/build_msix.ps1`: `MEDHA-2.0.0.msix` and
18+
`MEDHA-2.0.0-portable.zip`. No signing files were changed.
19+
- Small evidence entries were extracted from the downloaded archive prefix and
20+
inspected. The slow full local download was stopped; the full artifact remains
21+
on GitHub. Package payload/manifest has not been independently inspected locally.
22+
23+
## Results and limits
24+
25+
| Check | Result |
26+
|---|---|
27+
| Windows offline suite + pyflakes | 212 passed, 6 skipped; lint clean |
28+
| Existing main Windows CI on Python 3.12 | 212 passed, 6 skipped, run 41922910693 |
29+
| Source GUI startup | Passed |
30+
| Frozen GUI startup from system working directory | Window/Welcome capture passed; terminal issue below |
31+
| Frozen C compiler selftest | Build script step succeeded; individual stdout not independently inspected |
32+
| Source ConPTY `dir`, continuous ping, Ctrl+C, then another `dir` | Passed, real Windows shell |
33+
| Source C build/run with terminal `scanf` input | Passed, input 21 produced ANSWER=42 |
34+
| Source Turbo C graphics example | Passed, decoded framebuffer; screenshot shows drawing |
35+
| MSIX install, installed launch/interaction, uninstall | Not performed |
36+
| Installed C scanf / Turbo graphics / terminal Ctrl+C | Not performed |
37+
| Manual breakpoint debugging, DSA stepping, save/close/reopen project | Not performed in this Windows acceptance run |
38+
| Extension install/uninstall | Not performed; offline suite does not establish this |
39+
| Linux regression | 216 passed, 2 skipped; lint clean; 20 UI smoke tests passed |
40+
41+
Source acceptance uses the real app and bundled GCC, but is not equivalent to an
42+
installed MSIX test. No interactive Windows desktop was connected to this chat.
43+
See [source results](screenshots/windows-acceptance/source-results.json) and
44+
[frozen GUI JSON](screenshots/windows-acceptance/frozen-gui.json).
45+
46+
## B13: frozen terminal evidence requires investigation
47+
48+
The screenshot is captured by `medha/smoke_gui.py` **before** `window.close()`.
49+
It shows visible terminal control sequences and `[shell exited with code 0]`.
50+
The smoke test only asserts window visibility and Welcome; its PASS does not
51+
assert terminal health. Source ConPTY acceptance passed, so do not describe B11
52+
as wholly broken or this frozen behavior as resolved without further evidence.
53+
Root cause of the frozen shell exit has not been established.
54+
55+
![Frozen Welcome with terminal issue](screenshots/windows-acceptance/frozen-welcome.png)
56+
57+
The source Turbo check captures an actual decoded graphics frame. Runner display
58+
dimensions constrain this evidence image; it is not a replacement Store screenshot.
59+
60+
![Source Windows Turbo graphics](screenshots/windows-acceptance/source-turbo.png)
61+
62+
## Store version gate
63+
64+
Partner Center was inspected read-only. The live submission's Packages page
65+
shows **MEDHA-2.0.1.msix, v2.0.1.0, X64**. The requested 2.0.0 build is lower than
66+
that existing package version. Version selection must be resolved before upload;
67+
no silent version bump or new submission was made. User decision is pending.
68+
69+
Release requires resolving B13, verifying the installed package, addressing the
70+
remaining manual checklist and choosing a Store-compatible version. Keep existing
71+
Store copy/screenshots unchanged until those gates are satisfied.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"status": "PASS", "workspace": "C:\\Users\\runneradmin\\Documents\\MEDHA Projects", "title": "Medh\u0101 \u00b7 Welcome \u00b7 MEDHA Projects"}
56 KB
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"scope": "Windows source GUI with bundled toolchains",
3+
"passed": [
4+
"ConPTY prompt and dir",
5+
"ping Ctrl+C and shell survives",
6+
"C build/run and scanf through terminal input",
7+
"Turbo C graphics produced a decoded framebuffer"
8+
],
9+
"pending": [
10+
"MSIX install/uninstall",
11+
"installed-package interactive acceptance",
12+
"extension install/uninstall",
13+
"manual Windows desktop review"
14+
],
15+
"status": "PASS"
16+
}
69.1 KB
Loading

0 commit comments

Comments
 (0)