Skip to content

feat(android): Dimo v0.5.0 协议与品牌对齐、连接稳定性根治及协作空间长对话优化 - #6

Open
DorJay007 wants to merge 6 commits into
DimoADE:masterfrom
DorJay007:feat/dimo-v0.5.0-companion
Open

DorJay007 wants to merge 6 commits into
DimoADE:masterfrom
DorJay007:feat/dimo-v0.5.0-companion

Conversation

@DorJay007

Copy link
Copy Markdown

Summary

Aligns the Android Companion (v0.5.0 / versionCode = 23, superseding #4) with the Dimo v0.5.0 wire protocol & dimo-ai.com infrastructure, fixes cellular/relay/E2EE reconnect races + duplicate Local Host entries, and optimizes Collaboration Space long conversations.

Android Companion (v0.5.0 / build 23)
├── companion-core/
│   ├── PairingInvitation, PairingClient, E2eeSessionManager, HostApi
│   │     # dimo-pairing: / dimo.v1 / dimo.token.* / x-dimo-* E2EE & 401/412 session self-healing
│   │     # https://dimo-ai.com defaults + automatic legacy vibex.xforever.xin profile migration
│   ├── ConnectionPolicy & AccountDesktops
│   │     # Skip 508-IP LAN scan on cellular (rmnet*/ccmni*/clat* -> 0ms direct cloud relay)
│   │     # Filter local-desktop/session:* placeholders, parallel /t/<id>/health probe & ghost dedup
│   ├── BoardAndCollabModels
│   │     # sinceSeq delta merge, beforeSeq backward pagination, O(1) reply map, <card>/<handoff> parser
│   └── HandoffSideChat & TimelineModels
│         # Engine handoff divider/picker, side-chat sheet, rate-limit recovery banner
└── app/
    ├── CompanionModel, EventSocket, OkHttpTransport
    │     # Mutex-serialized connect(), defer backoff reset to WebSocket onOpen, 60s write timeout
    │     # saved-hosts PUT signature dedup, group @ mention popup & idempotent operationId retry
    └── ui/CollabLongConversationComponents, CollaborationScreen, DesktopConnectDialog
          # Smart isNearBottom scroll (no hijack), "↓ N 条新消息" pill, 220dp collapsible Markdown bubbles
          # Full-Screen Reader & Expanded Composer sheets, full Dimo rebranding

Evidence

  • Before:
    • On 4G/5G cellular networks, LAN discovery scanned carrier private subnets (rmnet*/ccmni*) before falling back to relay; concurrent reconnect triggers and rotated Host E2EE keys caused 401/412 disconnect loops.
    • Account desktop picker showed duplicate Local Host entries for the same computer.
    • Collaboration Space re-downloaded 200 messages + members every 2.5s, lacked beforeSeq upward pagination, yanked scroll to bottom while reading history, and rendered long bot markdown/XML raw and uncollapsed.
  • After:
    • ./gradlew :companion-core:test --rerun-tasks :app:assembleRelease :app:assembleDebug: 14 suites / 110+ unit tests passed, 0 errors (CollabLongConversationTest, ConnectionPolicyTest, AccountDesktopsTest, MentionAndTimeoutTest, HandoffSideChatTest).
    • Verified live on HONOR DIO-AN00 over both LAN and https://dimo-ai.com cloud relay.

Merge Danger

Door: Two-way

SharedPreferences storage keys, paired credentials, and legacy vibex-pairing: QR fallbacks remain backward-compatible; CollaborationScreen.kt shrunk by ~190 lines via modular extraction into CollabLongConversationComponents.kt.

Blast Radius: Medium

Covers Companion transport/reconnect lifecycle, account desktop discovery, Collaboration Space chat UI, and Dimo user-facing copy.

DorJay and others added 6 commits November 13, 2026 02:14
…debar

The floating bottom bar covered the last item of long pages (退出登录) and was
hidden inside a conversation, leaving no way to reach 看板 / 协作空间 / 设置.
对话 / 看板 / 协作空间 / 设置 now sit at the top of one shared sidebar drawer,
reachable from every destination root, an open conversation, and the
not-connected empty state.

Co-Authored-By: BaoCode <[email protected]>
…oval guard, foreground mute, custom cloud node, and 15s LAN timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant