Skip to content

Releases

v0.27.9

Choose a tag to compare

@Verlintas Verlintas released this 21 Nov 11:34

v0.27.9 — 厂商状态完整回放:Gemini thought signature、Anthropic thinking blocks

修复:Gemini 3 多轮工具调用 400(thought_signature)

Gemini 3 要求把上一轮 functionCall 上的 thoughtSignature 原样回传,旧版本丢弃后第二次工具调用即 400。

  • ToolCall 持久化 thoughtSignature,回放时写回 functionCall part
  • 签名出现在前置 thought/text part 时缓存并附加给下一个调用
  • 并行调用只有第一个携带签名(按官方规则)
  • 旧历史/跨服务商历史没有签名时,第一个调用使用官方约定的 skip_thought_signature_validator
  • 同时保留 Gemini 3 的 functionCall.id / functionResponse.id,同名并行调用更稳
  • 修复结束标记位于无 parts 的 chunk 时误报「流意外中断」

修复:Anthropic thinking blocks 被压成一个字符串

Anthropic 的 thinking 签名通过 signature_delta 下发,旧代码根本没有解析;而且一条 assistant 消息只存一份 thinking 文本 + 一个签名。多块或 redacted_thinking 会被拒(thinking blocks cannot be modified)。

  • 新增 List<ThinkingBlock>,按原始顺序保存每个 thinking / redacted_thinking block
  • 解析 signature_delta,支持 display: omitted(空文本 + 签名)
  • toWire 逐块原样回放,没有签名的块不会发送
  • DB v11:messages.thinkingBlocksJson(无损迁移)
  • 端到端验证:thinking + tool_use → 工具结果 → 下一次请求带签名通过校验

修复:新模型静默关闭推理

ModelCatalog.entryFor() 之前只做精确匹配,不在目录里的新版本(例如 claude-sonnet-5-5)会退化成「不支持推理」,导致 thinking 完全不启用。

  • 改为精确匹配 + 最长已知前缀匹配:新小版本继承所属家族的推理开关与上下文窗口
  • 补充 Claude 5.5(Opus / Sonnet / Haiku)目录条目

兼容性

  • OpenAI 官方新模型(gpt-5/gpt-6/o*)改用 max_completion_tokens;兼容网关(DeepSeek、Qwen 等)继续使用 max_tokens
  • 工具转录修复:请求前按工具调用顺序重排结果、丢弃孤儿/重复结果(Gemini 并行 functionResponse 按位置匹配)

升级

versionCode 65 / versionName 0.27.9。DB v10 → v11 为无损迁移(新增一列),直接覆盖安装。

SHA-256:

  • full: 34e37d93617259542e2cb77650ffda91848d7def3bd2bf1cb8f9423b706be305
  • lite: 4fb9d035dea46281e26efe8bb4abba54a8e828970fd2ee674b36abec836061c5

v0.27.9 — Exact vendor state replay: Gemini thought signatures + Anthropic thinking blocks

Fix: Gemini 3 multi-turn tool calls returned HTTP 400

Gemini 3 requires the thoughtSignature from a functionCall part to be
replayed unchanged; the old build dropped it and the second tool round in
the same turn failed.

  • Persist thoughtSignature on ToolCall and replay it on the
    function-call part
  • Signatures arriving on a preceding thought/text part are buffered and
    attached to the next call
  • Parallel calls only carry it on the first call (as specified)
  • Unsigned old/cross-provider history uses the documented
    skip_thought_signature_validator sentinel on the first call
  • Preserve Gemini 3 functionCall.id / functionResponse.id for robust
    same-name parallel calls
  • Treat a finishReason chunk without parts as a normal finish instead
    of reporting a broken stream

Fix: Anthropic thinking blocks were collapsed into one string

Anthropic sends a thinking block's signature as signature_delta, which
the old provider never parsed; a message also stored only one thinking
text + one signature. Multi-block and redacted_thinking turns were
rejected with "thinking blocks cannot be modified".

  • Store a List<ThinkingBlock> with each thinking / redacted_thinking
    block in its original order
  • Parse signature_delta; support display: omitted (empty text plus
    signature)
  • Replay every block verbatim; blocks without a signature are skipped
  • DB v11: messages.thinkingBlocksJson (non-destructive migration)
  • End-to-end verified: thinking + tool_use → tool result → the next
    request carries the signature and passes validation

Fix: reasoning silently disabled for new model versions

ModelCatalog.entryFor() used exact matching only, so a minor version not
in the catalog (e.g. claude-sonnet-5-5) fell back to "no reasoning",
disabling thinking entirely.

  • Exact match first, then longest known prefix: new minor versions inherit
    the family's reasoning flag and context window
  • Added Claude 5.5 (Opus / Sonnet / Haiku) catalog entries

