Skip to content

feat: make watch startup sync opt-in#1269

Open
gojun077 wants to merge 1 commit into
CodeGraphContext:mainfrom
gojun077:feat/1268-cgc-watch-startup-sync-optional
Open

feat: make watch startup sync opt-in#1269
gojun077 wants to merge 1 commit into
CodeGraphContext:mainfrom
gojun077:feat/1268-cgc-watch-startup-sync-optional

Conversation

@gojun077

Copy link
Copy Markdown
Contributor

This commit addresses 1268

  • Added explicit --sync-on-start opt-in to cgc watch
    • CodeGraphContext/src/codegraphcontext/cli/main.py#L1559-L1599
  • Added the same option to the cgc w
    • CodeGraphContext/src/codegraphcontext/cli/main.py#L2852-L2868
  • Changed watch_helper
    • CodeGraphContext/src/codegraphcontext/cli/cli_helpers.py#L853-L933
    • already-indexed repos now default to:
      • attach watcher immediately
      • skip startup reconciliation
      • only process future file events
  • Preserved old startup-sync behavior behind cgc watch --sync-on-start.
  • Removed the shutdown message’s unconditional “Graph is up to date” claim, since default watch no longer reconciles pre-existing changes

Amp-Thread-ID: https://ampcode.com/threads/T-019ecf16-9928-72d1-8fd5-e6627e7e0df5

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@gojun077 is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog tasks

Development

Successfully merging this pull request may close these issues.

1 participant