Skip to content

Releases

ZenWave 0.16.12

Choose a tag to compare

@dinhdobathi1992 dinhdobathi1992 released this 26 Nov 11:49

Changed

  • GitHub Copilot CLI Hooks (wsh agent hook copilot & wsh agent install-hooks --agent copilot|all):
    • Added Copilot CLI hook payload parsing (cmd/wsh/cmd/wshcmd-agent.go) supporting both --event <name> (for native camelCase payloads) and hook_event_name/event JSON fields across native camelCase and Claude-compatible PascalCase events (sessionStart, userPromptSubmitted, PermissionRequest, Notification, agentStop, errorOccurred, sessionEnd).
    • Added $COPILOT_HOME/hooks/zenwave.json (else ~/.copilot/hooks/zenwave.json) management to wsh agent install-hooks --agent <claude|copilot|all>, keeping user hooks intact and removing zenwave.json cleanly when uninstalling ZenWave-only entries.
  • 0.16.4 Deferred Terminal Card Fixes (frontend/app/view/term/term-blocks-overlay.tsx, termwrap.ts, osc-handlers.ts):
    • Inspected cell background and inverse-video attributes in getRunningEndLine() (lineHasPaintedContent) so status bars drawn solely with background colors or inverse spaces remain enclosed inside running command cards.
    • Captured leftover painted rows below the cursor at live command start (captureStaleRowsBelowCursor), skipping untouched remnants left by a killed TUI (for example under bash) until overwritten or reached by the cursor.
  • 0.16.3 Deferred Editor Dock Fixes (pkg/waveobj/objrtinfo.go, pkg/wstore/wstore_rtinfo.go, term-dock.ts, termwrap.ts):
    • Persisted shell:cmdstartts (int64, with reflect.Int64 handling in SetRTInfo) across reloads mid-command so the folded dock bar displays the real elapsed run time (running Ns) instead of omitting duration.
    • Added resolvePostReplayShellState() to reconcile stale "running-command" states after replay even when no prompt mark ("A") was replayed, preventing the dock from folding at an idle prompt.
  • JSM Alerts Panel Escape/Close & RPC Reliability (pkg/jsm/poller.go, frontend/app/modules/jsm/jsm-panel.tsx, wshrpcutil-base.ts, keymodel.ts):
    • Fixed the pre-existing jsm-live.mjs Close-step hang: JsmPanel now handles Escape in capture phase (guarded on modifiers, IME composition, and modalsModel.hasOpenModals(), plus closeJsmPanel() in keymodel.ts), so AppKeyHandlers -> handleBlockKeys at an idle prompt no longer swallows Escape after closing a row unmounts the focused button.
    • Released jsm.Poller mutex before invoking deps.Publish, registered openRpcs before synchronous DefaultRouter.recvRpcMessage in sendRpcCommand (with try/catch cleanup on throw), and added explicit { timeout: 5000 } RPC timeouts in scripts/zw-live/jsm-live.mjs.

Tests

  • Type check & Unit tests: npx tsc --noEmit -p . (0 non-preview errors); npx vitest run --dir frontend (93/93 files, 1,155/1,155 tests passing); go test -count=1 -race ./cmd/wsh/cmd/... ./pkg/wcore/... ./pkg/wstore/... ./pkg/jsm/... and go test ./pkg/... ./cmd/wsh/... (PASS).
  • Independent read-only code review + re-review: 0 High / 0 Medium findings remaining.
  • Isolated live checks (scripts/zw-live/): 9/9 suites passed with 0 failures (jsm-live 25/25, dock-live 24/24, card-live 5/5, agent-copilot-live 7/7, agent-procs-live 17/17, md-live 31/31, aws-live 36/36, sidebar-icons-live 7/7, tab-name-live 11/11).

Updating

Click Install and restart when prompted in ZenWave, or open Settings → Advanced → Updates → Check now (or brew upgrade --cask dinhdobathi1992/zenwave/zenwave followed by xattr -dr com.apple.quarantine /Applications/ZenWave.app for first-time manual Homebrew upgrades).

ZenWave 0.16.11

Choose a tag to compare

@dinhdobathi1992 dinhdobathi1992 released this 26 Nov 10:41

Changed

  • Wave 4 — Go Backend Memory Leaks, Locking & Watchers:
    • wps.Broker: Switched to *sync.RWMutex, pruned PersistMap on Event_BlockClose and Event_RouteDown (including connection-scoped Event_SysInfo), eliminated per-publish allocations on HasSubscribers / small getMatchingRouteIds, and added single-marshal SendEventMulti dispatch.
    • WshRouter & WorkQueue: Zeroed popped slots and released empty/shrunk backing arrays in WorkQueue, upstreamBuf, and linkMsgBacklog (while preserving router.lock FIFO ordering around SendRpcMessage); pruned closed/stale rpcMap entries while refreshing lastActiveAt for active long-lived streams; and accelerated ownsBlock/ownsTab with batched DBGetManyByIds and post-commit wstore mutation invalidation while preserving full remote authorization isolation.
    • BadgeStore, cmdhistory, awsguard, jsm, & conncontroller: Pruned transient badges on blockclose and DeleteTab; ordered cmdhistory.Prune by indexed startts, single-pass subquery Search, and single-pass CleanOutput; batched awsguard block checks and gated awsguard/jsm settings watchers on relevant keys (preserving Poller.Refresh Keychain revocation checks); removed 5 s RTT sort.Slice allocations via sampleMeta(), replaced the 50 ms waitForStatusChange sleep loop with statusCh signaling, and removed the hardcoded 300 ms ConnServerInitCommand startup sleep.
  • Wave 4 — Frontend Caches, Workspace Sync & Logging: Added post-teardown eviction for WOS caches, orefAtomCache, BadgeMap/TabBadgeAtomCache, ShellRtInfoAtoms, and tabModelCache; returned a shared frozen empty array from getTabBadgeAtom; deduplicated/coalesced/parallelized useWorkspaceListSync and refreshWorkspaceList; and gated noisy hot-path console.log calls in wos.ts and termwrap.ts (dlog).