Compatibility

  • Official OpenAI models (gpt-5/gpt-6/o*) now use
    max_completion_tokens; compatible gateways (DeepSeek, Qwen, …) keep
    max_tokens
  • Transcript repair now re-orders results by tool-call order and drops
    orphan/duplicate results (Gemini matches parallel responses positionally)

Upgrade

versionCode 65 / versionName 0.27.9. DB v10 → v11 is a non-destructive
migration (one new column); install over the previous version.

SHA-256:

  • full: 34e37d93617259542e2cb77650ffda91848d7def3bd2bf1cb8f9423b706be305
  • lite: 4fb9d035dea46281e26efe8bb4abba54a8e828970fd2ee674b36abec836061c5

v0.27.8

Choose a tag to compare

@Verlintas Verlintas released this 07 Nov 21:00

v0.27.8 — 中断后继续对话不再 400;重试、i18n 与点击可靠性

修复:Max 模式中断后发送新消息报 HTTP 400

用户反馈:Max 模式长任务中点停止,再发新消息会报:

An assistant message with 'tool_calls' must be followed by tool messages...

原因:stop() 修复了待完成的 assistant 记录后,persistStreamingPartial() 又把「工具执行中」的空文本流式占位当成新一轮,插入了第二条只有 tool_calls、没有工具结果的 assistant 消息。

修复分两层:

  • 不再持久化空文本的工具流式占位,工具状态只属于 UI,不进入历史
  • 每次请求前自动修复转录:repairToolTranscript() 为任何缺少对应 tool_call_id 的工具调用补一条「已取消(上一轮中断,自动补齐)」的 TOOL 结果,空 id 也会规范化

旧的中毒会话下次发送时自动痊愈,不用清空上下文或新开会话。

修复:重试不再重复用户消息

旧版 retryLast() 会重新插入一遍用户提问,导致上下文出现两条相同消息、长任务重试后更乱。

现在重试会:

  • 复用已有的用户消息和已完成的工具结果
  • 只删除末尾失败的 assistant 文本
  • 直接重新生成

修复:工具状态与步骤计数

  • 工具返回 ERROR:... 时卡片不再显示绿色 Done,改为 Failed(熔断本来就把这类结果当失败,之前只有 UI 显示错误)
  • 0 / 1Running... → 0 / 1 · Running...

优化:按文字点击更准

新增 UiTextMatch 评分:

精确 > 忽略标点/空格 > 前缀 > 包含 > 短标签被长查询包含 > 编辑距离 ≤2
  • 优先可点击节点,其次面积更小的节点(按钮优先于容器)
  • 点击非可点击文字时自动向上找最近的 clickable 祖先并点击其中心

优化:会话列表预览与 i18n

  • 新增 markdownPreview():预览会去掉 **加粗**、#、>、反引号、代码块,链接保留文字、图片保留 alt
  • 会话列表与收藏页完整中英双语:相对日期、搜索、清空、归档折叠、重命名/保存/取消、置顶/归档/删除、空状态、角色与来源
  • 中英文资源各 366 条,键完全对齐

升级

versionCode 64 / versionName 0.27.8。直接覆盖安装,数据库无变更。

SHA-256:

  • full: 1dc9dd68f3c10f442cd95c1049071799688cb5c50ee46c41f859faf486f13d04
  • lite: 8a2239cdd151e0b952997e483a7f089ec6e40324c2c2c64c3b951aacbad6b287

v0.27.8 — No more HTTP 400 after stopping a task; retry, i18n and tap reliability

Fix: HTTP 400 after stopping a Max-mode task

Reported: stopping a long Max-mode task and sending the next message failed with:

An assistant message with 'tool_calls' must be followed by tool messages...

Cause: stop() repaired the pending assistant row, then
persistStreamingPartial() treated the tool-execution placeholder (empty
text, RUNNING tool calls) as a new round and inserted a second assistant
message with tool calls but no results.

Two layers of protection:

  • Contentless tool-only streaming state is never persisted; it is UI
    state, not transcript
  • Every request repairs the transcript first: repairToolTranscript()
    appends a "已取消(上一轮中断,自动补齐)" tool result for any
    tool_call_id without a matching result (blank ids are normalized)

Existing poisoned conversations heal on the next send — no need to clear
the context or start a new chat.

Fix: retry no longer duplicates the user prompt

retryLast() used to insert the user message again, leaving two identical
prompts in the history. It now:

  • reuses the existing user message and completed tool results
  • removes only trailing failed assistant text
  • regenerates the answer

Fix: tool status and step counter

  • Error results (ERROR:...) are shown as Failed instead of a green
    Done (the circuit breaker already counted them as failures; only the
    UI was wrong)
  • 0 / 1Running... → 0 / 1 · Running...

Improved: text-based tapping

New UiTextMatch ranking:

