disclaw/tests
Nick Tabeling 714e0c01e5
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fix(DIS-102): sanitize response before DB storage to break path feedback loop
The root cause was twofold:
1. Raw (unsanitized) agent responses were stored in the conversation
   history DB. On subsequent calls, these paths were fed back to the
   agent as context, causing it to reproduce full paths regardless of
   Discord-side sanitization.
2. repoRoot (workspace_path) was not passed to sanitizeForDiscord,
   so workspace-specific paths were only partially masked via the
   home directory fallback.

Fix: sanitize the full response once before both sending to Discord
and storing in the DB. Pass workspace_path as repoRoot for precise
path replacement. Add Windows path tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:02:17 +02:00
..
fixtures feat(runner): add --bare and --append-system-prompt-file flags 2026-04-09 11:22:44 +02:00
integration refactor(DIS-108): extract DB schema to src/db/schema.sql (SSOT) 2026-04-09 17:50:14 +02:00
unit fix(DIS-102): sanitize response before DB storage to break path feedback loop 2026-04-10 10:02:17 +02:00