Changelog Release 6.2.0
APRIL 02, 2025

Sourcegraph 6.2.0

A newer patch release is available: 6.2.3841. See all changes in Sourcegraph 6.2.

Highlights

Personalized search ranking now live

Batch spec library now customizable via API

Find Batch Changes with title-based search

Batch Changes support for GitHub fine-grained access tokens (experimental)

Bulk rebase changesets available in Batch Changes

Commit signing with SSH keys in Batch Changes (experimental)

Claude 3.7 Sonnet now available in Cody

Details

Improvements

  • Batch Changes Find batch changes with title-based search
  • Cody Claude 3.7 Sonnet now available in Cody
  • Batch Changes Bulk rebase changesets available in Batch Changes
  • Configurable runtime for codemonitor jobs

    feat: configurable runtime for codemonitor jobs

  • Agents Add rule stats to the `./api/rules` API

    Added rule stats to the .api/agents/{agent_id}/rules REST endpoint when the query string ?include=revision.stats is present

  • Cody Add a site config for "enforced" Guardrails and transmit it to Cody clients
    • Adds a site config setting, "attribution.mode": "enforced", which configures Cody IDE extensions after v1.82 (VSCode) or v7.82 (JetBrains) to not display code until attribution checks have finished.
  • Agents Auto-generate feedback from changeset conversations

    When a pull request is merged, diagnostic feedback is auto-generated via LLM judge from the comments and reactions

  • Code Search Enable personalized ranking by default

    We've enabled personalized ranking for search results in the new web app—marking the first step in integrating user-specific ranking signals into our search pipeline. As a result, queries spanning multiple repositories will prioritize results from repositories the user has frequently contributed to.

    User can disable the feature by setting boostRelevantRepositories to false in the settings

    {
      "experimentalFeatures": {
        "boostRelevantRepositories": false,
      },
    }
    
  • Batch Changes New api for batch spec examples

    feat(batches): new batch spec examples library api

  • Agents Add multiple table view UIs
    • New UIs to view an agent repos, conversations, PRs, reviews, and diagnostics
  • Batch Changes Add fine-grained access tokens to credential modal

    feat(batches): Batch Changes now supports fine-grained access tokens as user and site-admin credentials

  • Dev Add CLAUDE.md file for claude code

    N/A

  • Batch Changes Commit signing with ssh keys

    Feature is behind batches-commit-signing feature flag.

    Adds the UI form elements needed for submitting a private SSH key and passphrase for git commit signing.

    note: only UI elements and graphql changes in this PR, backend changes are still required.

    image

    image

  • Agents Mirror pull requests in our database
    • It's now possible to POST /.api/agents/{agent_id}/runs to trigger a background review of a pull request
    • It's now possible to list pull requests for an agent with GET /.api/agents/{agent_id}/changesets
    • It's now possible to list repositories for an agent with GET /.api/agents/{agent_id}/repos
    • It's now possible to trigger a background sync of pull requests via POST /.api/agents/{agent_id}/runs.
  • Smart Apply Add instant apply model for smart apply
    • feat(smart-apply): Add instant apply models
  • Source Add projectQuery option to Gerrit code host connections

    Gerrit code host connections now support a projectQuery option that allows for any arbitrary query parameters supported by the Gerrit API.

  • Agents Link to original rule URL in GitHub review comments
    • Review comments on GitHub now link to the original rule. Previously, it only displayed the rule slug (short ID like logic) and it was difficult to find the source of the rule. Now, it's easy to find both the rule instructions or identify the rule author (via git blame).
  • Do-init-only flag in `sg release create`

    NA

  • Patch release creates git branch for version

    na

  • Code Search Use `patterntype=nls` for Cody context

    The GetCodyContext endpoint is now deprecated. Instead, clients should use the search API with patterntype=nls. Here's an example of how Cody calls the search API: (nlsSearchQuery).

  • Agents Add $-based cost estimates in agent overview
    • There is now a new "Spend" tab in the agent overview that gives insights into how expensive it is to run an operate an agent, which is helpful among other reasons when making a decision about what LLM model to use.
    • The LLM API /.api/completions/stream now returns the used "modelref" (Sourcegraph canonical representation) alongside the used "model" (LLM provider canonical representation).
  • Source Allow adding details of an already existing GitHub App

    Site admins can now add their own pre-existing GitHub Apps to Sourcegraph. This also allows site admins to supply the App details of Enterprise GitHub Apps.

  • Implement commit search on searcher
    • Added a feature flag to run commit search on searcher, goal being to improve stability and resource usage of gitserver
  • New GraphQL query evaluateFeatureFlags

    feat: new GraphQL query evaluateFeatureFlags

  • Agents Rename all-inferred to repo-rules
    • Use the setting rules: ["repo-rules"] instead of rules: ["all-inferred"] to pick up *.rule.md files in the repository based on the changed files in the diff.

