feat: add server time to obsidian connect responses and enhance error handling

- Included server_time_utc in the connect response schema for better synchronization.
- Updated obsidian_connect function to set server_time_utc during connection handling.
- Enhanced integration tests to verify the presence of server_time_utc in responses.
- Improved connectivity status recovery in the sync engine for better error management.
This commit is contained in:
Anish Sarkar 2026-04-25 03:57:07 +05:30
parent 937965b335
commit 02795e08e3
6 changed files with 101 additions and 25 deletions

View file

@ -343,6 +343,7 @@ class TestWireContractSmoke:
assert connect_resp.connector_id > 0
assert connect_resp.vault_id == vault_id
assert "sync" in connect_resp.capabilities
assert connect_resp.server_time_utc is not None
# 2. /sync — stub the indexer so the call doesn't drag the LLM /
# embedding pipeline in. We're testing the wire contract, not the