v1.5.0
PrimeCode v1.5.0
This release is a major runtime and UX update focused on faster Webview rendering, more accurate OpenCode session state, improved child-session handling, better tool output display, and more consistent settings/resource management.
Highlights
- Refactored the core Webview runtime around client-side Zustand state and direct OpenCode SDK v2 interaction, removing legacy backend synchronization paths and reducing redundant session handling logic.
- Improved streaming performance with requestAnimationFrame-driven updates, cached derived session state, and incremental projection of chat sections, tool deltas, token stats, and restored diff stats.
- Added inline prompt attachments backed by OpenCode file parts and source metadata, so file and snippet references remain visible and restorable through cancel, edit, and history flows.
- Reworked child-session and task result handling with better session graph rebuilding, task call linking, nested task rendering, task result nodes, and child-session usage calculations.
- Added richer session usage tracking, including input/output tokens, reasoning tokens, cache reads/writes, cost fields, recursive session tree stats, and system event rendering.
- Improved tool output handling with sanitized history-safe tool parts, live tool output lookup, binary file handling in diffs, expandable generic tools, and better rendering for plugin/simple tools.
- Added clipboard support across UI components for easier copying of messages, tool output, prompts, and related content.
- Improved model/provider behavior with better proxy provider visibility, session model syncing, model source tracking, and protection against overwriting user-selected models during history restoration.
- Enhanced skill and agent resource management, including the Subagents → Agents rename, resource-based state handling, clearer visibility labels, segmented permission controls, and better loading/error states.
- Refined settings UI, text inputs, textarea styling, typography variables, form-control sizing, and accessibility details for a more consistent interface.
Fixes
- Fixed per-turn diff statistics so child-session and session-wide file changes no longer leak into unrelated message stats.
- Suppressed user-initiated stop/abort errors from surfacing as noisy failures.
- Fixed OpenCode config apply-flow and runtime reload consistency across resources, MCP, providers, and startup.
- Fixed project config reads/writes for both
opencode.jsonandopencode.jsonc. - Corrected subtask token usage totals and improved aggregation for assistant responses and child sessions.
- Improved error logging in chat input and event runtime paths for easier debugging.
Maintenance
- Removed obsolete LogNormalizer/webview paths and updated Vite process polyfill handling.
- Added and updated regression tests for session usage, projector behavior, model restoration, inline attachments, prompt parts, MCP grouping, resource revisions, and chat store behavior.
- Updated package and CI release plumbing for the new release.