Fixes

  • Agents Filter out empty diagnostic paths
    • Fixed error "empty string is not a valid pathspec" when loading diagnostics page
      Backport ac2034bc8b71c5983a94946777cc1f75b168c287 from #4407
  • Analytics Deprecate admin analytics
    • Deprecate the admin analytics pages (/site-admin/analytics) and redirect users to Sourcegraph Analytics (analytics.sourcegraph.com).
  • Ci Make minor_nightly_cut.sh executable

    na

  • Enforce file size limits for highlighting
    • Enforces limits of 1.5 MiB and 50K lines for highlighting code files.
  • Code Search Fix bug that wasn't setting a default tab selection
    • Fixes a bug where default selections were not being set.
  • Release Add runtype names

    na

  • Source Sub-repo-perms: adjust ipv4 string prefix matcher to use stack instead of heap allocations

    N/A

  • Code Search Disallow rev filters with repo predicates

    Fixes a search bug where queries like repo:has.file(...) rev:1.0 would completely ignore the rev filter. Now, these types of searches are explicitly disallowed.

  • Code Search Ensure we ignore context canceled errors in searcher client

    Fix a rare bug in repo:has.file queries where some searches could return no results.

  • Code Search Truncate all Rockskip tables

    With this change we delete all Rockskip indexes. In Sourcegraph v5.5.0 we shipped a bug in Rockskip which causes some unindexed symbol searches to return no results. The bug has been fixed in 6.2 and was backported to 6.1. However indexes that have been created prior to the fix are corrupted. Hence, we have to reindex all Rockskip repositories. A new index job will automatically be triggered. This requires no further action. However, during the reindex, symbol search at older revisions of very large repos will likely time out, so we encourage all customers to communicate this to their users ahead of the rollout of the new version.

  • Unset cxx instead of NoCC

    na

  • Rr v2 and v1 next patch return same values

    na

  • Cody Update auditlog API to have cursor-based pagination
    • Improve usability of auditlog API
  • Use pathspec literal to avoid colons
    • Fixed a bug where paths that start with colons may be reported as not found.
  • Smart Apply Change the deployment id for the custom model
    • fix(smart-apply): Change deployment id
  • Cody Prevent panic in chat completions API by checking error first
    • The API POST /.api/llm/chat/completions now does not panic anymore when sending a bad request (HTTP 400), which was possible to trigger if you used tool with an incorrect schema.
  • Agents Automatically add feature-flag trigger
    • When creating a new agent program, it now automatically includes a feature flag trigger for the feature flag named agents-auto-review. You must create this feature flag to have the trigger activate.
  • Agents Skip draft PRs with the `feature_flag_enabled` trigger
    • The review agent no longer automatically reviews draft PRs with the feature_flag_enabled trigger. Instead, users must explicitly request reviews on draft PRs through a comment (comment_starts_with) or a label (label_exists)
  • Batch workspaces to reduce memory pressure

    fix(batches): batch workspaces to reduce memory pressure

  • Mark releases as development in the releaseregistry

    NA

  • Remove vertical scrollbar from pre block
    • (minor bugfix) Fixed an issue where we would show scrollbars on unscrollable items in the dynamic search filters sidebar
  • Perf Remove quadratic behavior in rune counting
    • (perf) Fixed quadratic behavior in commit and diff search
  • Nightly Minor Release Pipeline

    NA

  • Agents Correctly chunk diffs wrt generated files
    • Fix a bug where the review agent would error if a generated file had more than 100k tokens.
    • Updated docs to describe the algorithm to detect and ignore generated files
  • Agents Mark run as "errored" on panic
    • Fixed a bug where an agent run would be stuck in "running" mode forever. Now, these runs get correctly marked as "errored"
  • Call bazel directly for generating stitched migration graph in nightly release pipeline

    NA

  • /latest releaseregistry endpoint returns latest by semver

    NA

  • Agents Several small fixes for agents
    • The review agent now posts a comment reply when it's triggered by a comment trigger (example: @sourcegraph review). This is makes the agent behave more like a colleague would.
    • The agent run page now links back to the pull request at the top of the page
    • "Duration: 0s" is no longer shown on the agent run page while it's running.
    • The links to the "applied_rules" in the agent run page now work correctly. Previously, the links were a 404 because they were one long ", " joined string. We plan to further improve the design of how rules are displayed in this page, so this is not a final solution, just a quick fix for the most immediate bug.
  • Nightly release pipeline must test do-init step

    na

