Separate Companion message history from pending inbox

Default to retained history with a separate pending count, and add persistent display.inbox CLI modes for history, pending, and unread. Preserve browsing while clients are connected and show the active USB or Bluetooth connection.

Fixes #5
This commit is contained in:
mikecarper committed 2026-09-10 21:42:57 -07:00
1 parent 96ef0ae905
commit bbfe26b01d
26 files changed
+1178 -666

No files matched your search

+5 -1
View File
@@ -119,10 +119,14 @@ public:
}
bool isBluetoothConnected() const {
return isInterfaceConnected(InterfaceType::Bluetooth);
}
bool isInterfaceConnected(InterfaceType type) const {
if (!_enabled) return false;
for (auto iface : _interfaces) {
if (iface.instance && iface.type == InterfaceType::Bluetooth
if (iface.instance && iface.type == type
&& iface.instance->isEnabled() && iface.instance->isConnected()) {
return true;
}