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
fix: agent's non-JSON output goes to the log verbatim #883
src-tauri/crates/mas-agent/src/acp.rs:288 logs every non-JSON stdout line from the agent harness, in full, at DEBUG:
tracing::debug!(line = %line,"ignoring a non-JSON line from the agent");
The file log records DEBUG. A harness's stray output can be anything: SQL it's about to run, a quoted query result, or a token it echoes. That text bypasses the redaction added in #875, because mas-agent doesn't depend on mas-core's redactor.
Fix
Log the line's length and the first few characters at most, for example len = line.len(), and drop the content. If the full line is useful while debugging a harness, log it at TRACE, which the file filter excludes for mas_agent once the target is set explicitly. Add a unit test with a captured subscriber, like mas-core's log_redaction tests.
Activity
fix: log only the length of agent non-JSON lines