Other

  • Bitbucketserver: Properly refresh OAuth credentials in API calls

    Fixed an issue where Bitbucket Data Center/Server OAuth2.0 credentials were sometimes not refreshed correctly, causing errors when syncing repository permissions.
    Backport fb4e51d25cc2ac0713e9af3d7ed39fc6e9d01500 from #4521

  • Security Backport: Update to src-cli 6.1.1
    • Update src-cli version to 6.1.1
  • Update deployment types to show accurate types in telemetry


    Backport a09017f5ef6e75ec083fc0c9444baa64b0354989 from #4319

  • Rel Add release as branch code owners

    N/A - not customer facing

  • Cody Roll Cody Web to 0.32.4
    • Cody Web is updated to 0.32.4
      Backport 70119119b25a883d94571770aafe7846c161a79d from #4401
  • Activate commit signing by default


    Backport 5f9519cec1e7edea1880dd44af25161f9d4fc88b from #4343

  • Code Search Rename boost: query params to repo:boost

    boost:repo() and boost:relevant.repos() query params have been renamed to repo:boost() and repo:boost.relevant().

  • Batch settings requests
    • perf: reduced DB roundtrips when fetching settings, lowering floor latency for API requests
  • Move after commit logic into server source implementations

    The executor shouldn't know about code host specific logic. This change moves github specific logic - duplicating commits when signing with a GH app - out of the executor and into the Github ChangeSetSource.

    This is behind a generic AfterCommit interface method of ChangeSetSource interface, for which other code host implementations are simply no-ops.

  • Remove client-side code for packages

    Removes UI settings for experimental package repos feature.

  • Dev Delete most package repo code

    Removes experimental support for creating, configuring and using package code hosts such as NPM dependencies, JVM dependencies, Go modules etc.

  • Release Move operations package out of internal
    • move buildkite and operations packages into public package from internal
  • Security Remove security event patterns from audit logging
    • Security events have been removed in favor of improved audit logging
  • Release Remove duplication of SBOM generation in internal releases
    • remove SBOM from internal release
  • Enable diff-search-on-searcher by default
    • internal: moved commit and diff search from gitserver to searcher to help stabilize gitserver memory usage
  • Cleanup: fail if subrepo perms is not initialized
    • (Infra) Searcher now requires a database connection, so must be able to reach Postgres,
  • Remove intent detection model call in frontend, always return chat

    The ChatIntent endpoint is now deprecated and will always return chat as the chosen intent.

  • Added EventLogger to the Cody Gateway supporting BigQuery configuration created by MSP
    • Added EventLogger to the Cody Gateway supporting BigQuery configuration created by MSP
  • Symbols: enabled ad-hoc file parsing by default

    We have enabled a new performance improvement for unindexed symbol search. Requests asking for all symbols of a file will now be handled by ad-hoc file parsing instead of by Rockskip or sqlite-based symbol search. This solves an issue many customers have reported for larger repositories, where the symbol sidebar in the blob view would often show errors related to timeouts. The feature can be disabled by setting DISABLE_FILE_SYMBOLS_PARSING=true as ENV for the symbols service.

  • Add trace events for external requests
    • internal: added trace logs for HTTP lifecycle events
  • Security Remove database dependency from security event logs
    • Removed ability to write audit logs to database.
    • Audit logs can no longer be disabled, and will always stream to stderr.
  • CORE-759: Added MSP skeleton to Cody Gateway
    • Added feature flag for MSP and added skeleton of MSP app into Cody Gateway
  • Base language detection limit on measurements

    Language icons for files with ambiguous extensions (such as .h files, which is used for both C and C++) are more likely to be accurate.

  • Fix incorrect enqueuing of syntactic indexing jobs
    • Fix incorrect enqueuing of syntactic indexing jobs (PR #3877)
  • Index C++ concepts using scip-ctags
    • Use scip 0.5.2 to identify C++ concepts
  • Map "c++" -> "cpp" for scip-ctags parsing
    • Maps c++ to cpp when selecting scip-ctags parser, instead of falling back to universal-ctags.
  • Update to src-cli 6.1.0
    • Update src-cli version to 6.1.0
  • Agents Minor fixes for spend page
    • API documentation for GET /.api/reviews now correctly shows the supported query parameters
    • The agent spend overview now correctly displays the oldest date in the title (not newest date)
    • The agent spend overview page now no longer has a 404 in the page title
  • Add `rawURL`
    • (feat) Added rawURL to git blob GraphQL resolver to encourage fetching file contents from in a more performant manner.
  • Bump auto-indexing image SHAs

    Updates default auto-indexing images for scip-go (to v0.1.23), scip-ruby (to v0.4.6) and scip-dotnet (to v0.2.10).

  • Perf Stream commits
    • (internal, perf) Modified commits endpoint on gitserver to stream end-to-end, increasing raw listing throughput by ~20x.
  • Gateway: Increase ES LLM limits to match Pro

    Increased ES LLM limits to match Pro

  • Remove Waitlist for O1 Models

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Cody Remove "New" from Claude 3.5 Sonnet name (SRCH-1627)

    no-changelog