This repository was archived by the owner on May 23, 2026. It is now read-only.
Repository navigation
v0.7.4 — Concurrency & Info Exposure Fixes
Security (Medium)
Addresses remaining Medium-severity findings from code review:
- session.Records data race:
sessionMuguards append (agent loop goroutine) and range (Wails bindings likeGetLLMStatus) - guardians map rebuild race:
guardiansMu(RWMutex) protects all read paths (GetTools,buildToolDefs,handleToolCallMCP dispatch) duringrestartGuardiansrebuild - HTTP error body exposure: Truncated to 512 bytes via
io.LimitReader— prevents internal server details from leaking into LLM context or logs - osascript path injection:
%qquoting for temp file path — prevents injection via poisonedTMPDIR
All tests pass with -race flag.
Full changelog: https://github.com/nlink-jp/shell-agent/blob/main/CHANGELOG.md