Skip to content

CTX7-3744: ctx7 code waits for a first index before exiting 75 - #3746

Closed
fahreddinozcan wants to merge 2 commits into
masterfrom
CTX7-3744/ctx7-code-waits-for-first-index
Closed

fahreddinozcan wants to merge 2 commits into
masterfrom
CTX7-3744/ctx7-code-waits-for-first-index

Conversation

@fahreddinozcan

@fahreddinozcan fahreddinozcan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

ctx7 code now calls again by itself while a version's source is indexed for the first time, for up to 90 s, before it exits with code 75.

  • Since Nov 10, 65% of agents that hit a library that was not indexed never got an answer: most do not run the command again after the first 202.
  • waitForLibraryCode pauses for the answer's retryAfter after a fast 202 and 3 s after a call the server held open, makes at most 10 calls, and starts a last call while more than 5 s are left, aborted at the budget (an abort counts as still indexing).
  • --wait <seconds> (0 to 600) changes the budget; --wait 0 exits at once as before, and an invalid value exits 1. While waiting, one line goes to stderr (or the spinner).
  • The final notice uses the 3-minute retry wording of CTX7-3764: Tell agents to retry a code index for up to 3 minutes, not at most twice #3754.

Pairs with upstash/context7app#1689 (the server waits 40 s per call).

Closes CTX7-3744

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
context7-admin-mcp Ignored Ignored Nov 11, 2026 1:01pm UTC

Request Review

@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

CTX7-3744

@fahreddinozcan

Copy link
Copy Markdown
Collaborator Author

Closing: a client-side wait blocks the agent for up to 90 s, hides the indexing state and spends rate-limited requests. The first-index wait is handled on the server instead (upstash/context7app#1689) and with indexer capacity.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant