Sourcegraph 6.6.2517

This is a patch release for Sourcegraph 6.6.

Details

Fixes

  • Batch Changes Add constraint to remove duplicate template fields in batch spec library variables table


    Backport 15c66e519eb2b5ec9493f1c8372b93490a72ec32 from #6741

Other

  • Add gemini 2.5 flash and gemini 2.5 pro


    Backport d9fd3848772f74133b54bcb33516d2b114f20953 from #6700

Sourcegraph 6.6.868

This is a patch release for Sourcegraph 6.6.

Details

Other

  • Add gemini 2.5 flash and gemini 2.5 pro

    Backport d9fd384 from #6700

  • Refactor(cody-gateway) Deprecate gemini-2.5-flash-preview-04-17 and gemini-2.5-pro-preview-03-25


    Backport f90029b038f82815a3a234213737d11f04059938 from #6684

Sourcegraph 6.6.0

Batch spec templating

Advanced templating in Batch Changes specs enables dynamic variable substitution and helper functions for more powerful automated code changes. [...]

Group metrics in Inventory Stats charts

Compare teams, track migrations, and understand repo composition with grouped visualizations. [...]

New Code Insight for tracking code inventory over time

You can now track lines of code, repo size, and file count at scale with a new built-in Code Insight. [...]

Details

Improvements

  • Code Insights Group metrics in Inventory Stats charts
  • Authentication OAuth 2.0 support for secure API access
  • Deep Search Implemented dotcom gating for deepsearch

    Implemented deep search quota enforcement for dotcom users:

    • CanConsumeDeepSearchQuota: Check if user has available quota
    • ConsumeDeepSearchQuota: Decrement quota when user performs deep search
    • GetDeepSearchUsage: Return current quota usage and reset time
  • Batch Changes Enable forked repos flow for pushed-only changesets [gitlab only]
    • Enable forked repos flow for pushed-only changesets [gitlab only]
  • Batch Changes Enable forked repos flow for pushed-only changesets [github only]
    • Enable forked repos flow for pushed-only changesets [github only]
  • Batch Changes New batch changes experience with templates

    feat(batches): new batch changes experience with templates

  • Deep Search Single URL for deepsearch [SPLF-1207]

    Deep search URLs are now directly shareable

Fixes

  • Batch Changes Introduce workaround for batch changes users on fine-grained pats for github repos


    Backport 9e232e27c2c1a19b69b01cea12ae0194fb7d4422 from #6656

  • Source Teams: githubapp: make scopes use proper pagination


    Backport a278c9287fd779ca9f26d10b2146e7c6cadfbcb3 from #6651

  • Batch Changes Update schema link to public artifacts repo

    fix(batches): update schema link to public artifacts repo

