Skip to content

0.1.8 — SDK Host 架构升级、三运行时支持与多项功能重构

Choose a tag to compare

@heikeyangle-code heikeyangle-code released this 17 Nov 10:59
· 177 commits to main since this release

本次更新围绕底层引擎架构、运行时系统、模型管理、资源管理、会话系统和聊天交互进行了大规模调整。

核心更新

1. SDK Host 架构升级

  • 引入独立的 Node.js SDK Host,开始从传统 RPC 通信方式迁移至官方 Pi Coding Agent SDK。
  • 新增 Kotlin 宿主客户端,支持命令调用、事件接收、请求响应和会话状态同步。
  • 引入 JSONL 通信协议,增加事件序号、会话代号、错误码和状态快照机制。
  • 增加 SDK 通用调用接口,为后续接入官方 SDK 能力提供更灵活的扩展方式。
  • 重构引擎与扩展之间的交互基础,逐步减少 App 自行实现和维护的重复逻辑。

2. 新增第三种运行时:TAWCROOT

  • 运行时选择升级为三选一:PRoot、Proroot、TAWCROOT。
  • 新增 TAWCROOT 原生运行时构建与 APK 集成。
  • 增加运行时独立探针、组件检查、失败计数和自动回退机制。
  • 完善不同运行时的启动参数、目录映射和进程回收逻辑。
  • 增加运行时实际生效状态展示。

注意: Proroot 和 TAWCROOT 目前仍属于实验性运行时,具体稳定性可能因设备和系统环境而异。

3. 模型与供应商管理重做

  • 重构模型管理页面和供应商配置界面。
  • 增加自定义供应商表单。
  • 支持供应商名称、认证 Header 和模型费用等配置。
  • 改进 OAuth 登录、凭证管理和模型列表刷新。
  • 增加跨供应商模型浏览、搜索和选择。
  • 增加默认模型设置和思考等级管理。
  • 改进模型设置持久化,区分当前会话使用与设为默认。

4. 资源管理中心重做

  • 将原有资源管理入口整合为统一资源枢纽。
  • 集中管理 Extensions、Skills、Prompt Templates 和 Themes。
  • 增加上下文文件和系统提示词管理。
  • 重构扩展包安装、卸载、更新和检查更新流程。
  • 增加项目级信任状态管理。
  • 改进 MCP 服务器管理、连接检测、OAuth 登录和热重载。
  • 逐步将资源与扩展管理逻辑迁移至 SDK Host。

5. 会话系统升级

  • 新增独立会话库数据层。
  • 支持会话搜索、读取、重命名、删除和标签管理。
  • 重做会话树界面,采用主干与分支结构。
  • 增加会话树过滤、搜索和操作面板。
  • 增加摘要选择与停止摘要。
  • 改进会话导航和分支管理方式。

6. 聊天与扩展交互升级

  • 消息长按统一操作面板,支持复制、选择、引用、分叉、继续、标签和隐藏。
  • 增加命令参数提示与补全。
  • 增加更多内置命令的原生操作入口。
  • 改进模型和思考等级切换交互。
  • 增加压缩进行中的状态提示和中止入口。
  • 调整工具卡折叠、展开和失败状态的展示。
  • 接入 Pi 官方工具执行渲染组件和自定义消息渲染组件。
  • 增加扩展会话条目渲染器和 Markdown 转换器支持。
  • 改进扩展 UI 与 Android 原生界面的通信。

其他改进

  • 项目创建支持直接命名。
  • 项目切换列表显示信任状态。
  • 文件树支持在对话中引用文件。
  • 文件树按规则收起 .git 和 node_modules。
  • 改进工作区与会话切换时的目录同步。
  • 优化运行时首次安装和载荷解包流程。
  • 增加运行时载荷解包进度显示。
  • Node.js 升级至 24.22.1。
  • 增加 SDK Host、协议、运行时、模型与资源管理相关的测试和 CI 检查。

