You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: diagnostics server — replace manual JSON write! with serde_json #2627
Activity
strawgate commentedon Apr 27, 2026
Verification (2026-04-27)
CONFIRMED: Issue still exists on main.
Verified on current main:
ffwd-diagnostics/src/diagnostics/server.rs:737-build_traces_body()still uses manualString+write!ffwd-diagnostics/src/diagnostics/server.rs:964-build_logs_body()same patternCurrent Code:
Reproduction:
No test needed - code is clearly visible at lines 737-900+ and 964+
Fix Plan:
serde_json::to_string()serde_json::to_string(&response)Priority: MEDIUM - Technical debt, but low risk
Verified by code inspection of server.rs:737 and 964
strawgate commentedon Apr 27, 2026
Verification (2026-04-27)
STATUS: CONFIRMED OPEN
Manual JSON construction found in ffwd-diagnostics/src/diagnostics/server.rs:
42 serde_json usages found, but these manual string operations are error-prone and hard to maintain.
Fix needed:
Replace manual write!/push_str JSON building with serde_json serialization to struct types.
Priority: MEDIUM (code quality, maintainability)