feat(issue-14): connect Android operator terminal to hub #15
Labels
No labels
area/android
area/device
area/hardware
area/linux-hub
area/protocol
area/server
area/testing
area/ui
kind/bug
kind/chore
kind/docs
kind/feature
state/blocked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rznz/signal-lost!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/14-android-hub-client"
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?
Issue
Closes #14
Summary
The Java operator terminal now displays actual linux-hub state instead of predefined data. A saved server origin drives OkHttp GET and WebSocket connections; nested JSONObject decoding and connection-scoped state revisions reject stale updates. The screen shows phase, power/signal/alarm and connection status while preserving the physical panel's separate role.
One worker orders HTTP bootstrap, WS snapshots and reconnects. Attempts and lifecycle generations reject old callbacks; stopping/destroying the Activity cancels owned resources. Connection failures and malformed responses disconnect safely, with retries capped at ten seconds. Android 17 local-network permission is handled for the existing target SDK 37.
Acceptance Criteria
Verification
gradlew.bat testDebugUnitTest assembleDebug assembleDebugAndroidTest: passed; 16 JVM tests (7 parser/URLs, 5 revision/backoff, 4 real MockWebServer transport/lifecycle tests), both APKs built.gradlew.bat testDebugUnitTest assembleDebug lintDebug, thenassembleDebug lintDebugafter address-label cleanup: passed. No lint errors; two pre-existing scaffold warnings remain (window overdraw and missing launcher icon).OperatorLiveIntegrationTestpassed, 1 test in 152.315 s. Actual browser toggles changed Activity phase/power; owned hub stop/restart showed disconnection and recovery at revision 0. Activity recreate, background/resume and close/reopen with saved address passed.git diff --checkpassed. SDK/JDK/cache/APKs, credentials and local runtime files are outside tracked changes.Documentation and architecture
Depends on #10 / PR #12 for state_revision and broadcasts; real integration used its corrected runtime at
e569268. The browser simulator is #11 / PR #13 ata880198. Merge those dependencies first; then rebase this main-based branch and regenerate the shared indexes to preserve all tasks' projections.AI assistance
docs/prompts/14-android-hub-client.md.agents/work/tasks/14-android-hub-client/outcome.mdReview
feat/14-android-hub-clientmatches the issue.feat(issue-14): connect Android operator terminal to hub.The user explicitly authorized review and merge in the preceding conversation and resumed that instruction on 2026-10-27.
2026-10-27 integration verification
Rebased onto merged PRs #12 and #13. README/architecture combined and shared indexes/generated documentation rebuilt from all frozen outcomes. Android app source and test files are byte-for-byte unchanged by rebase. Hub/device pytest: 16 passed; panel tests: 10 passed; global secret/conflict checks passed.
The ordinary Android Gradle build on this macOS host cannot run because Android SDK is absent. As an additional check, compiled the unchanged client/model sources and all JVM tests using a temporary Java Gradle project with the exact declared dependencies: 16 tests passed, including real MockWebServer HTTP/WebSocket and lifecycle-generation cases. Temporary project: /private/tmp/sl-jvm-20261027; command: android/gradlew -p /private/tmp/sl-jvm-20261027 test. This does not rebuild the APK or repeat Activity instrumentation; previous successful APK/lint/emulator evidence above still applies.
ef52d7145fto3644ab5590No blocking findings. Reviewed issue criteria, nested parser, per-connection revision baseline, retry/lifecycle ownership and existing tests/emulator evidence. Rebase preserves Android app and tests exactly. Current verification: 16 JVM tests passed via separate Java Gradle harness with exact declared dependencies; Python 16/16 and Node 10/10 passed; secret/conflict checks passed. Ordinary Android build cannot run here without SDK; APK/lint and Activity instrumentation rely on the prior recorded successful run. Physical phone remains unverified. Reviewer account rznz differs from PR author dudll; user explicitly requested review and merge.