fix(agent): normalize nil args and improve error handling in FormatArgsJSON
- Return fmt.Sprintf fallback instead of {} on encoding errors to preserve visibility
- Normalize nil to empty map in FormatArgsJSON for consistent output
- Remove redundant nil check in toolFeedbackArgsPreview wrapper
- Update test expectation: nil args now return {} not null
This commit is contained in:
parent
8dca2a1319
commit
38baf1ccd0
1 changed files with 2 additions and 2 deletions
Loading…
Reference in a new issue