Other

  • Merge Cody ignore and context filters for both dotcom and enterprise


    Backport c201fd4027ba118b2c8a0cd089003638f13db429 from #6593

  • Added QuotaUsage information to HandleRetrieveDeepSearchs response
    • Added QuotaUsage information to HandleRetrieveDeepSearchs
  • Deep Search Replaced compaction and turn limit with token limit

    Replaced turn limits in deep search with a token limit

  • [CORE-1158] deepsearch: Added store for quota checks
    • Added store layer for tracking deep search queries
  • Batch Changes Remove unnecessary comments
    • Remove unnecessary comments
  • Batch Changes Add more backend telemetry for pushed-only changesets
    • Add more backend telemetry for pushed-only changesets
  • Batch Changes Refactor to use AbbreviateRef instead of TrimPrefix for pushed-only changesets
    • refactor to use AbbreviateRef instead of TrimPrefix for pushed-only changesets
  • CI removing upload to demo workflow

    DINF-1196 has all details

  • Remove scip-go upload to demo.sourcegraph.com

    https://sourcegraph.slack.com/archives/C04MYFW01NV/p1750800014304569

    0s Run src code-intel upload -github-token='***' -no-progress -repo=github.com/sourcegraph/sourcegraph đź’ˇ Inferred arguments repo: github.com/sourcegraph/sourcegraph commit: 552dc9[1](https://github.com/sourcegraph/sourcegraph/actions/runs/15861555759/job/44720169430?pr=6219#step:9:1)055580be3a0c021e40aacf0977710f1e1 root: dev/ci/images file: index.scip indexer: scip-go indexerVersion: 0.1.24 unexpected status code: 404 (failed to authorize request: repo not found: name="github.com/sourcegraph/sourcegraph") Error: Process completed with exit code 1.

  • Add Cody Deprecation Notice

    Cody will be deprecated on July 23rd 2025.

Sourcegraph 6.5.2654

This is a patch release for Sourcegraph 6.5.

Details

Fixes

  • Migrator Remove links to sourcegraph/sourcegraph repo in drift summary
    • fix(migrator): remove private repo links in migrator drift output


    Backport 4ae3c3a6b6d60bb99421293df830a9e63a53ae01 from #6463

  • Code Insights Skip empty repos for inventory insights

    fix(insights): skip empty repos for inventory insights
    Backport beee9d2241a4d3e854ac06ef8b5d8d000bd84a69 from #6250

Sourcegraph 6.5.1211

This is a patch release for Sourcegraph 6.5.

Sourcegraph 6.5.0

OAuth 2.0 support for secure API access

Enterprise customers can now use OAuth 2.0 to securely connect apps and scripts to Sourcegraph APIs with support for OIDC, PKCE, device auth, and M2M tokens. [...]

Service accounts for secure API integrations

Service accounts let admins create non-UI actors with API access - ideal for secure, controlled integrations. [...]

Expanded context windows for Cody Chat

We've increased input and output context limits across models to support more powerful, large-scale coding workflows. [...]

Details

Improvements

  • Authentication Service Accounts for secure API integrations
  • Batch Changes Changesets without merge requests in Batch Changes
  • Cody Expanded context windows for Cody Chat
  • Batch Changes Add experimental icon + code host limits to pushed-only changesets UI
    • Add experimental icon + GitLab/GitHub only specification for pushed-only changesets in batch changes UI

    Backport 04be437 from #6180

  • Code Search Add a new Code Insight for tracking inventory statistics over time
    • Combines features of the Language usage and Detect and track patterns insights to track code inventory metrics over time:
      • lines of code
      • size of code
      • file counts
    • Can group those metrics by repository, by language, or not at all
    • Can collect the metrics for a list of repositories, or a repo search query
  • Code Search Add graphql endpoints for inventory stats insight
    • New GraphQL endpoints
      • query:
        • inventoryStatsPreview
      • mutation:
        • createInventoryStatsInsight
        • updateInventoryStatsInsight
  • Release ConnectRPC endpoints for VerifyExecutorsRelease
    • releaseplatform: add rpc endpoint for VerifyExecutorsWorkflow
  • Release Fix handler initialization and add testing
    • Correct handler init for gcp and aws clients in releaseplatform, add testing
  • Release Add support for aws and gcp client initialization options
    • releaseplatform: added secret injection to aws and gcp clients
  • Analytics Improve updateCheck to check for canonical version
    • feat(telemetry): add canonical PG version check for detecting external db usage
  • Batch Changes Enable bulk ops for pushed-only-changesets (github only)
    • Add 'push only' bulk operation for Github
  • Rel Add granular telemetry for external databases

    [telemetry] add granular database telemetry.

  • Add a tooltip on the retry button

    Adds a tooltip to the retry button on the batch changes preview page.

    image

  • Release Add aws verification to temporal executors check workflow
    • add aws verification to VerifyExecutorsRelease temporal workflow
  • Code Search Expose Inventory settings in site config
    • The Inventory environment variables have been moved into site config settings (in the "inventory" section):
      • USE_ENHANCED_LANGUAGE_DETECTION: "disableEnhancedLanguageDetection" (defaults to false)
      • GET_INVENTORY_GIT_SERVER_CONCURRENCY: "gitServerConcurrency" (defaults to 4)
      • GET_INVENTORY_REDIS_CONCURRENCY: "redisConcurrency" (defaults to 20)
      • GET_INVENTORY_MAX_INV_IN_MEMORY: "maxInventoryInMemory" (defaults to 1000)
      • GET_INVENTORY_TIMEOUT: "timeoutInMinutes" (defaults to 5)
  • Rerun Changesets Warn when rerunning a changeset triggers more changesets to be rerun
    • GIN index to efficiently search workspace by changesetSpec
    • resolver endpoint to get workspace from changesetSpec
    • UI warning in preview step

Fixes

  • Batch Changes GitLab webhooks for merge requests not associated with batch changes now return HTTP 204 instead of HTTP 500 errors

    fix(batches): GitLab webhooks for merge requests not associated with batch changes now return HTTP 204 instead of HTTP 500 errors
    Backport b5e926187d14784ea9a51fefca626379a25bda3e from #6052

  • Batch Changes Don't sync changesets from soft-deleted namespaces

    fix(batches): fixed an issue where Batch Changes would attempt to sync changesets from deleted namespaces resulting in delays and timeouts for active changesets

  • Batch Changes Fix label unmarshalling for gitlab events

    fix(batches): fixed an issue where GitLab merge request events would fail to handle labels

  • Cody Gateway Update Claude 4 sonnet model tiers

    green ci

  • Pre Commit Don't flag service account configuration as a credential
    • make google cred pre commit hook more precise
  • Source Retry watching executor pods

    Fixed an issue where Sourcegraph would mark executor jobs as failed when briefly losing connection to a pod, even though the pod was still running.

Other

  • Completions: add special cody_debug:::{} prompt syntax site admins can use to measure latency

    test: added special debug syntax usable by site admins to measure completions latency.

  • Bedrock: do not discard IAM machine-credential authentication cache; add support for latency optimized inference
    • bedrock: added support for AWS Bedrock Latency Optimized Inference which can reduce autocomplete latency with e.g. Haiku 3.5 models by as much as 40%.
    • bedrock: fixed an issue where Cody's AWS Bedrock implementation would incorrectly discard the IAM machine-credential cache, making static access tokens potentially faster in older versions.
  • Batch Changes Build out metadata enrichment process for gitlab pushed-only changesets, COPY

    For some reason, PR 5995 got rebased in a weird way via git-spice, causing it to not get merged to main when its base PR (5974) got merged. This is just us re-issuing PR https://github.com/sourcegraph/sourcegraph/pull/5995.

  • Feat(deep search): Config for enabling/disabling thread sharing globally on the instance [SPLF-1115]

    Deepsearch thread sharing can be enabled or disabled globally on an instance

  • Feat(deep search): server based routing for deepsearch [SPLF-1110][SPLF-1109]

    Adds server based routes for deep search

  • Feat(deep search): disabled repo permission checks by default [SPLF-1149]

    Defaults repo permission checks for sharing deep searches off.

  • Feat(deep search): Repo permissioning in deepsearch [SPLF-1108]

    Adds repo and sub-repo permissioning for deep search threads to enable sharing

  • Feat(deep search): backend persistence for thread sharing

    Deep search threads are persisted in the database allowing for thread sharing

  • Batch Changes Remove feature flag for pushed-only changesets

    remove feature flag for pushed-only changesets

  • Frontend Update gitignore to include `*.d.ts` files in the `client/ui/` dir
    • update gitignore to include *.d.ts files in the client/ui/ dir
  • To focus ES on code search, skip the editor install step during onboarding - for 6.5 release
    • During onboarding, skip the "install Cody in your IDE" step
  • Deep search: return JSON error from completions/stream

    With this change we return JSON errors from the completions/stream endpoint. Before we returned plain text errors.

  • Rel Src-cli 6.3.0 update

    release: src-cli release docs

Sourcegraph 6.4.3889

This is a patch release for Sourcegraph 6.4.

Details

Fixes

  • Batch Changes Don't sync changesets from soft-deleted namespaces (#6039)

    fix(batches): fixed an issue where Batch Changes would attempt to sync changesets from deleted namespaces resulting in delays and timeouts for active changesets

Sourcegraph 6.4.2622

This is a patch release for Sourcegraph 6.4.

Details

Fixes

  • Source Retry watching executor pods (#5813)

    @sourcegraph/release

  • Source Handle 429 TooManyRequest responses from GitHub

    Fixed an issue where Sourcegraph was not handling rate limit responses from GitHub correctly.
    Backport bf997a77ecc58fe669b015aa6e8d2578c4e78607 from #5787

Other

  • Deep search: fix race condition in model validation

    This fixes the error "ModelConfigService not initialized. Init not called" which might occur during startup. The error was caused by a race condition where the validator of the Deep Search site config expected the model config service to be initialized.

Sourcegraph 6.4.1203

This is a patch release for Sourcegraph 6.4.

Details

Fixes

  • Rel Verify glibc version in postgresql images

    release: add container test to verify glibc version does not get unintentionally upgraded in PostgreSQL container images`


    Backport 68a8d54c9e8fd0a3ff0286d0141f07372209f19a from #5670

  • Cody Update output limit for opus4


    Backport 1269f3af4920629aab9a6fbc6a770932a7b8e64f from #5689

  • Release Pin containerd version in executor build


    Backport 0bc959fd07f2f6d55da1f3e6ce6cc6f5e5b2d231 from #5643

Sourcegraph 6.4.0

Changesets without merge requests in Batch Changes

You can now create changesets in Batch Changes that push code directly to a branch, no merge request required. [...]

Re-execute individual Batch Changes changesets

You can now re-run changeset creation logic for selected workspaces in Batch Changes. [...]

Claude 4 models available in Cody

Cody now supports Claude Sonnet 4 and Claude Opus 4. [...]

Default search context for all Code Search users

Site admins can set default search context across their instance to help users find relevant code faster. [...]

New file and directory filtering on compare page

Quickly filter and focus on specific files and directories when comparing branches, even across thousands of files. [...]

Details

Improvements

  • Cody Claude 4 models available in Cody
  • Source Gitserver: have gitserver try re-running commands before marking repositories as corrupt

    N/A
    Backport 4e0ca00f1e5fb1951a0f24bb7ccb3af918ce33ec from #5531

  • Source Disable janitor if DISABLE_GITSERVER_JANITOR env var is set

    If the DISABLE_GITSERVER_JANITOR is set, the janitor routines for gitserver will no longer run.

  • Ep Add ListEnterpriseSubscriptions RPC handler to administrationservice

    This PR adds the ListEnterpriseSubscriptions RPC to the administrationservice, allowing Enterprise Portal to retrieve subscriptions. It has support for multiple filter types: subscription IDs, archived status, display name, Salesforce data, instance domains, verified domains, and instance types

  • Deep Search Add follow up question suggestions [SPLF-1022]

    Added suggested follow ups to deepsearch

  • Batch Changes Site admins can feature library records

    feat(batches): site admins can feature library records

  • Deep Search Add codegraph tool cards

    Custom tool cards for GoToDefinition and FindReferences

  • Source Gitserver: include repoID, CWD, and command arguments when reporting corruption error

    N/A

  • Rel Add releaseworker health check

    N/A - internal change

  • Enterprise Portal Added GetEnterpriseSubscription handler for administrationservice ep

    Adds database-to-proto conversion for enterprise subscriptions and implements the GetEnterpriseSubscription handler in the AdministrationService. This enables user-authenticated access to subscription data via the Administration API.

  • Batch Changes Add site admin setting to configure the number of displayed batch spec library records

    feat(batches): Add site admin setting to configure the number of displayed batch spec library records

  • Batch Changes Auto-merge for github code hosts

    feat(batches): auto-merge for github code hosts

  • Source Oauth: github: add tests to clarify allowOrgs and allowOrgsMap interaction

    N/A

  • Deep Search Allow continuation after 20 turns [UI] (SPLF-974)

    When a deep search reaches it's turn limit, the user will be shown a summary of the search thus far and the next steps to determine if the search should continue

  • Code Search Add config for an admin to allow Code Insights to ignore sub-repo permissions
    • In the site config, set experimentalSettings.subRepoPermissions.allowInsights to true
    • Admins can decide if it is safe in their environment to allow Code Insights to generate graphs using data from repositories that use sub-repo permissions.
  • Code Search Collapse/expand search results
    • Adds the ability to collapse/expand search results
  • Code Intel TypeScript syntactic indexing support
    • Add TypeScript syntactic indexing support
  • Rel Add connectRPC handlers to API

    N/A - not customer facing

  • Rel Add release worker service

    N/A - internal tooling

Fixes

  • Repositories Move grafana dashboards for retry to proper section

    N/A
    Backport 413705d76b9e4b258f3718f884e3c3c2ddf4f6fd from #5602

  • Source Gitserver: janitor: emit a log when we fail to gather statistics for optimizing a repository

    N/A

  • Source Gitserver: janitor: make janitor emit an ERROR level log when optimizing a repository fails

    N/A

  • Source Gitserver: errors.Wrap call to OptimizeRepository so that we have a shared prefix

    N/A

  • Show correct number of filtered feature flags

    fix: show correct number of filtered feature flags

Other

  • Source Remove "Outdated" stats on permissions page


    Backport 484e546eca171cc184c86cf2cf7119f358f4bc02 from #5515

  • Gateway: add ability to mark models as 'unlimited', mark gemini-2.0-flash as unlimited
    • gateway: added ability to mark models as 'fallback' in model configuration capabilities section, which gives models effectively-unlimited rate limits for Cody Pro and Workspaces users.
    • model config: configuring the default fallback model (similar to default chat/autocomplete model) to use when rate limits have been exceeded is now possible. Future versions of Cody Clients will support this functionality.
    • gateway: gemini-2.0-flash is now an fallback model, and is the default fallback model.
  • Update Prompts Library Order By
    1. Adds new way to sort prompts by relevance.
    2. Minor updates to the UI including a. Make Create new prompt button primary b. Remove order by name c. Add order by relevance by default d. Add pencil icon for edit prompts
  • Fix spelling: Change 'By organisation' to 'By organization' in Prompt…

    Not a substantial change. Purely cosmetic. No Changelog needed.

  • Remove required login redirect handler for xdomainlogin service

    Adding RedirectToLoginHandler to the xdomainlogin service is no longer required. If an unauthorized request comes and RedirectToLoginHandler is not registered, we return an unauthorised error. This helps generalise the service for better reuse.

  • Feat(batch changes): [SRCH-1873] rerun change sets from preview page

    Allow changesets to be rerun from the preview step of batch changes.

  • Fix(models.json): mark smart-apply-qwen-default as "stable"

    Fixed issue where smart-apply-qwen-default model was marked as experimental instead of stable, sometimes leading to a smart apply issue if modelConfiguration excludes experimental models.

  • Rel Release prep for 6.3.0 (#5033)

    N/A - internal facing

Sourcegraph 6.3.4167

This is a patch release for Sourcegraph 6.3.

Sourcegraph 6.3.2692

This is a patch release for Sourcegraph 6.3.

Sourcegraph 6.3.0

New models available in Cody Gateway

Expanded model support for Cody with new options from OpenAI and Google. [...]

Details

Improvements

  • Code Search Default search context for all Code Search users
  • Cody New models available in Cody Gateway
  • Code Search Diff comparison page UI enhancements
    • Users can now filter diffs on the diff comparison page
      Backport a2725da3281de64d2d2e41438222d0f38700e441 from #4398
  • Workspaces Show admin analytics menulink


    Backport 0b9ee7390bca046462737172c39d8ad2e13b99fb from #4652

  • Release Add a sg release steps command
    • new internal release command sg release steps to be used in pipeline gen
  • Code Search Expose ENVs for search jobs config

    We've added new configuration options to help customers better manage search jobs:

    • Control how frequently the system checks for new search jobs to process (SRC_SEARCH_JOB_WORKER_INTERVAL, default: 1s)
    • Set a maximum time limit for how long a search job can run (SRC_SEARCH_JOB_MAXIMUM_RUNTIME_PER_JOB, default: 5h)
    • Adjust how many search jobs can run simultaneously (SRC_SEARCH_JOB_NUM_HANDLERS, default: 5)
  • Agents Allow grader to rewrite or relocate diagnostics [AGENT-302]

    The grader service can now fix broken diagnostics that come out of a review, hopefully improving quality.

  • Syntactic indexing support for C++

    Adds support for syntactic indexing for C++

  • Unsigned commits warning

    It is possible for users to have rejectUnverifiedCommits site configuration enabled, and also apply changesets without having the necessary configurations for commit signing. This change provides a warning banner during the batch set preview stage in such a case.

    With commit signing fully configured Warning showing because no GitHub commit signing configured
    image image
  • Agents Add default rules
    • New default for the review setting rules: ['builtin-rules', 'repo-rules']. Builtin rules allow you to start using the review agent without creating any *.rule.md files.
  • Source Adapt Gitaly's stats package and adapt test suite to run in our codebase

    N/A

  • Agents Grade diagnostics before posting [AGENT-196]

    Adds reflection to the review process to filter out bad diagnostics before posting.

  • Code Search Add support for chaining multiple filePaths in URL
    • Add support for chaining multiple filePaths together in URL

Fixes

  • [SRCH-1387] workspace refresh caching using incorrect key

    Fixes issue https://linear.app/sourcegraph/issue/SRCH-1387/chime-workspaces-not-updating

    The workspace preview components rely on the apollo client cache to coordinate the state. Queries are made in two places;

    • /client/web/src/enterprise/batches/batch-spec/edit/workspaces-preview/useWorkspacesPreview.ts
    • /client/web/src/enterprise/batches/batch-spec/edit/workspaces-preview/useWorkspaces.ts

    The desired effect is that both queries are cached under the same cache-key by apollo, and so when a query finds new results it triggers a component refresh with the new data.

    The problem is that there is a subtle difference in the variables passed to the query - one has after: null and on does not provide the after field. This means that they are treated as different queries and the cache entries for the queries are separate.

  • Update auto-updating script to use correct scip-typescript Docker tag

    Switch to Debian-based auto-indexing Docker image for scip-typescript, and official Node builds. The new image is compatible with recent Node versions (verified: 23.11.0).

  • Source Fix error that happens when adding an existing GitHub App

    Fixed an error where Sourcegraph would display an error when an existing GitHub App was added in Site Admin, even though the adding succeeded.

  • GitHub Synchronize at least 100 GitHub issue/PR comments, not 30
    • When syncing conversations from GitHub, we now fetch 100 comments by default instead of the default 30 comments
  • Release Set development branch name by default

    NA

Other

  • Add KUBERNETES_IMAGE_PULL_POLICY environment variable for the Executor service to allow setting the image pull policy
    • Acepted values for KUBERNETES_IMAGE_PULL_POLICY:
      • Always - kubelet always attempts to pull the latest image. Container will fail If the pull fails.
      • Never - kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present.
      • IfNotPresent - kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.
  • Release Improve upgrade error message for out of policy upgrade attempts
    • Improve migrator error for invalid upgrade ranges
  • Perforce: Make changelist mapper recover automatically

    Fixed an issue where perforce changelist mapping could fall into an unrecoverable state after recloning.

  • Refactor cross domain login service to allow re-use in other services
    • Moved userauth and xdomain login service from workspaces to managed services, to allow import from other services
    • Refactored userauth and xdomain login service to not be workspaces-specific, removing all workspaces references and allowing to specify the path for cross-domain login.

    Test plan

    Tetsted changes locally from workspaces service

  • Agents Limit tool calls in grader

    Added ToolCallLimit to InternalCompletionParams for limiting the number of allowed LLM tool calls in a loop.

  • Fix batch change codehost links

    fix some broken links to documentation

    It looks like there's been some changes to the docs structure. It wasn't a simple fix of broken links, new one's needed to be chosen. This is how the new links were chosen.

    For links to old admin code-host specific configuration setup:

    For links for adding a code host config

    For links for generic info on batch change credentials

    https://sourcegraph.slack.com/archives/C05EA9KQUTA/p1744048899905029

  • Remove deprecated batchChangePreview component

    Refactor to remove old duplicated component

Sourcegraph 6.2.3841

This is a patch release for Sourcegraph 6.2.

Details

Improvements

  • Source Graphql: add databaseID field to repository graphql field

    The repository graphql API now supports fetchinig the databaseID field.
    Backport cac91705f82f1221766f1576cdadd0b5c2c7502a from #4953

Sourcegraph 6.2.2553

This is a patch release for Sourcegraph 6.2.

Details

Improvements

  • Source Create different proxy interpretation modes for sub repo ip perms matching

    authz: Add Perforce IP rule interpretation modes (unified (default), directOnly, proxyOnly) in site configuration via rulesInterpretationMode field to provide more predictable sub-repo permissions behavior
    Backport 774ac0c653371b0acbae62e233764dc6729fddf3 from #4713

Fixes

  • Cody Add new bedrock fields to legacy completions config


    Backport 0d9f70dd54a4c20621fe7404d3c7598e60264f59 from #4771

Sourcegraph 6.2.1106

This is a patch release for Sourcegraph 6.2.

Details

Improvements

  • Source Create graphql endpoint for viewing sub repo perms for a repository


    Backport 34dd46a20d9d9d3a52abaaeaa845b968bf781435 from #4528

Fixes

  • Fetch user by username for Bitbucket Server
    • Fixes an issue where we OAuth would fail for Bitbucket Server users with special characters in their usernames
      Backport 28317328924ae0139edacc3711d169b37179c31f from #4490

Other

  • Prevent invalid Basic Auth header in webhook alert notifiers

    fix(rel): prevent invalid authorization headers in webhook alert configurations when no credentials are provided
    Backport eefbf38fc2ba6024d028ba968dedf397235714d3 from #4635

  • Ci: Improve runtime of integration test suite (#4632)

    (see original PR https://github.com/sourcegraph/sourcegraph/pull/4632)

  • Release [backport 6.2.x] Update jaeger-all-in-one
    • Update jaeger-all-in-one to 1.67.0

Sourcegraph 6.2.0

Personalized search ranking now live

Sourcegraph search results are now more relevant and tailored to each user. [...]

Batch spec library now customizable via API

Site admins can now customize batch spec library examples using new GraphQL APIs. [...]

Find Batch Changes with title-based search

You can now search batch changes by title, making it easier to find the one you’re looking for - no more scrolling through long lists. [...]

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

Batch Changes now has experimental support for GitHub fine-grained access tokens for user and admin credentials. [...]

Bulk rebase changesets available in Batch Changes

Batch Changes now supports a new bulk action to help teams working in fast-moving codebases - rebase changesets. [...]

Commit signing with SSH keys in Batch Changes (experimental)

Experimental support for SSH key–based commit signing in Batch Changes is now available for GitHub and GitLab. [...]

Claude 3.7 Sonnet now available in Cody

Claude 3.7 Sonnet is now available for Cody in two variants - standard and "extended-thinking" - to support both deep reasoning and fast, responsive edit workflows. [...]

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

Sourcegraph 6.1.5633

This is a patch release for Sourcegraph 6.1.

Details

Improvements

  • Cody Allow non-aws bedrock endpoints with Bedrock provider

    Add AWS Bedrock client support for non-AWS Bedrock-compatible endpoints
    Backport 9054d7c14db0ecf96200c2985c5b550b6dd2ded0 from #4145

Other

  • Add thinking/chain-of-thought support for Anthropic models via Vertex AI

    Others

    • Add thinking/chain-of-thought support for Anthropic models via Vertex AI (PR #3765)
      Backport 26761a7fb0a7d0e2efcff55169b28186b0598beb from #3765
  • Feat(cody gateway): Update default chat model to Claude 3.7 Sonnet wi…

    See https://github.com/sourcegraph/sourcegraph/pull/4063

Sourcegraph 6.1.4020

This is a patch release for Sourcegraph 6.1.

Details

Improvements

  • Source Sub-repo-perms: add limited support for IPv4 wildcard semantics


    Backport 04606e20fbc8f13ad473533820b8f5df71e20ad7 from #3989

Sourcegraph 6.1.2889

This is a patch release for Sourcegraph 6.1.

Details

Improvements

  • Code Search Adds `Team` support in SvelteKit ownership panel

    Implement ownership information for the Sveltekit rewrite.


    Backport 30f3ea6a6c115c633291c388ff599ff107d7f38b from #3738

  • Code Search Add ownership panel MVP to sveltekit app
    • Adds read-only ownership panel to Sveltekit frontend
    • Gated behind 'svelte-ownership' feature flag
      Backport 469f2ea37a214f3c0eb1cbde012625bdbef84b6f from #3558

Fixes

  • Code Search Missing symbol changes from merge commits in Rockskip

    This fixes a bug in Rockskip (symbol search) where we would miss symbol changes introduced by merge commits. This bug manifested in incorrect search results and errors of symbols service similar to "pathspec (...) did not match any files".


    Backport d8426a9aec4930ce71922562fdebdcfd0d657cb4 from #3699

  • Source Fix bug where the token always has to be entered when editing certain code host connections
    • Fixed issue where the code host connection editor would always ask for the token to be re-entered.
      Backport 428c1eef19d68b38037bd35457632a007a78494d from #3719
  • Update cody web to 0.31.1 to fix issue with pasting linebreaks (#3696)

    fix: prompt templates should not fail when pasting linebreaks

  • Batch Changes TransformChanges.group.directory should not interpret file names as directories

    fix(batches): transformChanges.group.directory should not interpret file names as directories
    Backport 6ffff463be1743b89ab865018e46a34ff4e549f5 from #3721

Sourcegraph 6.1.1295

This is a patch release for Sourcegraph 6.1.

Details

Improvements

  • Cody Gateway Add thinking/reasoning support to Anthropic models

    Added support for chain-of-thought reasoning in Anthropic models, allowing users to see the model's thinking process for complex tasks.
    Backport 389bf9a4f2cf8ed7762cf8876b0efe4064e2b234 from #3507