fix: cat() on deleted file returns instantly instead of timing out
Root cause: two separate silent-failure bugs caused 15s stalls on file-not-found:

1. agent-node/node.py _push_file(): when a READ arrives for a missing file,
   silently returned without sending any response. The Hub journal sat waiting
   for the full 15s timeout.
   Fix: send ERROR SyncStatus back immediately with task_id so the journal
   resolves at once.

2. ai-hub/assistant.py cat(): after the mirror fast-path found no file, it
   fell through and sent a READ gRPC to the node anyway, compounding the wait.
   Fix: short-circuit with {error: File not found} when the file is absent
   from the session mirror — no node round-trip needed.

test: added Case 9 (TestSmallFileSync) — asserts that cat() on a freshly
deleted file resolves in < 3s on both nodes (guard against regression).
1 parent 8513b7b commit cdd09837f0661080f4ccf607e0a44e2d12883a2f
@Antigravity AI Antigravity AI authored 12 hours ago
Showing 3 changed files
View
agent-node/src/agent_node/node.py
View
ai-hub/app/core/grpc/services/assistant.py
View
ai-hub/integration_tests/test_file_sync.py