Add fail-closed coverage for ask/approval surfaces, attachment ingest, multimodal routing, and child-agent spawn context. Main is still at e2d5f95e; this does not duplicate open coverage PRs #331–#337.
question: label before truncating, omit blank approval commands, and suppress provider debug payloads (raw stream part, response.*, obfuscation).YR==), plus oversize single/combined/count/upload limits.brief mode, maps only retired role aliases, and rejects malformed child reports.test/shared/ask-prompt.test.tstest/shared/projection-diagnostics.test.tstest/shared/attachments-decode.test.tstest/shared/multimodal-mime.test.tstest/session/attachment-guidance-policy.test.tstest/shared/agent-spawn-context.test.tsThese helpers sit on user-visible ask/approval UI, journal/feed persistence, file ingest, and child-agent context. A silent change could leak raw provider payloads into questions, accept malformed attachments, send binary media to the wrong provider, or spawn a brief-mode agent without a briefing. Dedicated unit tests lock those gates without going through the full session harness.
test/platform-boundary.test.ts greenbun run check, bun run typecheck, bun run docs:check, and biome check on touched files are cleanSign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 4 months ago
test: cover ask sanitization, attachment decode, and spawn context
#338 main ← cursor/missing-test-coverage-f2bc
Updated 2 weeks ago