Skip to content

Context 0.7.109: fixes from the 0.7.108 site updates - #122

Merged
qiansc merged 10 commits into
mainfrom
fix/0.7.108-site-findings
Nov 30, 2026
Merged

qiansc merged 10 commits into
mainfrom
fix/0.7.108-site-findings

Conversation

@qiansc

@qiansc qiansc commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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, and update --input on partial clones without history evidence.

Changes

  • Review report guidance allows a read-only local HTTP server when the host can open only HTTP addresses.
  • Review reports are archived to .tmp/context-runtime/review-archive/<time>/ when a task completes (five newest kept; rolled-back tasks discard theirs).
  • removed_citations entries whose section still cites the same file get same_file: true and current_lines, in previews, receipts and the completion summary.
  • Remote-mode skips of repositories not registered on Sourcegraph suggest auto mode or registering the repository.
  • During a batched refresh (more_batches: true), standalone revisions between batches also leave the version to the last batch; context status reports version_deferred; the last batch, version record or task prepare ends it.
  • update --input on a partial clone fetches the cited files at the processed commit, like --pending; full clones never fetch.
  • Version 0.7.109 and CHANGELOG.

Risks

update --input may use the network for partial clones. The deferral marker does not expire by design; status shows it.

Compatibility

None breaking: same_file, current_lines and version_deferred are optional additions; the archive and deferral marker live under .tmp/context-runtime/; existing workspaces work unchanged.

Verification

  • Build, typecheck and lint (no new warnings).
  • New and existing tests of the touched modules per file (about 25 files), including review archive, same-file citations end to end, batched refresh deferral (skipped/failed updates, task prepare, status views), remote skips, and partial-clone --input (full clones checked with GIT_TRACE to never fetch).
  • Two code review rounds.

Checklist

  • bun run verify:full passes. (CI)
  • Lifecycle changes include route and recovery tests.
  • Published package metadata and local pack behavior were checked when affected.
  • English and Simplified Chinese user documentation remain behaviorally equivalent.
  • Runtime code remains compatible with Node.js 20+.
  • No generated output, secrets, private sources, or local workspaces are included.

🤖 Generated with Claude Code

qiansc and others added 10 commits November 30, 2026 08:14
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>
@qiansc
qiansc merged commit 8f8bcf4 into main Nov 30, 2026
1 of 2 checks passed
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