exact > normalized (punctuation/space) > prefix > substring >
label-inside-query > edit distance ≤2
  • Prefer clickable nodes, then smaller bounds (buttons before containers)
  • For non-clickable labels, tap the nearest clickable ancestor's centre

Improved: previews and i18n

  • New markdownPreview() strips bold markers, headings, quotes,
    backticks and fenced code; links keep their label, images keep alt text
  • Conversation list and Starred screen are fully bilingual (zh/en):
    relative dates, search, clear, archive toggle, rename/save/cancel,
    pin/archive/delete, empty states, roles and source chat
  • 366 string keys on both sides, fully aligned

Upgrade

versionCode 64 / versionName 0.27.8. Install over the previous version;
no database changes.

SHA-256:

  • full: 1dc9dd68f3c10f442cd95c1049071799688cb5c50ee46c41f859faf486f13d04
  • lite: 8a2239cdd151e0b952997e483a7f089ec6e40324c2c2c64c3b951aacbad6b287

v0.27.7

Choose a tag to compare

@Verlintas Verlintas released this 04 Nov 14:03

v0.27.7 — 导航栏适配 + 批量 UI 操作,长流程更省调用

修复:底部输入框被系统导航栏遮挡

ColorOS 16 / Android 16 用户反馈:三按钮导航时,聊天页输入框被系统导航栏盖住。

原因:底栏只应用了 imePadding,键盘收起时导航栏 inset 为 0,输入框贴在屏幕最底部。

修复:底栏改用 navigationBars ∪ ime(两者取最大值),既避开导航栏,也不会在键盘弹出时多出一截空隙。

已验证:

  • 三按钮导航:键盘收起 / 弹出均正常
  • 手势导航:输入框位于手势条上方
  • 键盘弹出时紧贴键盘,无重复 padding

新增:ua_sequence 批量 UI 操作

一次工具调用执行 1–30 步 UI 操作,长流程不用一步一次往返:

  • 步骤类型:tap / tap_text / type / press / swipe / wait
  • 每步可带 wait_ms 等待界面变化(默认 250ms)
  • 总时长上限 45 秒,任一步失败立即停止并返回已完成步骤
  • Build 模式下整批只需确认一次

实测:home → 等待 → 滑动 → home 四步合并为一次工具调用,返回紧凑的逐步摘要。

优化:调用预估与实时计数

  • MAX / BUILD 系统提示要求多步任务开始前先给一句话计划和预估工具调用次数
  • 聊天顶栏在运行中显示实时工具调用计数

升级

versionCode 63 / versionName 0.27.7。直接覆盖安装,数据库无变更。

SHA-256:

  • full: 9b65e46435c98ba0bf17d2b24234b5841ec3a0ebcc02b841f6a0cef7cc00fb59
  • lite: a9e09c8d70409d3b148ebbfe9d85c4447a7368561d53ebed969dc442c586e413

v0.27.7 — Navigation-bar fix + batched UI actions

Fix: chat input covered by the system navigation bar

Reported on ColorOS 16 / Android 16: with 3-button navigation the chat
input row was drawn underneath the navigation bar.

Cause: the bottom bar only applied imePadding; when the keyboard was
closed the navigation-bar inset was ignored and the input sat at the very
bottom of the screen.

Fix: the bottom bar now pads navigationBars ∪ ime (the max of the two),
which clears the navigation bar without adding an extra gap while the
keyboard is open.

Verified:

  • 3-button navigation: correct with the keyboard open and closed
  • Gesture navigation: input sits above the gesture bar
  • Keyboard open: input hugs the keyboard, no double padding

New: ua_sequence batched UI actions

Run 1–30 UI steps in a single tool call instead of one round trip per tap:

  • Step types: tap / tap_text / type / press / swipe / wait
  • Optional wait_ms after each step for UI transitions (default 250ms)
  • 45-second total budget; stops at the first failure and reports the
    completed steps
  • Build mode confirms the whole batch once

Verified: home → wait → swipe → home executes in one call and returns a
compact per-step summary.

Improved: estimates and live counter

  • MAX / BUILD prompts now ask for a one-line plan with an estimated tool
    call count before a multi-step task
  • The chat top bar shows a live tool-call counter while a run is active

Upgrade

versionCode 63 / versionName 0.27.7. Install over the previous version;
no database changes.

SHA-256:

  • full: 9b65e46435c98ba0bf17d2b24234b5841ec3a0ebcc02b841f6a0cef7cc00fb59
  • lite: a9e09c8d70409d3b148ebbfe9d85c4447a7368561d53ebed969dc442c586e413

v0.27.6

Choose a tag to compare

@Verlintas Verlintas released this 02 Nov 10:35

v0.27.6 — 工具调用不再有硬上限:长流程自动化不会中途被截断

问题

