release: v0.7.6 stable — promote develop to main #15

Merged
Muyue merged 2 commits from develop into main 2026-04-27 12:08:18 +00:00
Owner

Promotion bêta → stable

Depuis la dernière release stable v0.7.5 :

v0.7.6 — fixes Windows + agent loop cap (PR #14)

  • Dashboard métriques : CPU/RAM réels via kernel32!GetSystemTimes + GlobalMemoryStatusEx (avant : tout à 0 sur Windows)
  • Terminal ConPTY natif : implémentation complète via kernel32!CreatePseudoConsole + STARTUPINFOEX — TTY complet (ANSI, prompt couleur, vim, etc.). Fallback pipes conservé pour Windows < 10 1809
  • Agent loop cap : MaxToolIterations 15 → 500 — l'IA ne s'arrête plus à 15 exécutions d'outils

Merger ce PR pour que ci-main.yml :

  • tag v0.7.6 stable
  • génère les .syso icône via rsrc
  • build les 6 binaires (Windows en GUI subsystem + ConPTY + métriques natives)
  • crée la Publication Gitea avec changelog + checksums
  • mette à jour CHANGELOG.md

Fast-forward propre — aucun fix supplémentaire dans ce PR.

## Promotion bêta → stable Depuis la dernière release stable v0.7.5 : ### v0.7.6 — fixes Windows + agent loop cap (PR #14) - **Dashboard métriques** : CPU/RAM réels via `kernel32!GetSystemTimes` + `GlobalMemoryStatusEx` (avant : tout à 0 sur Windows) - **Terminal ConPTY natif** : implémentation complète via `kernel32!CreatePseudoConsole` + `STARTUPINFOEX` — TTY complet (ANSI, prompt couleur, vim, etc.). Fallback pipes conservé pour Windows < 10 1809 - **Agent loop cap** : `MaxToolIterations` 15 → 500 — l'IA ne s'arrête plus à 15 exécutions d'outils --- Merger ce PR pour que `ci-main.yml` : - tag `v0.7.6` stable - génère les `.syso` icône via `rsrc` - build les 6 binaires (Windows en GUI subsystem + ConPTY + métriques natives) - crée la **Publication** Gitea avec changelog + checksums - mette à jour `CHANGELOG.md` Fast-forward propre — aucun fix supplémentaire dans ce PR.
Muyue added 2 commits 2026-04-27 12:07:01 +00:00
fix(windows): native ConPTY + kernel32 metrics + agent loop cap (v0.7.6)
All checks were successful
PR Check / check (pull_request) Successful in 1m0s
d557b8e74c
Three issues reported on Windows + one user-requested limit bump:

1. Dashboard CPU/RAM/Network all at 0
   handleSystemMetrics read /proc/* exclusively. Replaced with a
   platform-split:
   - metrics_unix.go (!windows): existing /proc reading code.
   - metrics_windows.go: kernel32!GetSystemTimes for CPU
     (delta of idle vs kernel+user FILETIMEs) and
     kernel32!GlobalMemoryStatusEx for memory. Network left at zero
     for now — MIB_IF_ROW2 is too version-sensitive to parse by hand.
   handlers_info.go::handleSystemMetrics reduced to one delegating
   call.

2. Terminal black screen on Windows
   creack/pty/v2 returns "unsupported" on Windows; the v0.7.1 pipe
   fallback works but pipes don't carry TTY signals, so cmd/pwsh/wsl
   go silent. Implemented native ConPTY:
   - terminal_conpty_windows.go: CreatePseudoConsole + STARTUPINFOEX
     + PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE wiring via
     windows.NewProcThreadAttributeList. CreateProcessW launches
     child with the PC attached, full ANSI / line discipline /
     resize.
   - canUseConPTY() probes once at startup (Win10 1809+ check).
   - Restructure: terminal_session.go now holds just the interface
     + ptySession + pipeSession structs. terminal_session_unix.go
     wires creack/pty. terminal_session_windows.go tries ConPTY
     first, falls back to pipeSession.

3. Agent stops after 15 tool calls
   MaxToolIterations bumped 15 → 500. Doc comment explains why the
   cap exists at all (infinite-loop safety) and that 500 is well
   above realistic usage.

- internal/version/version.go: 0.7.5 → 0.7.6
- CHANGELOG.md: v0.7.6 entry covers the three fixes
Merge pull request 'fix(windows): ConPTY + kernel32 metrics + agent loop cap (v0.7.6)' (#14) from release/v0.7.6 into develop
All checks were successful
Beta Release / beta (push) Successful in 1m15s
PR Check / check (pull_request) Successful in 54s
9d1d717999
Reviewed-on: #14
Muyue merged commit e621b13926 into main 2026-04-27 12:08:18 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Muyue/MuyueWorkspace#15