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

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

    Added suggested follow ups to deepsearch

  • Deep Search Add codegraph tool cards

    Custom tool cards for GoToDefinition and FindReferences

  • 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
  • Batch Changes Site admins can feature library records

    feat(batches): site admins can feature library records

  • 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

  • Cody Claude 4 models available in Cody
  • 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.

  • 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

  • Rel Add releaseworker health check

    N/A - internal change

  • Rel Add connectRPC handlers to API

    N/A - not customer facing

  • Rel Add release worker service

    N/A - internal tooling

  • 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.

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

    N/A

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

    N/A

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

  • Uncategorized Show correct number of filtered feature flags

    fix: show correct number of filtered feature flags

Sourcegraph 6.3.4167

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
  • Code Search Diff comparison page UI enhancements
    • Users can now filter diffs on the diff comparison page
      Backport a2725da3281de64d2d2e41438222d0f38700e441 from #4398
  • 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)
  • Code Search Add support for chaining multiple filePaths in URL
    • Add support for chaining multiple filePaths together in URL
  • Cody New models available in Cody Gateway
  • 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.

  • 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.
  • Agents Grade diagnostics before posting [AGENT-196]

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

  • Release Add a sg release steps command
    • new internal release command sg release steps to be used in pipeline gen
  • Source Adapt Gitaly's stats package and adapt test suite to run in our codebase

    N/A

  • Workspaces Show admin analytics menulink


    Backport 0b9ee7390bca046462737172c39d8ad2e13b99fb from #4652

  • Uncategorized Syntactic indexing support for C++

    Adds support for syntactic indexing for C++

  • Uncategorized 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

Fixes

  • 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

  • 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.

  • Uncategorized [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.

  • Uncategorized 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).

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.0.12741

This is a patch release for Sourcegraph 6.0.

Details

Fixes

  • Uncategorized Update cody web to 0.31.1 to fix issue with pasting linebreaks (#3696)

    fix: prompt templates should not fail when pasting linebreaks

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

  • Uncategorized 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

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

  • 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,
      },
    }
    
  • 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).

  • Batch Changes Find batch changes with title-based search
  • Batch Changes Bulk rebase changesets available in Batch Changes
  • Batch Changes New api for batch spec examples

    feat(batches): new batch spec examples library api

  • 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

  • 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

  • Cody Claude 3.7 Sonnet now available in Cody
  • 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 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

  • 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

  • Agents Add multiple table view UIs
    • New UIs to view an agent repos, conversations, PRs, reviews, and diagnostics
  • 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.
  • 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).
  • 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).
  • 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.
  • Dev Add CLAUDE.md file for claude code

    N/A

  • 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.

  • 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.

  • Uncategorized Configurable runtime for codemonitor jobs

    feat: configurable runtime for codemonitor jobs

  • Uncategorized Do-init-only flag in sg release create

    NA

  • Uncategorized Patch release creates git branch for version

    na

  • Uncategorized 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
  • Uncategorized New GraphQL query evaluateFeatureFlags

    feat: new GraphQL query evaluateFeatureFlags

Fixes

  • Code Search Fix bug that wasn't setting a default tab selection
    • Fixes a bug where default selections were not being set.
  • 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.

  • Analytics Deprecate admin analytics
    • Deprecate the admin analytics pages (/site-admin/analytics) and redirect users to Sourcegraph Analytics (analytics.sourcegraph.com).
  • Cody Update auditlog API to have cursor-based pagination
    • Improve usability of auditlog API
  • 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 Filter out empty diagnostic paths
    • Fixed error "empty string is not a valid pathspec" when loading diagnostics page
      Backport ac2034bc8b71c5983a94946777cc1f75b168c287 from #4407
  • 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)
  • 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"
  • 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.
  • Ci Make minor_nightly_cut.sh executable

    na

  • Perf Remove quadratic behavior in rune counting
    • (perf) Fixed quadratic behavior in commit and diff search
  • Release Add runtype names

    na

  • Rr v2 and v1 next patch return same values

    na

  • Smart Apply Change the deployment id for the custom model
    • fix(smart-apply): Change deployment id
  • Source Sub-repo-perms: adjust ipv4 string prefix matcher to use stack instead of heap allocations

    N/A

  • Uncategorized Enforce file size limits for highlighting
    • Enforces limits of 1.5 MiB and 50K lines for highlighting code files.
  • Uncategorized Unset cxx instead of NoCC

    na

  • Uncategorized Use pathspec literal to avoid colons
    • Fixed a bug where paths that start with colons may be reported as not found.
  • Uncategorized Batch workspaces to reduce memory pressure

    fix(batches): batch workspaces to reduce memory pressure

  • Uncategorized Mark releases as development in the releaseregistry

    NA

  • Uncategorized 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
  • Uncategorized Nightly Minor Release Pipeline

    NA

  • Uncategorized Call bazel directly for generating stitched migration graph in nightly release pipeline

    NA

  • Uncategorized /latest releaseregistry endpoint returns latest by semver

    NA

  • Uncategorized Nightly release pipeline must test do-init step

    na

