1.1 KiB
1.1 KiB
Deletion Log
2026-03-03 feature polish
- Scope:
backend/src/v1/agent/*andbackend/tests/unit/v1/agent/*only. - Candidate review source: scoped
refactor-cleanerrun for the directories above.
Executed cleanup
-
Merged duplicated newline validation logic in
backend/src/v1/agent/service.py.- Before: duplicated checks in
prepare_resume,stream_run,stream_resume. - After: centralized
_validate_no_newlineshelper. - Behavior impact: none (same validation semantics).
- Before: duplicated checks in
-
Merged duplicated SSE event string formatting in
backend/src/v1/agent/service.py.- Before: repeated
f"data: {json.dumps(...)}\n\n"fragments. - After: centralized
_sse_datahelper. - Behavior impact: none (same payload format).
- Before: repeated
Candidates not deleted (insufficient evidence)
backend/src/v1/agent/crewai_flow.py- Reason: candidate report suggested possible dead code, but no deletion was done in this polish pass because cross-module usage certainty was insufficient.
- Legacy
run()path inbackend/src/v1/agent/service.py- Reason: potentially still relied on by non-scope code paths; deletion deferred.