Tests

  • Type check & Unit tests: npx tsc --noEmit -p . (0 errors outside pre-existing frontend/preview/**); npx vitest run --dir frontend (93/93 files, 1,151/1,151 tests passing); go test -count=1 -race across all modified Go packages and go test ./pkg/... ./cmd/wsh/... (PASS).
  • Independent read-only code review + re-review: 0 High / 0 Medium / 0 Low findings remaining.
  • Isolated live checks (scripts/zw-live/): 8/8 suites passed (dock-live 24/24, card-live 3/3, md-live 31/31, aws-live 36/36, agent-copilot-live 5/5, agent-procs-live 17/17, sidebar-icons-live 7/7, tab-name-live 11/11); jsm-live passed 15 steps through acknowledge: alert acked and hit the same pre-existing Close-step timeout reproduced on 0.16.10.
  • Performance gate (scripts/zw-perf/gate.mjs --force): 13/13 metrics PASS (cmd_ready_ms 10.0 ms vs 12.8 ms baseline, startup_ready_ms 1237.6 ms, running_renderer_busy_pct 0.72% vs 5.21%, running_app_cpu_pct 3.30% vs 28.00%).

Updating

Click Install and restart when prompted in ZenWave, or open Settings → Advanced → Updates → Check now (or brew upgrade --cask dinhdobathi1992/zenwave/zenwave followed by xattr -dr com.apple.quarantine /Applications/ZenWave.app for first-time manual Homebrew upgrades).

ZenWave 0.16.10

Choose a tag to compare

@dinhdobathi1992 dinhdobathi1992 released this 26 Nov 07:41

Changed

  • Wave 1 — Streaming, Storage & Main Process: Batched PTY-to-WebSocket frames, pre-serialized WPS event broadcasts, debounced filestore/blockstore database writes, coalesced WebSocket outputCh, WOFF2 monospace fonts, and direct macOS version syscalls.
  • Wave 2 — Renderer, WebGL & Idle CPU: Cached terminal block overlay geometry and line measurements, automatic WebGL context disposal on background tabs + capped DPR, idle highlighter/interval throttling, and O(1) terminal state lookups.
  • Wave 3 — Bundle Splitting, Go RPC & Syscalls: Lazy view/modal/AIPanel/on-demand css-tree splitting (reducing the entry chunk from ~5.1 MiB to ~3.13 MiB), zero-reencode trusted local Go RPC routing (keeping full canonical policy enforcement on remote-scoped links), memoized git-root lookups, batched SQLite queries in GetAllAgentStates and CreateTab, bounded KERN_PROCARGS2 argv inspection, kern.proc.all process snapshots, precomputed ObjRTInfo field maps, and a zero-fork ASCII+SGR fish prompt fast path (prompt).
  • Homebrew Distribution & Updater Feed: Migrated binary releases and the in-app updater feed (ZwRepo) to dinhdobathi1992/homebrew-zenwave, with automated Cask SHA-256 updates in scripts/zw-release.sh (install via brew tap dinhdobathi1992/zenwave && brew trust dinhdobathi1992/zenwave && brew install --cask dinhdobathi1992/zenwave/zenwave).

Tests

  • Type check & Unit tests: npx tsc --noEmit -p . (0 errors outside frontend/preview/**); npx vitest run --dir frontend (91/91 files, 1,146/1,146 tests passing); updater Vitest (2/2 files, 46/46 tests passing); Go -race across modified packages (0 races, all TestRemotePolicy* passing).
  • Live suites (scripts/zw-live/): all 9 suites passed (0 failures across dock-live, card-live, md-live, aws-live, tab-name-live, agent-procs-live, agent-copilot-live, sidebar-icons-live, jsm-live).
  • Performance gate (scripts/zw-perf/gate.mjs): 13/13 metrics PASS (running_app_cpu_pct 2.10% vs 28.00% baseline, running_renderer_busy_pct 0.49% vs 5.21%, idle_app_cpu_pct 0.30% vs 2.00%, cmd_ready_ms 9.2 ms vs 12.8 ms, startup_ready_ms 1121.4 ms).

Updating

Click Install and restart when prompted in ZenWave, or open Settings → Advanced → Updates → Check now.