Repository navigation
Releases
Releases · dinhdobathi1992/homebrew-zenwave
ZenWave 0.16.12
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) andhook_event_name/eventJSON 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 towsh agent install-hooks --agent <claude|copilot|all>, keeping user hooks intact and removingzenwave.jsoncleanly when uninstalling ZenWave-only entries.
- Added Copilot CLI hook payload parsing (
- 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 underbash) until overwritten or reached by the cursor.
- Inspected cell background and inverse-video attributes in
- 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, withreflect.Int64handling inSetRTInfo) 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.
- Persisted
- 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.mjsClose-step hang:JsmPanelnow handlesEscapein capture phase (guarded on modifiers, IME composition, andmodalsModel.hasOpenModals(), pluscloseJsmPanel()inkeymodel.ts), soAppKeyHandlers->handleBlockKeysat an idle prompt no longer swallowsEscapeafter closing a row unmounts the focused button. - Released
jsm.Pollermutex before invokingdeps.Publish, registeredopenRpcsbefore synchronousDefaultRouter.recvRpcMessageinsendRpcCommand(withtry/catchcleanup on throw), and added explicit{ timeout: 5000 }RPC timeouts inscripts/zw-live/jsm-live.mjs.
- Fixed the pre-existing
Tests
- Type check & Unit tests:
npx tsc --noEmit -p .(0non-preview errors);npx vitest run --dir frontend(93/93files,1,155/1,155tests passing);go test -count=1 -race ./cmd/wsh/cmd/... ./pkg/wcore/... ./pkg/wstore/... ./pkg/jsm/...andgo test ./pkg/... ./cmd/wsh/...(PASS). - Independent read-only code review + re-review:
0High /0Medium findings remaining. - Isolated live checks (
scripts/zw-live/):9/9suites passed with0failures (jsm-live25/25,dock-live24/24,card-live5/5,agent-copilot-live7/7,agent-procs-live17/17,md-live31/31,aws-live36/36,sidebar-icons-live7/7,tab-name-live11/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
Changed
- Wave 4 — Go Backend Memory Leaks, Locking & Watchers:
wps.Broker: Switched to*sync.RWMutex, prunedPersistMaponEvent_BlockCloseandEvent_RouteDown(including connection-scopedEvent_SysInfo), eliminated per-publish allocations onHasSubscribers/ smallgetMatchingRouteIds, and added single-marshalSendEventMultidispatch.WshRouter&WorkQueue: Zeroed popped slots and released empty/shrunk backing arrays inWorkQueue,upstreamBuf, andlinkMsgBacklog(while preservingrouter.lockFIFO ordering aroundSendRpcMessage); pruned closed/stalerpcMapentries while refreshinglastActiveAtfor active long-lived streams; and acceleratedownsBlock/ownsTabwith batchedDBGetManyByIdsand post-commitwstoremutation invalidation while preserving full remote authorization isolation.BadgeStore,cmdhistory,awsguard,jsm, &conncontroller: Pruned transient badges onblockcloseandDeleteTab; orderedcmdhistory.Pruneby indexedstartts, single-pass subquerySearch, and single-passCleanOutput; batchedawsguardblock checks and gatedawsguard/jsmsettings watchers on relevant keys (preservingPoller.RefreshKeychain revocation checks); removed 5 s RTTsort.Sliceallocations viasampleMeta(), replaced the 50 mswaitForStatusChangesleep loop withstatusChsignaling, and removed the hardcoded 300 msConnServerInitCommandstartup sleep.
- Wave 4 — Frontend Caches, Workspace Sync & Logging: Added post-teardown eviction for
WOScaches,orefAtomCache,BadgeMap/TabBadgeAtomCache,ShellRtInfoAtoms, andtabModelCache; returned a shared frozen empty array fromgetTabBadgeAtom; deduplicated/coalesced/parallelizeduseWorkspaceListSyncandrefreshWorkspaceList; and gated noisy hot-pathconsole.logcalls inwos.tsandtermwrap.ts(dlog).
Tests
- Type check & Unit tests:
npx tsc --noEmit -p .(0errors outside pre-existingfrontend/preview/**);npx vitest run --dir frontend(93/93files,1,151/1,151tests passing);go test -count=1 -raceacross all modified Go packages andgo test ./pkg/... ./cmd/wsh/...(PASS). - Independent read-only code review + re-review:
0High /0Medium /0Low findings remaining. - Isolated live checks (
scripts/zw-live/):8/8suites passed (dock-live24/24,card-live3/3,md-live31/31,aws-live36/36,agent-copilot-live5/5,agent-procs-live17/17,sidebar-icons-live7/7,tab-name-live11/11);jsm-livepassed 15 steps throughacknowledge: alert ackedand hit the same pre-existingClose-step timeout reproduced on0.16.10. - Performance gate (
scripts/zw-perf/gate.mjs --force):13/13metrics PASS (cmd_ready_ms10.0 msvs12.8 msbaseline,startup_ready_ms1237.6 ms,running_renderer_busy_pct0.72%vs5.21%,running_app_cpu_pct3.30%vs28.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
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-demandcss-treesplitting (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 inGetAllAgentStatesandCreateTab, boundedKERN_PROCARGS2argv inspection,kern.proc.allprocess snapshots, precomputedObjRTInfofield 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) todinhdobathi1992/homebrew-zenwave, with automated Cask SHA-256 updates inscripts/zw-release.sh(install viabrew tap dinhdobathi1992/zenwave && brew trust dinhdobathi1992/zenwave && brew install --cask dinhdobathi1992/zenwave/zenwave).
Tests
- Type check & Unit tests:
npx tsc --noEmit -p .(0errors outsidefrontend/preview/**);npx vitest run --dir frontend(91/91files,1,146/1,146tests passing); updater Vitest (2/2files,46/46tests passing); Go-raceacross modified packages (0races, allTestRemotePolicy*passing). - Live suites (
scripts/zw-live/): all 9 suites passed (0failures acrossdock-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/13metrics PASS (running_app_cpu_pct2.10%vs28.00%baseline,running_renderer_busy_pct0.49%vs5.21%,idle_app_cpu_pct0.30%vs2.00%,cmd_ready_ms9.2 msvs12.8 ms,startup_ready_ms1121.4 ms).
Updating
Click Install and restart when prompted in ZenWave, or open Settings → Advanced → Updates → Check now.