Repository navigation
Conversation
Build on review/native-rewind-core-codex. Preserve the tested full implementation from eec34bd with the same tree, while separating the core rewind review from runtime and file/session extensions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior and scope
Full companion to core rewind #610: named, negotiated runtime read/control APIs; safe idle steering; bounded native search; reversible archive/unarchive; attachment metadata; read-only queue discovery; and preview-token guarded reversal of one completed native file-change tool's recorded text patches in Git. No generic native RPC tunnel is exposed. File reversal preserves conversation history, index and unrelated edits, and fails closed for stale/unsafe/unsupported patches.
Replaces #597 after withdrawing the earlier submission. Refreshed on upstream main
202e66e63343ec4f5a5e35ab590251d813d129ca(2.2.2). It includes the core rewind implementation and all its follow-up fixes. Both PRs target main: review/merge core first, then refresh this full companion. The independent persistent queue proposal supplies write/start ownership and is deliberately not mixed into this branch. Rewind protocol/original implementation credit Nikita Ashikhmin's #508.Current-main integration
Local validation
Limits: No whole-workspace checkpoints, binary/shell/unrecorded-subagent reversal, full native queue automatic-turn ownership, realtime voice or complete Desktop UI parity. Native search may miss retained ancestor-rollout content. External writers remain outside adapter locks; Git checks narrow rather than eliminate OS-level races. Process-group cleanup cannot cover descendants that deliberately leave the group. A loopback provider/deny proxy is not an OS firewall.
中文
撤回旧 #597 后,基于主线
202e66e(2.2.2)重做完整增强 companion:包含同 ID 对话回退,并提供结构化运行读写、空闲 steering 协商、搜索、归档、附件元数据、只读队列查询和单工具文本补丁预览/反向应用。应先审核核心,再以合并后的基线刷新本分支;持久队列写入是独立提案。保留上游 sessionIndex 通知/删除语义和 app-server 恢复,避免双重 archive 路由;在互斥范围内恢复原生连接,自动恢复前拒绝未接管的队列。补齐 provider/close 和跨状态标题竞态;超时或未知修改结果不自动重试。
验证:Linux 全量 1664 通过/37 跳过,类型检查/构建通过;Windows 定向通过;双平台隔离真实原生各 18/18;六发行目标交叉编译和六项 POSIX 编译产物测试通过。Windows 上游基线失败保留,未声称真实账号/模型、ARM 实机或托管 CI 全绿。
文件反向应用不是完整 checkpoint;外部写入、脱离进程组的子进程、完整原生队列接管与 Desktop UI 等均不在保证内。
Extension-only diff from the included core.