zeroclaw/tests
Nim G f812dbcb85
feat(channels): add message redaction API to Channel trait (#4458)
* feat(channels): add message redaction API to Channel trait

Add redact_message() method to Channel trait with default no-op implementation.
Implement for MatrixChannel using existing room.redact() SDK method.
Add comprehensive test coverage for trait default and Matrix implementation.

Changes:
- src/channels/traits.rs: Add redact_message() default method and test
- src/channels/matrix.rs: Implement redact_message() for MatrixChannel
- tests/integration/channel_matrix.rs: Add RedactMessage event, test channel impl, and lifecycle test

Tests added:
- default_redact_message_returns_success (trait default)
- redact_message_lifecycle (MatrixTestChannel)
- Updated minimal_channel_all_defaults_succeed

All tests pass. No breaking changes.

* test(channels): clarify redact_message test coverage

* fix(channels): use OwnedRoomId for matrix redact_message room lookup

RoomId is unsized (wraps str), so inlining .parse() in
get_room(&target_room.parse()?) fails to compile with the
channel-matrix feature. Use an intermediate OwnedRoomId binding,
matching the pattern used in send() and listen().
2026-03-24 01:43:41 -04:00
..
component feat(tools): enable internet access by default (#4270) 2026-03-22 19:07:12 -04:00
fixtures test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
integration feat(channels): add message redaction API to Channel trait (#4458) 2026-03-24 01:43:41 -04:00
live feat(runtime): add configurable reasoning effort (#3785) 2026-03-17 09:21:53 -04:00
manual fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-21 05:14:37 -04:00
support fix(memory): filter autosave noise and scope recall/store by session (#3695) 2026-03-16 16:36:35 -04:00
system test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_component.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_integration.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_live.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_system.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00