Skip to content

sPi v0.3.4 (Linux + macOS)

Choose a tag to compare

@github-actions github-actions released this 18 Nov 16:35
· 20 commits to main since this release

sPi 0.3.4 — reliable session recovery feedback

Changes / 更新

  • Fix stale “Pi has exited” banners after successful recovery. Recovery RPC replies now carry the same owner health/history snapshot as the event. The renderer reconciles the result if the success event was missed; Check connection also consumes its response instead of relying on one-way notification alone.
  • Order health snapshots with a monotonic owner revision. Duplicate/older recovery replies cannot rewind new output, stop a later task, or erase a newer exit state. A live, writable current owner replays its verified health on task start and already-requested state reads, even when its own status was already healthy. No additional polling, model requests, automatic queue resume or prompt replay is added. Retired/dead writers cannot revive sessions.
  • Replace native recovery window.confirm with a visible in-window modal, shared by the banner and session context menu. Cancel is focused by default; Cancel/Escape send no recovery request. Only explicit Confirm recovery restarts Pi. Busy status and retryable errors are visible rather than silently returning to the old banner.
  • Handle GitHub anonymous REST API 403/429 during update checks through the same repository's official releases/latest/download/release-manifest.json endpoint. The fallback accepts only a strictly validated stable version/manifest and still checks the exact-version descriptor and archive checksum. It adds no credentials, mirrors or trust bypass; other errors/invalid API metadata remain errors.
  • Keep the existing saved-history, draft/image/outbox preservation, paused queue, YOLO reset and host-enforced read-only protections. Missing session files remain an explicit error, never a silent new conversation.

恢复成功后应自动清除退出提示及恢复按钮。确认界面不再依赖可能阻塞/不可见的原生确认框;错误会留在窗口内,可查看并重试。测试覆盖真实点击、取消/Escape、失败重试、健康事件缺失及旧回复迟到,不通过强行隐藏横幅或再次重启用户会话解决状态同步问题。

Platforms and upgrade / 平台与升级

  • Linux x64/arm64 and macOS Apple Silicon/Intel. Mac is ad-hoc signed, not Developer ID signed or notarized; no OS protection bypass is provided.
  • Existing 0.3.3 installations can test the intended in-app path: Settings → Check for updates, download 0.3.4, save unsent drafts/queue contents, then explicitly confirm Restart to apply. spi update is the CLI alternative. This publication will not restart the current window for you. Installation alone does not hot-update a running app; drafts/outbox are memory-only until separately saved.
  • GitHub is the primary desktop update channel; no npm action is needed for that in-app update. The matching public lightweight npm package remains the first-install path: pi install npm:spi-agent-gui@0.3.4 (npm latest is 0.3.4).
  • Remote protocol stays v2; saved pairings/profile/history are preserved. Update host/client together to exercise all new recovery behavior. Immutable 0.3.3 assets are not replaced.

Scoped build security exception / 临时构建期例外

The user explicitly approved extending the exact GHSA-fc5q-39xc-vjpf / CVE-2026-112366 picomatch <=4.0.7 build-only exception to 0.3.4, pending an official fixed dependency. The upstream issue is not fixed. The current full audit reports 7 high / 7 moderate; inherited high findings are disclosed, not suppressed or relabeled. The code allowlist is limited to explicitly approved 0.3.3 and 0.3.4; no automatic future-version exception is introduced.

Only that exact advisory/range on lockfile-marked development nodes is allowed. Production paths, other high/critical findings and incomplete audit data still fail. Installer inputs and every final ASAR/unpacked/resources script/standalone helper must reject the affected build modules/code and provide content-hash/version-bound inventories. Upgrade/remove the exception when the official patch is available. These native-job inventories are not independent publisher signatures.

Acceptance and publication status

  • GitHub v0.3.4 is public from immutable source 98093478ac135bdda8c5d659ad9242c6c4628a2f. All four native targets, source Checks and publication/anonymous asset verification passed. Publication reused the verified exact-source artifacts and validated all four native jobs; redundant tag-triggered build 44348221591 was cancelled, not used as a gate. No immutable 0.3.3 asset/tag was replaced.
  • Source and extracted-runtime tests on all four targets passed actual recovery confirmation, Cancel/Escape, draft/history/paused-queue preservation, visible error/retry and cleared exit warning. Existing native PTY/GUI/Pi RPC/sandbox where supported, three-instance remote permissions, context/compaction, question navigation, pending panel, update metadata and real cross-runtime relaunch gates passed. Mac signatures remain ad-hoc/unnotarized.
  • A fresh private-profile public GitHub installer selected 0.3.4 and passed downloaded-runtime PTY/GUI/Pi RPC/single-instance and real recovery GUI tests. An unchanged public 0.3.3 helper reports 0.3.4 available/supported. A forced API 403 also resolved the actual anonymous official latest manifest. These are isolated local-profile/fixture tests, not a claim that the user's current window was upgraded; the agent did not restart or change that window. Manual in-app upgrade acceptance is recorded only after explicit user confirmation.
  • npm spi-agent-gui@0.3.4 is public, and latest is 0.3.4. The anonymously downloaded seven-file tarball is byte-identical to the reviewed 70,498-byte package, SHA-1 7ca1aee0a063822b99561055326926602b6763c2, with matching registry SHA-512 integrity. Its installer matches the public standalone helper and all four runtime-bound installer hashes.
  • Public pinned/latest Pi installs passed in two independent Linux x64 local profiles with private HOME/XDG/agent/bin/runtime and empty npm auth configs, using the existing Pi executable. Both selected CLI/runtime 0.3.4, detected the update from 0.3.3, and passed downloaded-runtime native PTY/GUI/Pi RPC/single-instance tests. The pinned npm-installed runtime also passed actual recovery confirmation, Cancel/Escape, visible error/retry and cleared health-banner tests. These are local profiles, not new containers or additional Mac runs. Detailed verification.