说明

本次更新包含较大规模的底层架构迁移。SDK Host 已具备独立宿主、协议、客户端及多项 SDK 能力接入,但部分旧通信代码和服务迁移工作仍在继续。实验性运行时也仍需更多设备验证。


English

This release is a large-scale change across the engine architecture, the runtime system, model management, resource management, sessions, and the chat interface.

Highlights

1. SDK Host architecture

  • Introduced a standalone Node.js SDK Host; the app is moving from the legacy RPC transport to the official Pi Coding Agent SDK.
  • Added a Kotlin host client that handles command calls, event delivery, request/response and session-state synchronisation.
  • Introduced a JSONL protocol with event sequence numbers, session generation, error codes and state snapshots.
  • Added a general SDK call path, so new upstream capabilities can be adopted without inventing another bespoke layer.
  • Reworked the foundation of the engine↔extension interaction, gradually removing logic the app used to implement and maintain twice.

2. A third runtime: TAWCROOT

  • Runtime selection is now three-way: PRoot, Proroot, TAWCROOT.
  • Added native TAWCROOT build and APK integration.
  • Added per-runtime probes, component checks, failure counting and automatic fallback.
  • Completed each runtime's launch arguments, directory mappings and process reaping.
  • The settings screen now shows which runtime is actually in effect.

Note: Proroot and TAWCROOT are still experimental runtimes; stability may vary by device and system environment.

3. Model and provider management, rebuilt

  • Reworked the model management page and the provider configuration screen.
  • Added a custom-provider form.
  • Provider name, auth headers and per-model pricing are now configurable.
  • Improved OAuth login, credential handling and model-list refresh.
  • Added cross-provider model browsing, search and selection.
  • Added default-model selection and reasoning-effort management.
  • Model settings now persist correctly, distinguishing "use for this session" from "set as default".

4. Resource management, rebuilt

  • Consolidated the previous resource entry points into a single hub.
  • Extensions, Skills, Prompt Templates and Themes are managed in one place.
  • Added context-file and system-prompt management.
  • Reworked extension package install, uninstall, update and update-check flows.
  • Added project-level trust state.
  • Improved MCP server management, connection checks, OAuth login and hot reload.
  • Resource and extension management is gradually moving into the SDK Host.

5. Sessions

  • Added a standalone session-library data layer.
  • Sessions can be searched, read, renamed, deleted and tagged.
  • Rebuilt the session tree around a trunk-and-branch structure.
  • Added session-tree filtering, search and an actions panel.
  • Added summary selection and the ability to stop summarisation.
  • Improved session navigation and branch handling.

6. Chat and extension interaction

  • Long-press on a message opens one unified actions panel: copy, select, quote, fork, continue, tag, hide.
  • Added command-argument hints and completion.
  • More built-in commands now have native entry points.
  • Improved model and reasoning-effort switching.
  • Added an in-progress indicator for compaction, with a way to stop it.
  • Adjusted how tool cards collapse, expand and render failures.
  • Integrated Pi's official tool-execution renderer and custom message renderer.
  • Added an extension session-entry renderer and Markdown converter support.
  • Improved the channel between extension UI and the native Android interface.

Other improvements

  • Projects can be named at creation time.
  • The project switcher shows each project's trust state.
  • The file tree can reference a file into the conversation.
  • The file tree collapses .git and node_modules by rule.
  • Improved directory synchronisation when switching workspace or session.
  • Streamlined first-run runtime installation and payload extraction.
  • Added progress display for runtime payload extraction.
  • Node.js upgraded to 24.22.1.
  • Added tests and CI checks covering the SDK Host, protocol, runtimes, models and resource management.

Notes

This update carries a large-scale migration of the underlying architecture. The SDK Host now has its own process, protocol, client and a number of upstream SDK capabilities wired in, but part of the legacy transport code and some services have yet to be migrated. The experimental runtimes also need more device validation.