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

Aberta
#2,705 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
12/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
2k
Forks
301
Merge médio
3d 14h
PRs com merge (30d)
103

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Zoo-Code-Org/Zoo-Code

Todas as issues de Zoo-Code-Org/Zoo-Code

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.