File tools start a native helper process per call and send file bytes as Base64 JSON
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- desktop
Direzione di ricerca
Start in src/main/tools/file_operations.ts, where readProjectFile and changeProjectFiles spawn the file-helper process, and compare with how sandbox-helper keeps a long-lived process and exchanges line-delimited requests. Time one edit before changing anything, since the issue asks for measurement first. Done means either a measured case for the change with a chosen approach (persistent helper or binary framing), or a note that the cost is too small to justify it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Left over from #297 (its third point; the size caps are fixed in 7383b07).
Every readProjectFile and changeProjectFiles call in src/main/tools/file_operations.ts spawns a new file-helper process and sends the before and after bytes as Base64 inside one JSON string, built and parsed on the main thread. With files now capped at 16 MB this cannot exhaust memory, but a large edit still costs a process start plus about 4/3 of the file size in Base64 on each side, and edit_file reads the file and then changes it, so two processes per edit.
Possible fix
- Keep one
file-helperprocess per project for the session and send it line-delimited requests, likesandbox-helper, restarting it if it exits. - Or send file bytes in a length-prefixed binary frame instead of Base64 JSON.
Measure first: if a typical edit spends little time here, this is not worth the extra state.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 2
- Merge medio
- 8h 28m
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PierrunoYT/patch
-
enhancement priority: low severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PierrunoYT/patch#305 ·
I maintainer di solito rispondono entro 1 giorno
-
security: isAppPageUrl checks devRendererUrl with startsWith instead of comparing parsed URL originsApertapriority: low security severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PierrunoYT/patch#300 ·
I maintainer di solito rispondono entro 1 giorno
-
Claude Code chats: tool calls made inside Claude Code subagents leave cards that end as "(stopped)"Apertabug priority: low severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
PierrunoYT/patch#289 ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority: medium severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PierrunoYT/patch#285 ·
I maintainer di solito rispondono entro 1 giorno
-
priority: medium security severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
PierrunoYT/patch#283 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PierrunoYT/patch
Issue simili
-
Add: Yemen Education SDApertastreams:add
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/rocketmq-dashboard#6872 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
interledger/publisher-tools#931 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ARTPARK-SAHAI-ORG/calibrate-frontend#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
fab-geocommuns/RNB-site#539 ·
I maintainer di solito rispondono entro 2 giorni