Context
PR #367 (issue #362) added full runtime parameter support to ReactAgent (dry_run, verbose, on_event, debug, output_logger, fix_coordinator). Unit test coverage is solid (60 tests), but end-to-end CLI integration tests are missing.
These tests would exercise the full path from CLI → runtime → ReactAgent, catching wiring issues that unit tests with mocked dependencies can't.
Integration Tests to Add
1. Verbose mode with ReactAgent engine
cf work start <id> --execute --verbose --engine react
- Verify stdout contains
[ReactAgent] prefixed progress messages
- Verify output logger captures the same messages (for
cf work follow)
- Compare behavior parity with plan-based agent verbose mode
2. Dry-run mode with ReactAgent engine
cf work start <id> --execute --dry-run --engine react
- Verify no files are created or modified in the workspace
- Verify
[DRY RUN] stub results appear in output
- Verify read tools (read_file, list_files, search_codebase, run_tests) still execute
- Verify unknown tools are blocked (fail-safe default)
3. Streaming with cf work follow using ReactAgent
cf work start <id> --execute --engine react &
cf work follow <id>
- Verify SSE events are emitted during ReactAgent execution
- Verify
output.log is written in real-time via RunOutputLogger
- Verify stream closes cleanly on task completion
Acceptance Criteria
Related
Context
PR #367 (issue #362) added full runtime parameter support to ReactAgent (dry_run, verbose, on_event, debug, output_logger, fix_coordinator). Unit test coverage is solid (60 tests), but end-to-end CLI integration tests are missing.
These tests would exercise the full path from CLI → runtime → ReactAgent, catching wiring issues that unit tests with mocked dependencies can't.
Integration Tests to Add
1. Verbose mode with ReactAgent engine
[ReactAgent]prefixed progress messagescf work follow)2. Dry-run mode with ReactAgent engine
[DRY RUN]stub results appear in output3. Streaming with
cf work followusing ReactAgentoutput.logis written in real-time via RunOutputLoggerAcceptance Criteria
@pytest.mark.v2Related