For Commit: 481617e - Windows VT Support Created: 2026-01-10
- Windows 10 build 1511 or later (for VT support)
- Python 3.10 or later installed
- Git installed
- Access to cmd.exe, PowerShell, and Windows Terminal
# Clone repository
git clone <repository_url>
cd Basic-Agent-Chat-Loop
# Ensure on correct commit
git checkout 481617e
# Install dependencies
python -m pip install -e .[dev]
# Verify installation
python -c "import basic_agent_chat_loop; print('✓ Package installed')"python test_windows_compatibility.pyExpected Result:
Test Summary
Tests Run: 16
Successes: 16
Failures: 0
Errors: 0
Success Rate: 100.0%
Pass Criteria: All 16 tests must pass
- All tests passed
- No errors or warnings displayed
python test_windows_vt.pyExpected Output:
- Platform detected as "win32"
-
enable_windows_vt_mode()returnsTrue - Colored text displays correctly (not raw escape codes)
- Rich library integration shows colored output
Visual Verification:
- Red text appears red
- Green text appears green
- Yellow text appears yellow
- Blue text appears blue
- Cyan text appears cyan
- No
[31mor similar escape codes visible
python -m pytest tests/ -vExpected Result:
- All 510 tests pass
- No new failures compared to baseline
- No Windows-specific test failures
Note: This may take several minutes
Setup:
- Open cmd.exe (Windows + R, type
cmd) - Navigate to project directory
- Activate virtual environment (if used)
Test Steps:
REM Test basic functionality
python -c "from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode; print('VT Mode:', enable_windows_vt_mode())"Expected: Output shows VT Mode: True
- Test passed
Visual Test:
python test_windows_vt.pyExpected: Colored text displays correctly
- Colors render properly
- No escape codes visible as text
- No errors or warnings
Setup:
- Open PowerShell (Windows + X, then I)
- Navigate to project directory
- Set execution policy if needed:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Test Steps:
# Test VT mode
python -c "from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode; print('VT Mode:', enable_windows_vt_mode())"Expected: Output shows VT Mode: True
- Test passed
Visual Test:
python test_windows_vt.pyExpected: Colors render correctly
- All colors display properly
- Rich library output looks good
- No warnings
Setup:
- Open Windows Terminal
- Create new PowerShell or cmd.exe tab
- Navigate to project directory
Test Steps:
python test_windows_vt.pyExpected: Best color rendering
- All colors vibrant and correct
- Rich library formatting perfect
- No issues
Setup:
- Open PowerShell 7+ (if installed)
- Navigate to project directory
Test Steps:
python test_windows_vt.pyExpected: Same as PowerShell 5.1
- VT mode enabled
- Colors display correctly
Test: Verify VT mode is called at startup
# Run with a test agent (if available)
python -m basic_agent_chat_loop.cli --helpExpected:
- No errors during startup
- Help text displays with colored formatting
- VT mode enabled silently
Test: Verify readline history works on Windows
python -c "from basic_agent_chat_loop.components import input_handler; print('Readline:', input_handler.READLINE_AVAILABLE)"Expected: Output shows Readline: True
- pyreadline3 is available
- No import errors
Test: Simulate VT mode failure
- Run on Windows 7 or 8.1 (if available)
- Or mock GetConsoleMode failure
Expected:
- Application starts normally
- No crashes or exceptions
- Function returns
Falsegracefully - Colors may not render (acceptable)
Platform: Windows 7, 8, 8.1 (if available)
Test Steps:
python test_windows_vt.pyExpected:
-
enable_windows_vt_mode()returnsFalse - No crashes or errors
- Application continues to work
- Colors may show as escape codes (acceptable degradation)
Test: Run as limited user (non-admin)
Test Steps:
- Create limited user account
- Login as limited user
- Run tests
Expected:
- VT mode enablement succeeds or fails gracefully
- No permission errors
- Application works normally
Test: Verify VT mode works across multiple instances
Test Steps:
- Open 3 separate cmd.exe windows
- Run test in each window simultaneously
Expected:
- All instances show colors correctly
- No conflicts or race conditions
- Each window independent
Test: Measure startup overhead
import time
start = time.perf_counter()
from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode
result = enable_windows_vt_mode()
elapsed = time.perf_counter() - start
print(f"VT Mode: {result}, Time: {elapsed*1000:.2f}ms")Expected:
- Execution time < 1ms
- No noticeable delay
- VT mode returns
True
Test: Check memory usage
# Before enabling VT
python -c "import psutil, os; print(f'Memory: {psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024:.2f} MB')"
# After enabling VT
python -c "from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode; import psutil, os; enable_windows_vt_mode(); print(f'Memory: {psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024:.2f} MB')"Expected:
- Memory increase < 1 MB
- No memory leaks
Test: Verify no features broken
Critical Features to Test:
- Agent loading works
- Configuration management works
- Command history works (pyreadline3)
- Alias management works
- Session management works
- All existing commands work
Test: Verify changes don't affect other platforms
If you have access to macOS/Linux:
# Run same tests on macOS/Linux
python test_windows_compatibility.py
python test_windows_vt.py
python -m pytest tests/ -vExpected:
- All tests pass on non-Windows platforms
- No platform-specific failures
- Performance unchanged
If you encounter any issues, please report using this template:
### Issue Description
[Brief description of the problem]
### Environment
- Windows Version: [e.g., Windows 10 build 19045]
- Python Version: [e.g., 3.10.5]
- Terminal: [cmd.exe / PowerShell / Windows Terminal]
- Commit: 481617e
### Steps to Reproduce
1. [First step]
2. [Second step]
3. [...]
### Expected Behavior
[What should happen]
### Actual Behavior
[What actually happened]
### Screenshots/Logs
[Attach screenshots or error logs]
### VT Mode Status
[Run: python -c "from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode; print(enable_windows_vt_mode())"]
Result: [True/False]
### Additional Context
[Any other relevant information]- All automated tests passed (Suite 1)
- Manual terminal tests passed (Suite 2)
- Integration tests passed (Suite 3)
- Edge cases handled correctly (Suite 4)
- Performance acceptable (Suite 5)
- No regressions found (Suite 6)
- No critical issues
- No blocking issues
- Minor issues documented (if any)
- Test results documented
- Screenshots captured (if needed)
- Issues reported (if any)
- Ready for production deployment
- Recommends merge to main branch
Tester Name: ___________________ Date Completed: ___________________ Signature: ___________________
# Run all automated tests
python test_windows_compatibility.py && python test_windows_vt.py && python -m pytest tests/ -v
# Test VT mode quickly
python -c "from basic_agent_chat_loop.chat_loop import enable_windows_vt_mode; print('VT:', enable_windows_vt_mode())"
# Check Python version
python --version
# Check Windows version
verFor Questions: Refer to WINDOWS_COMPATIBILITY_REPORT.md for detailed analysis For Summary: See WINDOWS_COMPATIBILITY_SUMMARY.md for quick overview