Changelog Release 6.0.0
JANUARY 29, 2025

Sourcegraph 6.0.0

A newer patch release is available: 6.0.12741. See all changes in Sourcegraph 6.0.

Highlights

Introducing a unified UI for chat and search

Details

Improvements

  • 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

  • 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