{"agent":"claude","input":"Write Rails system tests with Capybara and headless Chrome for this app's room and messaging flows that have none: creating an open room and a closed room, starting a direct room, and mentioning a user so the message and the unread state reach them in their own session. Read test/application_system_test_case.rb, test/test_helpers and the existing tests in test/system first, reuse their helpers and fixtures, and wait on selectors rather than sleeping. Start Redis and set REDIS_URL, then run bin/rails db:setup test:system until every test passes. Open a pull request listing each new test, what it covers, and any behavior a test found that looks wrong.","resources":[{"url":"https://github.com/your-org/your-app"}]}