Repository navigation
Context 0.7.109: fixes from the 0.7.108 site updates - #122
Merged
Merged
Conversation
When the host can open only HTTP addresses, open_next and the knowledge-review procedure now allow serving the report directory read-only from a local server at a stable URL; a host that can open files still opens the report file directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Task cleanup used to delete .tmp/context-runtime/review/, so a reviewed HTML report disappeared once the task was built. The directory now moves to .tmp/context-runtime/review-archive/<completion time>/, keeping the five newest archives. Archiving is best effort and never blocks cleanup; task preparation does not touch the archive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he same file A revision that re-cites the same file at other lines, or the same lines with changed text, listed the earlier citation as removed. Such entries now carry same_file: true and current_lines, and the note says they normally need nothing. The entries flow unchanged into revision previews, submission receipts and the completion summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nregistered In remote mode, a repository that is not registered on Sourcegraph is skipped by design; its skipped_sources reason now adds that auto mode, or registering the repository on Sourcegraph, reads it. Behavior is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ched refresh A more_batches update now marks the version as deferred in the runtime directory until the last batch: a standalone revision between batches builds without a version record, and the last batch records one version for everything. The last batch's update (without more_batches) or a version record clears the mark; context status reports version_deferred while it is set. Without a batched refresh nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…plicit update update --input read history only from what the checkout had, so in a partial clone the processed commit's cited files were missing and changed citations came without history evidence or suggested locations. Like --pending, an explicit update now batch-fetches those contents, but only for checkouts with a promisor remote; full clones are skipped before any Git object check and never reach the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated by the build from the knowledge-updates guide and routine-update changes in the two previous commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The version deferral changes only once an update request is written, so a skipped or failing update leaves it as it was; task preparation clears it. ProjectStatus carries versionDeferred (full JSON view, text view and summary) from the one read status already makes. - A rollback discards unapproved review reports instead of archiving them. Archives of the same millisecond get a zero-padded suffix past the highest one, so they keep their completion order after eviction. - The unregistered-repository hint takes the decided mode and sits apart from the checkout fallback hint; content preparation returns early without requests and checks the promisor remote once. - Comments and the knowledge-review procedure match the new behavior, including how the review archive differs from .tmp/review-reports/. - Tests: same_file with several citations of one file and another source's same path, end to end through the revise preview, batch preview, receipts and completion summary; archive failure and rollback; the deferral in status, skipped and failing updates, and task preparation; no remote-only hint in auto mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng the deferral
- markSubmissionState("committed") now follows the update request write
directly, so a failure recording the version deferral still reports the
request as committed and is not retried.
- Content preparation looks up the promisor remote up front only for
partial-only preparation; otherwise only when objects are missing.
- Tests: the status summary JSON carries version_deferred.message; an
occupied deferral path reports submission_state committed.
- CHANGELOG: context task prepare also ends the deferral.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Summary
Fixes found while updating two documentation sites with 0.7.108 (remote mode plus partial clones), released as 0.7.109.
Background
The updates showed: a review report the host could not open, reports deleted after approval, noisy
removed_citations, unclear remote skips, batched refreshes recording two versions, andupdate --inputon partial clones without history evidence.Changes
.tmp/context-runtime/review-archive/<time>/when a task completes (five newest kept; rolled-back tasks discard theirs).removed_citationsentries whose section still cites the same file getsame_file: trueandcurrent_lines, in previews, receipts and the completion summary.automode or registering the repository.more_batches: true), standalone revisions between batches also leave the version to the last batch;context statusreportsversion_deferred; the last batch,version recordortask prepareends it.update --inputon a partial clone fetches the cited files at the processed commit, like--pending; full clones never fetch.Risks
update --inputmay use the network for partial clones. The deferral marker does not expire by design;statusshows it.Compatibility
None breaking:
same_file,current_linesandversion_deferredare optional additions; the archive and deferral marker live under.tmp/context-runtime/; existing workspaces work unchanged.Verification
--input(full clones checked withGIT_TRACEto never fetch).Checklist
bun run verify:fullpasses. (CI)🤖 Generated with Claude Code