Changelog Release 6.0
APRIL 09, 2025

Sourcegraph 6.0

A newer version of Sourcegraph is available: Sourcegraph 6.12.

This page includes all changes for 6.0 and its patch releases. The latest patch for 6.0 is 6.0.12741.

Highlights

Introducing a unified UI for chat and search

Details

Improvements

  • Prompt templates editor supports @ current mentions (#3397)

    feat: prompt templates editor supports dynamic @ mentions

    PR description tips: https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e

  • Cody Gateway Roll out new Gemini Models (#3357)

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


    Co-authored-by: arafatkatze arafat.da.khan@gmail.com (cherry picked from commit 4aa5aa41cc0f5e2be80c77e8e8709e198ff54b94)

    PR description tips: https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e

  • Code Search Introducing a unified UI for chat and search

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

  • Rel Address pg12 -> pg16 drift with normalization
    • Normalize drift detection to handle for postgres 12 to 16 upgrade
  • 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)
  • 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).
  • Prompt templates now support specific @ mentions

    feat: prompt templates now support specific @ mentions

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

  • Code Intel Highlights json files with tree-sitter

    Improved highlighting for JSON files

Fixes

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

    fix: prompt templates should not fail when pasting linebreaks

  • 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

  • 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

  • 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
  • Buildkite Pipeline generates images with specific cloud tags for S2 deployments

    NA - no customer facing changes

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

    NA

  • Multitenant Add telemetry for when repositories are added or removed

    N/A

  • Code Search Add response telemetry for streaming search

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

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

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

  • 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
  • Multi Tenant Fixes update seats modal max count validation

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

  • Don't show current prompt in suggested area

    fix: don't show current prompt in suggestions

  • Multitenant Add telemetry event for when onboarding repository checks fail

    N/A

Other