Remove room code and token pairing #32
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/remove-redundant-room-code-5b990d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There is only ever one TV per network, so the 6-digit room code and the token behind it added a pairing step without real value. Any phone on the same Wi-Fi now opens
http://<ip>:<port>/(or scans the QR) and controls the TV right away. Optional Host mode (ADR 0006) remains the way to limit what phones can do.Changes
/api/pair, its rate limit, and every token check (/api/*,/ws). Host key relay is kept (watchHostKeys).kara.tokenand a stale?t=from old QR links are cleaned up.roomCode/tokenstill decodes (ignoreUnknownKeys, covered by a test).Testing
./gradlew :app:compileDebugKotlin :app:testDebugUnitTest: pass (new test: API and WebSocket work without a token).remote: typecheck + build pass.Follow-up
docs/images/pair.pngstill shows the old dialog with the room code; it needs a fresh screenshot.Vi: Bỏ mã phòng, điện thoại cùng Wi-Fi mở địa chỉ TV là điều khiển được ngay