Skip to content

LineCode Pro v2.2.6

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 09:13
· 2 commits to master since this release
Immutable release. Only release title and notes can be modified.
779ec9a

LineCode Pro v2.2.6

版本信息

  • 版本名称: v2.2.6
  • 版本号: 58

Prompt and context

  • The system prompt is fixed - it no longer changes with the selected model, the session mode or the plan. Everything that varies (switches, permission, workspace, plan, memory) now arrives as a separate context message in the conversation, so every request of a conversation sends the same prompt bytes.
  • Session modes became switches - chat, plan and phone control are independent toggles that can be combined instead of one exclusive choice. Read-only permission still rules out phone control, and /chat, /plan and /control toggle their switch while /agent turns all of them off.
  • Context compaction keeps a stable boundary - a conversation is condensed once when it crosses the threshold, the summary replaces the oldest range behind a persisted boundary, and the retained tail is never slid. Previously every turn sent only the last 16 messages and re-summarized them, which also made almost every request a cache miss.
  • Prompt caching is wired explicitly - Anthropic requests carry cache_control breakpoints on the system prompt, the last tool and the last message, while OpenAI-compatible and Codex requests carry the conversation id as prompt_cache_key. The tool catalog is identical in every mode, so switching a mode no longer rewrites the tool block.
  • Unfinished plans wake the agent - a finished turn with unfinished plan items starts one more turn (at most twice per user message) so the agent checks the plan instead of stopping silently.

Agent loop

  • Three silent stalls fixed - denying a tool approval never ended the turn, a tool batch that failed midway never continued, and a request that could not even be built left the loop waiting for a response that was never sent.
  • Loop watchdog - when the loop has no request in flight and stops making progress, it writes a diagnostic entry (state, every thread's stack, the request and response bodies) to the error log and re-arms the model call, failing the turn after two restarts. A tool batch that hangs is reported once and never re-executed.

Notifications

  • Task notifications - optional system notifications for a completed task, an interrupted task and a tool batch waiting for confirmation, each with its own switch in settings.

Release

  • Version 2.2.6 (versionCode 58).

提示词与上下文

  • 系统提示词固定 - 不再随所选模型、会话模式或计划变化。所有会变的内容(开关、权限、工作区、计划、记忆)改为对话里独立的一条上下文消息,因此同一会话每次请求发送的提示词字节完全一致。
  • 会话模式改为开关 - 问答、计划、手机控制是三个可任意组合的独立开关,不再只能选一个。只读权限仍然不允许开启手机控制;/chat、/plan、/control 切换对应开关,/agent 关闭全部。
  • 上下文压缩使用稳定边界 - 会话越过阈值时只压缩一次,摘要替换最老的一段并记录持久化边界,保留的尾部不会滑动。此前每轮只发送最后 16 条消息并重新生成摘要,这也让几乎每次请求都无法命中缓存。
  • 提示词缓存显式生效 - Anthropic 请求在系统提示词、最后一个工具和最后一条消息上带 cache_control 断点;OpenAI 兼容与 Codex 请求把会话 id 作为 prompt_cache_key。工具目录在所有模式下保持一致,切换模式不再重写工具块。
  • 未完成的计划会唤醒 Agent - 一轮结束时如果计划还有未完成项,会在同一条用户消息内最多再唤醒两次,让 Agent 检查计划而不是悄悄停下。

Agent Loop

  • 修复三处静默中断 - 拒绝工具审批后回合不结束、工具批次中途失败后不再继续、请求构造失败时循环一直在等一个根本没发出的响应。
  • 新增看门狗 - 当循环没有在飞的请求且长时间没有进展时,会把诊断信息(状态、全部线程栈、请求体与响应体)写入错误日志并重新发起模型调用,连续两次仍无法恢复才结束回合。工具批次卡住只记录一次,不会重跑工具。

通知

  • 任务通知 - 任务完成、任务中断、工具批次等待确认时可选发送系统通知,每项在设置里单独开关。

发布

  • 版本 2.2.6(versionCode 58)。

下载说明

  • LineCode Pro 2.2.6-slim.APK - 默认精简版 Release APK
  • LineCode Pro 2.2.6-slim.APK.idsig - APK 签名文件