fix: Fase 0 — Estabilitat del Fork (7 stability patches)#1
Open
jaumemir wants to merge 1 commit into
Open
Conversation
… reads Replace `for line in f` iterator with `readline()`-based loop that checks for a trailing newline before processing. Tracks `safe_position` only after complete lines so partial writes from the subprocess never advance the read pointer past unfinished data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Hardening pass resolving 7 stability issues identified in the enterprise roadmap (2026-04-26):
_read_action_logpartial JSONL reads;safe_positiononly advances on complete lines ending with\nget_all_edgesto 5000 items with CypherLIMITto prevent unbounded RAM growth on large graphsfinallyblock; guardagent_idagainst None<tool_result>blocks from LLM responses to prevent ReAct hallucination loopsTypeError: string indices must be integersactive_task_idtoproject.json;MainView.vuereconnects polling after browser refreshsimulationRequirementtosessionStorage; friendly redirect error when files are lost on refreshTest plan
cd backend && uv run pytest tests/ -v— 10 new tests green (1 pre-existing env failure acceptable)cd frontend && npm run build— no errors