用户反馈:长流程自动化任务在 50 次工具调用后被强制中断。旧引擎硬编码 MAX = 50 / 其他模式 = 12,达到上限直接 Failed,连总结都不给,已完成的一半工作只能重来。

修复

  • 默认无限制:所有模式的工具调用都不再有固定上限,长任务可以一直执行到模型自己完成
  • 可选上限:设置 → Chat → 工具调用上限,可选「无限制 / 50 / 100 / 200 / 500」,默认无限制(给需要控制成本的用户)
  • 到达上限不再报错:如果设置了上限,最后一次调用会关闭工具,让 AI 总结「已完成什么、还剩什么、如何继续」;模型不配合时也会写入可见的兜底总结,不会留下空消息
  • 可继续:每一步工具调用与结果都已持久化在会话历史里,继续发消息即可接着做,不需要从头重跑
  • 按调用次数计数:上限统计的是单个工具调用数(并行调用也逐个计数),与用户看到的工具卡片一致
  • 预算提示:设置了上限时,系统提示会提醒模型提前规划、合并步骤、减少重复调用

顺带修复

  • 编辑 Agent 会新建重复项:保存时没有带上 editingId,点「编辑」实际插入了一条新记录;现在正确更新原记录
  • 编辑加密 Key 的 Agent 探测 401:之前把数据库里的 enc:... 密文直接发给 /models,现在先通过 toConfig 解密
  • 编辑默认 Agent 会清掉默认标记:更新时保留 isDefault

验证

  • MAX 模式连续 60 次工具调用正常完成,输出「连续执行了 60 次工具调用,没有中断」(旧版第 50 次必挂)
  • 手动设置 50 上限:第 50 次后出现总结,无报错、无悬挂的 Waiting 卡片
  • 单测新增:无限制、达到上限时总结、模型无视提醒时的兜底文案
  • 完整流程(新建/编辑 Agent → 模型获取 → 保存)回归通过

升级

versionCode 62 / versionName 0.27.6。直接覆盖安装,数据库无变更。

SHA-256:

  • full: a7633b89594b65a8cc63d35e6e4ede70fc553ff481cc3cd0822ebd1df157eaf5
  • lite: bf38b53940f775bfa8ef99d0c174ba4ce5ce7815d3eaaf106ba757a7a00b2edb

v0.27.6 — No hard tool-call cap: long automations are no longer cut off

Problem

A user reported that long automation tasks were forcibly stopped after 50 tool
calls. The engine hardcoded MAX = 50 / other modes = 12 and emitted Failed
at the limit — without even a summary, forcing the user to restart the task.

Fix

  • Unlimited by default: no fixed tool-call ceiling in any mode; long tasks
    run until the model finishes on its own
  • Optional cap: Settings → Chat → Tool call limit — Unlimited / 50 / 100 /
    200 / 500 (default Unlimited), for users who want cost control
  • A cap no longer fails the run: with a configured cap, the final pass
    disables tools and asks the AI to summarize what was done, what remains and
    how to continue; if the model ignores the nudge, a visible fallback summary
    is written instead of an empty message
  • Resumable: every tool call and result is already persisted in the
    conversation; send another message to continue — no restart from scratch
  • Counts individual calls: parallel tool calls are counted one by one,
    matching the tool cards users see
  • Budget hint: when a cap is configured, the system prompt tells the model
    to plan ahead, merge steps and avoid duplicate calls

Additional fixes

  • Editing an Agent created a duplicate: the save path did not carry
    editingId, so "Edit" inserted a new row; it now updates the original
  • Probing an Agent with an encrypted key returned 401: the stored
    enc:... ciphertext was sent to /models; it is decrypted via toConfig
  • Editing the default Agent cleared its default flag: isDefault is now
    preserved on update

