fix: prefix ao send messages with sender session#85
Conversation
Greptile SummaryThis PR adds two related features: (1)
Confidence Score: 5/5Safe to merge — the sender-prefix logic is a narrow, well-isolated env-var read, and the prompt-injection path fails cleanly before any session is persisted. The send.go change is minimal: trim, check, prepend — no state mutations. The manager.go refactor is sound: buildSpawnPrompt runs before CreateSession, so a store error during orchestrator lookup leaves no orphaned session row. activeOrchestratorSessionID returns on the first live match, which is deterministic for the common case. All new code paths have direct test coverage. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "fix(session): return first active orches..." | Re-trigger Greptile |
Summary
ao senddaemon messages with[from <AO_SESSION_ID>]whenAO_SESSION_IDis non-blankTests
go test ./internal/cligo test ./...(fails inbackend/internal/terminal: zellij IPC socket path is too long in this environment)