Repository navigation
feat: TASK065 S11 遗留项收尾(/theme 持久化闭环 + @ 补全 TTL 惰性重建) - #458
Merged
Merged
Conversation
liuqihonggit
enabled auto-merge (squash)
October 22, 2026 17:18
- /theme 配置持久化(遗留#1):ReplShell 增 saveThemeAsync 构造委托(对齐 clipboard/onStopTask 注入先例),合法切换 fire-and-forget 写回(异常静默降级会话级 — 通知已发不打扰用户);Host 注入 IConfigurationService.SetAsync("theme") 与 LoadThemeNameAsync 形成启动-切换-重启闭环 - @ 补全目录变更刷新(遗留#4 轻量形态):AtFileSuggester 索引 TTL 30s 惰性重建(EnsureIndexed 时间戳判定 + 假时钟注入可测),替代 FileSystemWatcher 零接线成本;显式 Invalidate 立即重建通道保留 - 未决#2(输入泵 stdin 原始流迁移)与 #3(/theme 双通道统一)仍开放 — 独立任务/待裁决 验证: 新测试 9 用例(TTL 四用例 + 主题委托三用例含异常降级)+ 全量 1634 + 111 全绿
- 裁决(ADR 0148 proposed):双通道分工明确而非二选一 — CLI/headless 走引擎侧命令(Selector/清屏语义在其宿主正确),TUI 走本地拦截(色板换帧不清屏);消除跨通道不一致
- ThemeSelection 收编七名清单(auto 首位,对齐引擎侧 ThemeCommand 枚举序)— TUI 拦截自动获得 auto
- auto 解析唯一数据源:ResolveAutoName(hour)(6-18 含 6 不含 18 light,其余 dark)+ Resolve 小时注入重载;Host LoadThemeNameAsync 重复小时判定收编(消费方禁重写)
- /theme auto 持久化写原名(auto 字面量非解析值)— 与引擎侧 SetAsync("theme","auto") 语义一致,重启后加载方再解析
- 顺带根治 KillRing 静态单例跨类并行碰撞 flaky(InputBufferWordTests/InputUndoTests 挂同 Collection 串行 — 六连 1667 全绿实证)
验证: 主题域 30/30 + 全量 1667 + 111 全绿(六连复跑)
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.
Summary(两提交合 squash)
提交一:S11 遗留项收尾
提交二:S11 遗留#3 双通道裁决(ADR 0148 proposed)
Test plan