Verification

  • MAX mode completed 60 consecutive tool calls ("60 calls, no
    interruption"); the old build always failed at 50
  • With a 50-call cap: a summary appears after call 50, no error and no
    dangling "Waiting" card
  • New unit tests: unlimited mode, summary at the cap, fallback when the model
    ignores the nudge
  • Full flow regression (create/edit Agent → model discovery → save) passes

Upgrade

versionCode 62 / versionName 0.27.6. Install over the previous version;
no database changes.

SHA-256:

  • full: a7633b89594b65a8cc63d35e6e4ede70fc553ff481cc3cd0822ebd1df157eaf5
  • lite: bf38b53940f775bfa8ef99d0c174ba4ce5ce7815d3eaaf106ba757a7a00b2edb

v0.27.5

Choose a tag to compare

@Verlintas Verlintas released this 24 Oct 15:07

v0.27.5 — 重要修复:新建 Agent 时「没有模型选择」

问题

Agent 向导的滚动容器把高度约束写在了内层:

Modifier.verticalScroll(...).height(440.dp)

滚动视口测量到一个已经固定高度的子项,滚动范围为零。实际后果:

  • Base URL 输入框和「自动识别」按钮被裁在屏幕外,永远点不到 → 无法拉取模型列表
  • 第 2 步的模型目录被截断,只能看到前几条
  • 「下一步」按钮被 || true 永久启用,即使模型为空也能保存 Agent

所以用户看到的现象是:填完 API Key 之后没有模型选择。

修复

  • 滚动修正:高度约束移到滚动外层(heightIn(max).verticalScroll),四个步骤全部可正常滚动
  • 自动获取模型:粘贴 Key 后 800ms 防抖自动请求 GET {baseUrl}/models;进入模型步骤也会自动重试,不再依赖手动点按钮
  • 自动选中:服务端返回的第一个模型自动预选;未返回时回退到内置目录
  • 状态可见:实时显示「连接成功,发现 N 个模型」或具体错误(401 / 403 / Base URL 404 / 网络失败 / 限流)
  • 强制校验:没有 Key、Base URL 或模型时无法进入下一步,也无法保存空模型
  • 预设增强:DeepSeek / 通义千问 / Kimi / 智谱 GLM / SiliconFlow 同时填充 Base URL 和默认模型;内置目录按服务商排序,相关模型排在最前
  • 布局与文案:服务商按钮自动换行(不再裁掉 Gemini);Agent 名称不再取 Key 前缀;模型多时提供筛选框
  • 完整 i18n:新增文案与模型探测结果全部中英双语
  • 文档:HOW_IT_WORKS 第 21.3 节更新自动获取流程,第 18 章新增「不可滚动表单」的真实 bug 教训

验证

  • 本地 mock /v1/models:粘贴 Key + Base URL 后自动显示 Connected — 3 models found,下一步列出 3 个服务端模型并自动选中,保存后为 OPENAI_COMPAT · deepseek-v4-flash
  • 真实 DeepSeek 端点(假 Key):正确显示 API key is invalid or expired (HTTP 401),内置目录把 DeepSeek 模型排在最前
  • 编辑已有 Agent:无需重新输入 Key,自动使用已保存的 Key 拉取模型
  • 完整流程(新建 → 参数 → 提示词 → 保存)在模拟器上跑通

升级

versionCode 61 / versionName 0.27.5。直接覆盖安装即可,数据库无变更。

SHA-256:

  • full: 5217900caf7723a5a3ea94ad7836dae74d65ca678f3a39962799ce5b79ae4c48
  • lite: 7262f07ed49b4f691e3681de79f9569ff46dda987ad0ee4e0c6e9e52f89f77d5

v0.27.5 — Important fix: "no model selection" when creating an Agent

Problem

The Agent wizard nested the height constraint inside the scroll container:

Modifier.verticalScroll(...).height(440.dp)

The scroll viewport measured an already-fixed-height child, leaving zero
scroll range. In practice:

  • The Base URL field and the "Detect" button were clipped off-screen and
    could never be tapped
    , so the model list could not be fetched
  • The model catalog on step 2 was cut off after the first few entries
  • The "Next" button was permanently enabled by || true, allowing an Agent
    with an empty model to be saved

That is why users saw no model selection after pasting an API key.

Fix

  • Scrolling fixed: the height constraint now wraps the scroll container
    (heightIn(max).verticalScroll), so all four steps scroll properly
  • Automatic model discovery: 800ms-debounced GET {baseUrl}/models after
    the key is entered; entering the model step also auto-retries. No manual
    button press required
  • Auto-selection: the first model returned by the provider is preselected;
    the built-in catalog is the fallback when the server returns none
  • Visible status: shows "Connected — N models found" or the exact failure
    (401 / 403 / Base URL 404 / network / rate limit)
  • Real validation: cannot advance without a key, Base URL or model, and
    cannot save an Agent with an empty model
  • Better presets: DeepSeek / Qwen / Kimi / GLM / SiliconFlow fill both the
    Base URL and a sensible default model; the catalog is ordered so the
    provider's own family comes first
  • Layout & copy: provider chips wrap instead of clipping (Gemini is
    reachable); the auto-generated Agent name no longer exposes the key prefix;
    a filter box appears for long model lists
  • Full i18n: new UI strings and model-probe results are bilingual (zh/en)
  • Docs: HOW_IT_WORKS ch21.3 describes auto-fetching; ch18 adds the
    "form that could not scroll" lesson

Verification

  • Local mock /v1/models: after key + Base URL, automatically shows
    Connected — 3 models found; step 2 lists the 3 server models with the
    first preselected; saving produces OPENAI_COMPAT · deepseek-v4-flash
  • Real DeepSeek endpoint (fake key): shows
    API key is invalid or expired (HTTP 401) and puts DeepSeek models first
    in the catalog
  • Editing an existing Agent: fetches models with the stored (decrypted) key
    without re-entering it
  • Full flow (create → tuning → prompt → save) verified on the emulator

Upgrade

versionCode 61 / versionName 0.27.5. Install over the previous version;
no database changes.

SHA-256:

  • full: 5217900caf7723a5a3ea94ad7836dae74d65ca678f3a39962799ce5b79ae4c48
  • lite: 7262f07ed49b4f691e3681de79f9569ff46dda987ad0ee4e0c6e9e52f89f77d5

v0.27.4

Choose a tag to compare

@Verlintas Verlintas released this 27 Sep 04:47

v0.27.4 — 重要修复:截屏权限不再「自己掉」(AI 不再全瞎)

问题

Android 14+ 上,每次授权只能创建一次屏幕投影(系统限制:MediaProjection token 单次消费)。旧实现每次截图都重建投影——导致第二次截图起必定失败并提示「授权已失效」,AI 在做完一次屏幕分析后即变「全瞎」。

修复

  • 重构为持续投影:授权一次后创建常驻的虚拟显示与帧缓冲,整个会话期间复用;每次截图直接读取最新帧,不再重建、不再重复消费授权
  • 前台服务保持进程常驻:切后台、锁屏期间授权持续有效
  • 屏幕旋转/分辨率变化自动适配(调整投影尺寸并更换帧缓冲)
  • 投影错误现在带具体原因记录,便于诊断

实测:一次授权后连续两次截图全部成功(此前第二次必挂)。

说明(系统限制)

应用进程被系统彻底杀掉后,Android 要求重新授权(平台设计,所有投屏类应用均如此);正常情况下前台服务会保持授权有效。

SHA-256:

  • full: b6e0f6299629851b7ed19a65faf8f6f6822ef7c0d0f374b00a91a78666c4fcbc
  • lite: bd23d045f9825e87cd4cec28625c62ce8de1cba114b8424c0b667495f7fddee4

v0.27.4 — Important fix: screen-capture permission no longer 'falls off'

Problem

On Android 14+ a MediaProjection token can create exactly ONE virtual
display and can only be consumed once (platform restriction). The old
implementation rebuilt the projection on every capture, so the second
screenshot always failed with 'authorization expired' - after one screen
analysis the AI went blind.

Fix

  • Rewritten as a persistent projection: after authorization the
    service creates the virtual display and frame buffer once and keeps
    them for the whole session; every capture reads the latest frame -
    no rebuilding, no token reuse
  • Foreground service keeps the process alive: the grant survives
    backgrounding and screen-off
  • Rotation/resolution changes are handled by resizing the projection
    and swapping the frame buffer
  • Projection errors are now logged with their exception for diagnosis

Verified on emulator: one authorization, two consecutive screenshots
both succeeded (previously the second always failed).

Note (platform behavior)

If the OS fully kills the app process, Android requires re-authorization
(true for all casting/screen-sharing apps); the foreground service
normally keeps the grant alive.

SHA-256:

  • full: b6e0f6299629851b7ed19a65faf8f6f6822ef7c0d0f374b00a91a78666c4fcbc
  • lite: bd23d045f9825e87cd4cec28625c62ce8de1cba114b8424c0b667495f7fddee4

v0.27.3

Choose a tag to compare

@Verlintas Verlintas released this 27 Sep 04:27

v0.27.3 — 滚动流畅性根治 + Markdown 渲染修复 + 自主模式不限轮次

滚动抖动根治(重要)

  • 根因:旧的「每 80ms 强制滚动」与 Markdown 异步布局互相竞争,产生剧烈抖动
  • 重构为布局驱动跟随:布局完成后仅在内容超出视口时补滚一次——无循环、无延迟、无竞争
  • 顺带修复隐藏死锁:此前程序自身滚动会被误判为「用户在看历史」而停止跟随;现在只有真实手指拖拽才暂停跟随
  • 实测(设备日志 + 截图):流式时屏幕稳定显示最新内容,不再抖动/停在第 1 行

Markdown 渲染修复

  • 无外框表格修复:AI 常输出的 项目 | 价格(不带首尾 |)格式此前渲染成纯文本,现已正确显示为表格(这是「很多表格显示不出来」的主因)
  • 标题/列表/引用缺空格自动修复:###标题、-列表项、1.列表项、>引用 均正常渲染
  • 全角星号 **加粗** 自动转换;版本号 1.5 等不受影响

工具调用轮次

  • MAX 模式上限 12 → 50:自主任务不再因轮次耗尽被强制中断(防死循环兜底);Build 模式保持 12

SHA-256:

  • full: 3ba03e417a606669c9f0cf3ecd2cc75389c1f091b174e0275b2ecefdd538ed64
  • lite: f18cdab7e7ae0735fd6fa0937c3529055a886424fadb9e1dcd97be9c7d726762

v0.27.3 — Smooth scrolling (root fix) + markdown rendering + unlimited MAX rounds

Scroll jitter fixed (root cause)

  • The old "force-scroll every 80ms" loop fought Markdown's async layout, producing heavy jitter
  • Rebuilt as a layout-driven follower: after each layout, scroll once only if the last item exceeds the viewport - no loop, no delay, no fighting
  • Fixed a hidden deadlock: programmatic scrolls were mistaken for "user is reading history" and silently disabled following; now only real finger drags pause it
  • Verified on device (logs + screenshots): the screen steadily shows the newest lines while streaming

Markdown rendering fixes

  • Tables without outer pipes (item | price style, common in model output) now render as real tables instead of plain text - this was the main cause of "many tables don't display"
  • Auto-fix missing spaces: ###title, -item, 1.item, >quote all render correctly now
  • Full-width stars **bold** converted; version numbers like 1.5 untouched

Tool rounds

  • MAX mode ceiling 12 -> 50: autonomous tasks are no longer cut off mid-work (anti-deadlock guard only); Build mode keeps 12

SHA-256:

  • full: 3ba03e417a606669c9f0cf3ecd2cc75389c1f091b174e0275b2ecefdd538ed64
  • lite: f18cdab7e7ae0735fd6fa0937c3529055a886424fadb9e1dcd97be9c7d726762

v0.27.2

Choose a tag to compare

@Verlintas Verlintas released this 26 Sep 01:03

v0.27.2 — 会话内搜索 + 图片缩放

会话内搜索

  • 聊天页顶部新增搜索按钮:内联搜索框,不离开对话即可查找历史消息
  • 实时匹配计数(如 3/12)+ 上一个/下一个循环跳转,自动滚动定位到匹配消息
  • 大小写不敏感;搜索时自动暂停贴底跟随,结果不会被新消息拉走

图片查看

  • 双指缩放(1x–5x)+ 放大后拖动平移
  • 双击在 1x 与 2.5x 之间切换;单击关闭;缩回 1x 自动复位

SHA-256:

  • full: 4d1ea18ecb0b4c71a45181e7828b68bd53e9a2472e058541a713f3304e142eb7
  • lite: 21695ffa42a7fde9a620039c5adc9c7740a5d3ec181dd056065d72d59d198945

v0.27.2 — In-chat search + image zoom

In-chat search

  • New search button in the chat top bar: inline field, find messages without leaving the conversation
  • Live match counter (e.g. 3/12) with wrap-around previous/next navigation that scrolls to each match
  • Case-insensitive; bottom-follow pauses while searching so results aren't yanked away

Image viewer

  • Pinch to zoom (1x–5x) with panning when zoomed
  • Double-tap toggles 1x / 2.5x; single tap closes; position resets at 1x

SHA-256:

  • full: 4d1ea18ecb0b4c71a45181e7828b68bd53e9a2472e058541a713f3304e142eb7
  • lite: 21695ffa42a7fde9a620039c5adc9c7740a5d3ec181dd056065d72d59d198945

v0.27.1

Choose a tag to compare

@Verlintas Verlintas released this 18 Sep 16:56

v0.27.1 — 深度工具强化:AI 现在能「看见」界面并精确点击

UI 自动化质变(核心)

此前 AI 只能盲猜坐标点击,不知道按钮在哪里。现在形成完整闭环:

  • ua_find_text 查看界面结构:列出屏幕上所有文字元素的坐标与可点击状态(可留空列出全部可点项)
  • ua_tap_text 按文字点击:「点登录按钮」——基于无障碍节点查找,比坐标点击可靠得多
  • screen_ocr 默认返回每行文字坐标 文字 @(x,y):AI 读到内容就知道位置,配合坐标点击精确操作
  • 全流程:看界面 → 按文字点 → OCR 验证结果,任意 App 自动化真正可用

其他深度强化

  • calculator 科学计算:sin/cos/tan/sqrt/log/ln/floor/ceil/round(角度制)、常量 pi/e、百分比(200*15% = 30)
  • get_time 日期计算:days_offset 回答「3 天后是几号星期几」
  • write_document 追加模式:分多次写长文档不再覆盖
  • media_control 查询当前曲目:歌名/艺术家/专辑/播放进度
  • read_notifications 过滤:按时间范围(最近 N 小时)+ 应用名筛选
  • fetch_rss 条目摘要:订阅条目附带内容摘要

工具总数 63。需要无障碍 + 截屏权限(设置 → 权限)。

SHA-256:

  • full: 2762820e2825d8eae8490a66c384e61d72a5ae2274da8ff6ceb3756c39b9b41e
  • lite: 03aaba5f2c39be92acc9ae59d110b24e10b85d0a3d6cc14b82925d7ac92a19dd

v0.27.1 — Deep tool upgrades: the AI can now SEE the UI and tap precisely

UI automation breakthrough

The AI used to guess coordinates blindly. Now it's a closed loop:

  • ua_find_text: lists every text element with coordinates and clickability (leave text empty to list all tappable items)
  • ua_tap_text: taps an element by its text ("tap the Login button") via the accessibility tree - far more reliable than coordinates
  • screen_ocr now returns per-line coordinates text @(x,y) by default, so the AI knows where things are and can tap precisely
  • Workflow: inspect UI -> tap by text -> verify with OCR. Real automation of any app.

Other deep upgrades

  • calculator: scientific functions (sin/cos/tan/sqrt/log/ln/floor/ceil/round, degrees), constants pi/e, percentages (200*15% = 30)
  • get_time: days_offset answers "what weekday is it 3 days from now"
  • write_document: append mode for multi-part long documents
  • media_control: status action returns the current track (title/artist/album/progress)
  • read_notifications: filter by time range (last N hours) and app name
  • fetch_rss: entries now include content summaries

63 built-in tools. Requires Accessibility + screen-capture permissions (Settings -> Permissions).

SHA-256:

  • full: 2762820e2825d8eae8490a66c384e61d72a5ae2274da8ff6ceb3756c39b9b41e
  • lite: 03aaba5f2c39be92acc9ae59d110b24e10b85d0a3d6cc14b82925d7ac92a19dd

v0.27.0

Choose a tag to compare

@Verlintas Verlintas released this 18 Sep 16:33

v0.27.0 — 六个新工具 + 四个工具强化 + 工程加固

新增工具(55 → 61)

  • create_calendar_event 日历日程:AI 帮你安排会议/日程(打开日历预填标题、时间、时长、地点,你确认后保存),无需任何权限
  • get_app_usage 应用使用时长:回答「我今天用了多久手机」「哪个应用用得最多」(需「使用情况访问」权限,含引导)
  • unit_convert 单位换算:长度/重量/温度/面积/速度/数据/时间,支持「公斤→磅」「摄氏度→华氏度」等中文说法,精确换算
  • search_contacts 联系人搜索:按姓名查号码(需通讯录权限,已加授权入口),配合拨号工具一句话打电话
  • list_files / read_text_file 文件浏览与读取:查看下载/文档目录中的文件与文本内容(安全白名单目录,≤1MB)

工具强化

  • device_info:新增 CPU 核数、内存占用、屏幕分辨率/DPI、充电状态、开机时长
  • set_volume:支持指定音量类型(媒体/铃声/通知/闹钟/通话)
  • list_installed_apps:显示应用版本号
  • get_weather:新增能见度、紫外线指数、降水量

工程与体验

  • 界面文案国际化补全:25+ 处此前遗漏的通知/错误提示(含 401/429/超时等错误映射)全部支持中英切换
  • 安全加固:网页读取拦截内网地址(SSRF 防护);提醒 ID 改用原子生成器(消除同毫秒冲突);外部分享文本长度限制
  • CI 上线:GitHub Actions 自动跑单元测试与双版本构建,每次提交自动验证

SHA-256:

  • full: 1e1925c30a4270823e18d397a1dd73ab7ccae07fd314158eca46ac160ee90d29
  • lite: 3d80bd4df47925c8e47aa2dd49c4d320da3bb7b593200a541bcb7641cc0a3742

v0.27.0 — Six new tools + four upgrades + engineering hardening

New tools (55 → 61)

  • create_calendar_event: the AI schedules events for you (opens the calendar pre-filled with title/time/duration/location; you confirm and save) - no permissions needed
  • get_app_usage: answers "how much phone time today" / "which app did I use most" (Usage access required, with guidance)
  • unit_convert: length/weight/temperature/area/speed/data/time, including Chinese phrasing like 公斤→磅, with exact factors
  • search_contacts: look up phone numbers by name (Contacts permission with a new Settings entry); pairs with the dialer tool
  • list_files / read_text_file: browse and read files in Downloads/Documents (safe allow-listed directories, ≤1MB text)

Tool upgrades

  • device_info: CPU cores, memory, screen resolution/DPI, charging state, uptime
  • set_volume: stream selector (media/ring/notification/alarm/call)
  • list_installed_apps: shows app version
  • get_weather: adds visibility, UV index, precipitation

Engineering & UX

  • i18n completion: 25+ previously hard-coded notifications/errors (including the 401/429/timeout error mapping) now follow the language setting
  • Security hardening: SSRF guard blocks private-network URLs in web fetching; reminder IDs use an atomic generator (no same-millisecond collisions); shared-text length capped
  • CI online: GitHub Actions runs unit tests and both flavor builds on every push

SHA-256:

  • full: 1e1925c30a4270823e18d397a1dd73ab7ccae07fd314158eca46ac160ee90d29
  • lite: 3d80bd4df47925c8e47aa2dd49c4d320da3bb7b593200a541bcb7641cc0a3742