Fix Wiki Writer timeouts misreported as transient API errors#279
Merged
Conversation
…rors Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Wiki Writer runs failing due to timeouts
Fix Wiki Writer timeouts misreported as transient API errors
Mar 17, 2026
Copilot AI
added a commit
that referenced
this pull request
Mar 17, 2026
…pipe Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
dsyme
added a commit
that referenced
this pull request
Mar 19, 2026
) * Initial plan * Fix agentic-wiki-writer: single push-wiki call and bare pipe in wiki links Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> * Keep batched push-wiki from PR #279, add max:5 config, fix backslash pipe Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> * Increase push-wiki max from 5 to 10 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> * Fix CI: remove invalid max property from custom push-wiki job Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> Co-authored-by: Russell Horton <mrjf@github.com> Co-authored-by: Don Syme <dsyme@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The agent was loading 3000+ lines of source into context then generating all wiki pages in a single
push-wikicall, exceeding output token/timeout limits. The API returned a timeout; the CLI logged it as "transient" and retried into the same wall repeatedly.Changes
Mandatory batching constraints (
3d)New hard-constraint block the agent must read before generating anything:
push-wikicall; process sequentiallyLarge-file context limits (
3d)For source files >500 lines, forbids reading the full file. Instead:
Batched push-wiki (
3f)Replaces the previous "one giant JSON object" instruction with explicit sequential batching — sidebar included only in the final batch, payload size estimated before each call, and consistent retry semantics aligned with the
3dconstraints.Error clarity
Retry guidance explicitly names timeouts as the most likely cause of API errors during generation, so the agent (and operators reading logs) know what's actually happening rather than chasing phantom network issues.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.