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 摘要。