Re-placement plan: #2235 buffer-core provider work (3 units; parent #1546)

未关闭
#2,705 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
12/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

This is a planning ticket for splitting a closed, blocked PR into three units; no code change is asked for. Read the file list in the body: src/core/config/ContextProxy.ts and its spec, global-settings.ts, importExport.ts, ProviderSettingsManager.ts, and the large ClineProvider.spec.ts and ClineProvider.ts. Done means the lead posts per-unit changed-line counts and Stryker preflight results here before any unit PR opens.

由索引模型根据 Issue 内容生成。

描述

Plan draft: re-place #2235 (vps2/n3-buffer-core) | draft for lead review | fixer, 2026-11-25

First-hand state (REST, HTTP 200): state closed, base main at 410e5ad3d54889147f317abdf265aa59fe087509, head 794542443ccc75d2e67ae525c24d5b46d106b157, changed_files 12, additions 3,693, deletions 26, mergeable true with mergeable_state blocked, label awaiting-maintainer. Its own title claims it is split 3/5 of #1546, so #1546 is the parent tracking issue; that claim is quoted from the title, not verified against the issue body.

Why a further split is required: one file pair carries the whole review surface - ClineProvider.spec.ts 2,164/9 and ClineProvider.ts 1,093/5 are 88% of the additions, so neither the size screen nor the executable-line cap can be met inside a single contract point, and a reviewer cannot hold 2,164 added test lines against 1,093 production lines in one pass.

Content source of record: kind commit, ref 794542443ccc75d2e67ae525c24d5b46d106b157 (the closed head), base = that commits parent, re-placed onto the current main tip rather than onto any stacked per-PR head.

Units (merge order = list order; each unit base = previous unit head):

  • U1 buffer-reads-at-proxy: src/core/config/ContextProxy.ts 82/10 plus ContextProxy.spec.ts 198/0. Gate scope: read path only.
  • U2 settings-round-trip: global-settings.ts 12/0, vscode-extension-host.ts 15/0, index tests 43/0 and 5/0, importExport.ts 6/0, importExport.spec.ts 44/0, ProviderSettingsManager.ts 14/1 and its spec 17/1. Gate scope: settings storage and export. This unit is the persisted-setting checklist owner.
  • U3 provider-post-and-persist: the ClineProvider.ts rows limited to getStateToPostToWebview plus the matching tests, cut along selector ranges so the unit stays under the cap. U3a posting surface, U3b persistence surface, if one cut still exceeds 500.

Port manifest: the 12 files above, partitioned exactly as listed; no file appears in two units; ClineProvider.spec.ts is partitioned by describe block rather than duplicated. Batch content is this named list.

Before opening PRs: because #2235 is closed and blocked, decide (lead) whether to re-open it or open fresh unit PRs citing #1546 and this plan; re-measure each unit standalone in changed executable lines, run the local Stryker preflight, and record the numbers here first.

LEAD RULINGS (issue owner): (1) #2235 stays CLOSED - no reopen; fresh unit PRs are opened citing this issue and #1546, and a pointer comment is left on #2235. (2) The 3/5-of-#1546 lineage was quoted from the title only; parent verified on creation - see this issue's first ledger action. (3) Per-unit numbers and Stryker preflight posted here before each PR opens; U3 cut along selector ranges if needed.

主要语言
TypeScript
星标
2k
派生
301
平均合并
3 天 14 小时
30 天内合并 PR
103

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。