Sourcegraph 6.1.5633

This is a patch release for Sourcegraph 6.1.

Claude 3.7 Sonnet "extended thinking" available for GCP

The "extended thinking" variant of Claude 3.7 Sonnet is now available on Google Cloud Platform (GCP) for Cody Enterprise customers. [...]

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

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

  • 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

  • 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
  • Uncategorized Update cody web to 0.31.1 to fix issue with pasting linebreaks (#3696)

    fix: prompt templates should not fail when pasting linebreaks

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

Sourcegraph 6.1.376

This is a patch release for Sourcegraph 6.1.

Details

Improvements

  • Agents Simplify agent admin onboarding experience
    • You can now create a GitHub App with all the right permissions/events for code review agents. Previously, you had to manually customize the apps.
      Backport 87e8d77f464912cbd4356a8c3c39fba1d099e3b6 from #3473

Fixes

  • Code Intel Correctly handle document counts exceeding MaxInt32

    Fixes a bug in SCIP index processing for instances with a long history of processing large uploads.
    Backport 48e7b47898ee7710f12270c6861c335a2ef75f48 from #3595

  • Security Allow the admin's HTTP auth provider headers in CORS preflight requests
    • HTTP header auth username and email headers, if configured, are no longer blocked by CORS.
      Backport 782b98a780dac335576b8f43affb4b1a10123882 from #3512
  • Agents Render errors as strings in agent run logs
    • Errors are now rendered as strings in agent run logs. Previously, they rendered as Source: {}, which wasn't helpful.
      Backport d1f18d280fc9d3a985a284c31e819412d2add606 from #3514
  • Rel Check for and remove timescaledb extension

    fix(rel): remove TimescaleDB from existing database if found during upgrade to Postgres 16 on the codeinsights database.
    Backport 71b4af3d6faef054803db0151b2cc7b151bb1c0e from #3556

  • Uncategorized TransformChanges.group.directory should ignore file names

    fix: transformChanges.group.directory now ignores file names
    Backport 3b76fe4ab146565b0e736231353b1e24f1468241 from #3576

  • Uncategorized Do not close stream when tab is unfocused
    • Fixes an (unreleased) issue that could cause duplicate search results when switching between tabs.
      Backport 746a29a25d6e54dfe7ab38f70855a9f58a652426 from #3528

Sourcegraph 6.1.0

o3-mini high available to Enterprise customers

OpenAI o3-mini high reasoning model now available for Enterprise customers. [...]

Prompt template UI changes

Streamlined prompt template UI with context options in @-mentions menu. [...]

Updates to model availability for Cody

Deprecating and removing older models from Cody. [...]

Details

Improvements

  • Cody o3-mini high available to Enterprise customers
  • Agents Allow code review agent to auto-run based on feature flags
    • Code review agents can now automatically run on GitHub Pull Requests (actions: opened and synchronize) based on a feature flag. Both boolean (true/false) and rollout (percentage-based ) feature flags are supported. For example, this means you can enable automatic reviews on 10% of all opened PRs.
  • Agents Report progress with GitHub Commit Status API
    • The Code Review Agent now reports live status with the GitHub Commit Status API making it possible to open Agent logs directly from GitHub.
  • Agents Code reviews deduplicate diagnostics from historical review [CODY-4743]

    Code reviews deduplicate diagnostics from historical reviews

  • Agents Review Diagnostic Feedback [CODY-4951]

    Adds a feedback UI for diagnostics within the Agents app.

  • Agents Make review triggers configurable
    • You can now request review from the Review Agent by posting a pull request comment with a configurable substring
  • Agents Add Run API, view live progress on agent runs
    • Add GET /.api/agents/runs to list runs of an agent, and other related endpoints including the ability to view logs
  • Agents Make Review agent handle large diffs
    • The Review agent can now review larger diffs.
  • Agents Adds Conversation HTTP handlers and generated DB columns [CODY-4751]

    Adds HTTP handlers for /.api/conversations for creating and filtering conversations as well as a DB method for querying conversations.

  • Cody Gateway Add cache related token usage data to telemetry(CODY-4808)

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

  • Cody Gateway Roll out new Gemini Models

    Move Gemini 2.0 Flash from Experimental to GA, add Gemini 2.0 Flash-Lite Preview Experimental and Gemini 2.0 Pro Experimental

  • Rel Add init subsection to release.yaml
    • feat: add init cmd subsection to release.yaml parser
    • feat: add init section to release.yaml
  • Release sg upgradetest
    • allow the upgradetest to be run locally without knowing the bazel invocation required to stamp the build etc
    • unlock local minor and major branch upgradetests
  • Uncategorized Prompt templates editor supports @ current mentions

    feat: prompt templates editor supports dynamic @ mentions

Fixes

  • Authentication Add missing allowSignup option to HTTP header auth provider

    fix/auth: "http-header" auth provider can "allowSignup": false to disable automatic account creation

  • Agents Redirect to settings page after creating agents
    • Creating a new agent now redirects to the settings page for further setup
  • Agents Use globs instead of regexp for include/exclude filters
    • Rule include/exclude patterns are now interpreted as globs (*.go) instead of regexp (.*\.go). Negative include patterns like !*.go will be interpreted as exclude patterns, and vice versa.
  • Rel Fix migrator update check

    fix(rel): fix migrator upgrade check

  • Source Fix inability to update Gerrit code host config URL

    Fix bug where the URL of a Gerrit code host connection could not be updated.

  • Source RepoSource.BitbucketServer.CloneURLToRepoName(): support more URL shapes

    The logic that translates Bitbucket clone URLs to repository names has been fixed to support:

    • URLs that have no scheme (like "bitbucket.sgdev.org/sourcegraph/sourcegraph")
    • SSH clone urls that don't have a ssh:// scheme prefix (like [email protected]:sourcegraph/sourcegraph.git)
  • Source Web: ensure list of external accounts has unique entry for each key

    A bug on the user's account security page that could result in duplicated / buggy entries has been fixed.

  • Uncategorized Server checks reindex at 5.10 now
    • single docker server checks for 5.10-reindex.completed instead of 5.1-reindex.completed
  • Uncategorized Update cody web to 0.31.1 to fix issue with pasting linebreaks

    fix: prompt templates should not fail when pasting linebreaks

Sourcegraph 6.0.2687

This is a patch release for Sourcegraph 6.0.

Details

Improvements

Fixes

  • Source Fix inability to update Gerrit code host config URL (#3361)

    Fix bug where the URL of a Gerrit code host connection could not be updated.

    (cherry picked from commit e6da1ceb9586bf109339f06220c1fdbbf570a6d9)

  • Source Gitserver: Unambiguously identify commit boundaries in git log

    Commit listing should work correctly for repos which contain arbitrary characters in commit messages. This also affects downstream functionality such as commit graph updates needed for precise code navigation.

    Backport 2eae8e1 from #3359

Sourcegraph 6.0.0

Introducing a unified UI for chat and search

Unified interface combining AI-powered chat and code search. [...]

Details

Improvements

  • Code Search Introducing a unified UI for chat and search

    Combines Cody chat and Code Search into a single unified interface.

  • Code Intel Highlights json files with tree-sitter

    Improved highlighting for JSON files

  • Cody Improve rendering of diagnostics as GitHub comments
    • The Review Agent now includes the rule ID when posting comments on pull requests. By default, the minimum review severity is errors (previously it was warning). When the minimum severity is overridden to be warnings, then the review comments will also include the severity.
  • Cody Make Review Agent rule detection configurable
    • Configure custom review rules for the Review Agent by adding *.rule.md files nested under .sourcegraph/ directories in any ancestor director of files in the diff.
  • Cody Sourcegraph Agents
    • New /.api/agents/** endpoints to manage the creation of Sourcegraph Agents (EAP feature).
    • New support to automatically review GitHub Pull Requests with a Review Agent via GitHub Apps (EAP feature).
  • Cody First stab at a Code Review Agent API
    • New GET /.api/tools endpoint to list tool definitions for Sourcegraph API endpoints to use with the LLM /chat/completions endpoint for function calling.
    • New POST /.api/review/diff endpoint to get a list of code review comments given a git diff (including GitHub pull requests and Gitlab merge requests).
  • Agents Make review agent configurable via program files
    • The Review agent now requires the program file .sourcegraph/review-agent.json with at least the content "{}" to enable posting Pull Requests review through the GitHub App. The JSON file may contain additional configuration options to override defaults of the ReviewRequestConfiguration object (see OpenAPI spec)
  • Rel Address pg12 -> pg16 drift with normalization
    • Normalize drift detection to handle for postgres 12 to 16 upgrade
  • Uncategorized Prompt templates now support specific @ mentions

    feat: prompt templates now support specific @ mentions

  • Uncategorized Propagate bestScoringLine and use that to center chunks in the search UI
    • For broad matches, we now center the best-scoring line in search results
  • Uncategorized Add tools support to LLM API (aka. function calling)
    • The /.api/llm/chat/completions endpoint now support function calling via the tools property. This feature works when using the LLM providers: OpenAI, Anthropic, Fireworks, AWS Bedrock, and Gemini.

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

Fixes

  • Code Search Add response telemetry for streaming search

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

  • Code Search VSCode Search extension - auth panel not loading when filesystem is case sensitive
    • fixes 404 errors when trying to load "authSidebar.js" when the Code Search VS Code extension is used with the VSCode Remote SSH extension
  • Code Intel Add DB constraints for syntactic jobs+policies

    In the site admin configuration for code graph policies, restricts the creation of policies for syntactic indexing to HEAD-only. This restriction may be lifted in the future. Policies for precise auto-indexing are not affected.

  • Authentication Improve session expiration behavior

    We are changing the behavior of session expiration to be a hard-cap instead of a rolling window. auth.sessionExpiry will now set a hard-limit on the sessions lifetime, and users will have to re-authenticate after this period. To preserve the previous behavior where sessions would be invalidated after they haven't been used for a while, a new configuration option named auth.maxSessionIdleDuration has been introduced that controls session expiration based on inactivity.

  • Authentication Don't expire sessions based on OAuth token validity

    Fixed an issue where Sourcegraph user sessions initiated via OAuth integrations did not respect the auth.sessionExpiry configuration and expired much earlier.

  • Cody Make public OpenAPI docs work again


    Backport dc8deea005067145855b03a3344675386bc75be7 from #3078

  • Agents Remove leftover printf statement


    Backport 9639850855bb169f7dee4fbcff869c77c17f9328 from #3007

  • Agents Fix bug in AgentStore.ListByWebhookID and LLMChatClient
    • Fixed bug in Review Agent where it didn't post review comments even for small diffs Backport 4710b59 from #3019
  • Multi Tenant Fixes update seats modal max count validation

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

  • Multitenant Add telemetry for when repositories are added or removed

    N/A

  • Multitenant Add telemetry event for when onboarding repository checks fail

    N/A

  • Rel Add handling of cp failure for postgres conf

    fix(rel): add handling for permissions errors when handling custom Postgres configurations in database containers.

    Backport 67bddb2 from #3041

  • Uncategorized Buildkite Pipeline generates images with specific cloud tags for S2 deployments

    NA - no customer facing changes

  • Uncategorized Std upgradetest with pv set doesn't go beyond targetVersion

    NA

  • Uncategorized Don't show current prompt in suggested area

    fix: don't show current prompt in suggestions

Sourcegraph 5.11.6271

This is a patch release for Sourcegraph 5.11.

Sourcegraph 5.11.5234

This is a patch release for Sourcegraph 5.11.

Sourcegraph 5.11.4013

This is a patch release for Sourcegraph 5.11.

Details

Improvements

  • Security Sign release images

    Publish signatures for release containers.
    Backport c11764be4adb377521e4067c4852953d7c434e24 from #2697

  • Uncategorized Allow single container server to run postgresql-16
    • server: runs postgresql from /var/run/postgresql instead of /run/postgresql
      Backport 36c78cdf596e1b22079512931fa526346c2ec821 from #2711

Fixes

  • Rel Recover from unclean database shutdowns in pgsql entrypoint

    fix(rel): fix issue with Postgres docker container failing upgrades after an unclean database shutdown.
    Backport ca5185ce2528b67e1ce6bcb5170f96d3699e11e0 from #2660