Skip to content

feat: workspace indexing progress reporting #5853

@kshitijk4poor

Description

@kshitijk4poor

Problem

Workspace indexing is synchronous with no progress indication. For large workspaces, indexing can take minutes with no feedback.

Research

  • Continue.dev: AsyncGenerator yielding progress updates (progress float + description). React progress bar in UI.
  • Khoj: BackgroundTasks for non-blocking re-indexing, no progress tracking.
  • PrivateGPT: Batch/parallel ingestion modes, no user-facing progress.

Proposed approach

  1. Add optional progress_callback: Callable[[int, int, str], None] to index_workspace_knowledgebase()
  2. CLI /workspace index: print progress line (e.g., Indexing [12/45] docs/plan.md)
  3. hermes workspace index: same progress display
  4. For turn-scoped auto-indexing: no progress (fast due to debounce)
  5. For gateway: log progress at info level

Related

Part of workspace foundation (#5840)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havetype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions