[4/5] Add remote codebase incremental sync#11094
Conversation
4ccdce9 to
2876421
Compare
a5a05f9 to
a103d4c
Compare
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a103d4c to
3dce8a8
Compare
2876421 to
a9e4594
Compare
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR adds a remote-server RPC for triggering codebase incremental syncs, wires it through the client/manager/server layers, and updates local index status reporting so synced indexes with pending file changes surface as stale.
Concerns
- The stale-index search path returns an indexing response before verifying a connected remote client exists, so a race with disconnects or identity changes can leave the request unqueued while the user sees an indexing state.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
| .active_repo_availability(&session_context, requested_codebase_path.as_deref()); | ||
| match availability { | ||
| RemoteCodebaseSearchAvailability::Ready(search_context) => { | ||
| if search_context.is_stale { |
There was a problem hiding this comment.
trigger_codebase_incremental_sync just logs and returns, but the search still reports Indexing, so no sync is queued and the user does not see the connection error. Verify a current client exists, or make the trigger report failure, before returning Indexing.
67a3bcb to
c67cd9c
Compare
3dce8a8 to
ddfaa78
Compare
Co-Authored-By: Oz <oz-agent@warp.dev>
ddfaa78 to
8e1987d
Compare
c67cd9c to
4ff8b43
Compare

Description
Adds the remote codebase incremental-sync path:
TriggerCodebaseIncrementalSyncremote-server RPC.This PR stacks on the duplicate-status-push cleanup.
Testing
Added unit tests
./script/runScreenshots / Videos
https://www.loom.com/share/f04143f53c0642cca9c50222a6191ddf
Agent Mode