Skip to content

Inconsistent cloud sync - handleGetIndexingStatus skips sync #252

@Retengart

Description

@Retengart

Problem

handleSearchCode and handleIndexCodebase call syncIndexedCodebasesFromCloud() before operations, but handleGetIndexingStatus does not.

Current Behavior

// handlers.ts:144 - handleIndexCodebase
await this.syncIndexedCodebasesFromCloud();

// handlers.ts:414 - handleSearchCode  
await this.syncIndexedCodebasesFromCloud();

// handlers.ts:691 - handleGetIndexingStatus
// NO sync call

Impact

Status check may return stale/incorrect data compared to actual index/search operations.

Expected Behavior

Either:

  1. All handlers sync before operation (consistent but slower)
  2. No handlers sync inline (rely on background sync only)

Location

  • packages/mcp/src/handlers.ts:691-799

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions