Sourcegraph 7.0.0
What's new, in-product
See what's new in Sourcegraph without leaving the app. [...]
Svelte UI refresh
A comprehensive design refresh with a new theme system and UI refinements. [...]
Configuring Sourcegraph is getting simpler
Administration is becoming simpler to navigate and easier to configure, with clear forms and guided setup flows. [...]
More token-efficient and focused Deep Search
Longer, more focused conversations with Deep Search address context window issues and enable even deeper research. [...]
Connecting Deep Search and code navigation
Code navigation, right inside Deep Search. [...]
Follow the agent's thoughts in Deep Search
Real-time results in Deep Search. [...]
Deep Search image support
Drag and drop images into Deep Search. [...]
Conversations in the fuzzy finder
Quickly find and navigate to Deep Search conversations from anywhere with the fuzzy finder. [...]
MCP usage in Sourcegraph Analytics
Track Sourcegraph MCP tool usage with new dashboards in Sourcegraph Analytics. [...]
Sourcegraph MCP server is now generally available
The Sourcegraph MCP server is now generally available with frictionless OAuth setup enabled by default. [...]
Rich link previews for code searches and file links in Slack
Sourcegraph search and file links now unfurl with rich previews in Slack. [...]
Hardened repository corruption handling
Improved repository availability with enhanced corruption detection, safer optimization coordination, and atomic recovery. [...]
New Sourcegraph API
Bring Deep Search to your custom integrations with the new Sourcegraph API. [...]
Feature removals and deprecations
Software development is changing, and so are its tools. [...]
Details
Improvements
- Deep Search Show truncation warning when DeepSearch answer exceeds output token limit
Deep Search now displays a warning banner when answers are truncated due to output token limits.
- Deep Search Continuous citation numbering across conversation
Citations in Deep Search conversations are numbered continuously across all questions. When the same source is referenced in multiple questions, it reuses the original citation number, making it easier to track sources throughout a conversation. The citations panel auto-scrolls to show relevant sources as you navigate between answers.
- Deep Search Improve "what have I worked on recently" questions
Deep Search now provides better answers to "what have I worked on recently" questions by automatically including current user and date context.
- Deep Search Add conversation search to the fuzzy finder
Added Deep Search conversation search to the fuzzy finder, allowing users to search past conversations by title or content using
Cmd+J(orCtrl+Jon Linux/Windows). - Deep Search Deep Search is now the landing page
- Deep Search Replace Cody Web with Deep Search when enabled
When Deep Search is enabled, it replaces Cody Web in the UI. The /cody/chat route and Cody sidebar are no longer shown.
- Deep Search Reintroduce get_contributor_repos tool
Reintroduced the
get_contributor_repostool to enable queries about contributor activity. - Deep Search Add hot key (cmd+.) to start new Deep Search conversation
Added
Cmd+.(Mac) /Ctrl+.(Windows/Linux) keyboard shortcut to start a new Deep Search conversation from anywhere within the interface. - Deep Search Remember recently used repositories in @mention suggestions
@mention suggestions now remember recently used repositories and show them instantly
- Deep Search Improve streaming UI/UX
Deep Search now streams answers with a typing effect, improving perceived latency.
- Deep Search Add context window indicator
Added context window indicator to inform users of how much of the context window has been used.
- Deep Search Add image support to Deep Search
Include images in Deep Search questions by pasting or dragging up to 2 images per question (5MB max each) to share screenshots, diagrams, or error messages.
- Deep Search Replace CodeExcerpt in file preview with CodeMirrorBlob with proper hover support
File preview in Deep Search now supports code intelligence features including hover tooltips, go to definition, and find references.
- Deep Search Add Slack origin tracking to Deep Search conversations
Deep Search conversations now display a Slack icon in the thread header when initiated from Slack, providing a direct link back to the original Slack thread.
- Deep Search Enable the finder subagent for Deep Search
Deep Search now uses a dedicated subagent for finding relevant files, reducing token usage and allowing more thorough searches before reaching context window limits.
- Code Search Show recent searches in suggestions when input is empty
When the search input is empty, a "Recent searches" suggestion group now appears showing up to 5 of your most recent queries with syntax highlighting and clock icons. Selecting an entry populates the search input with that query.
- Administration Improved authentication page forms
Site admin authentication settings now offer password policy presets (Standard, Strong, Fortress) instead of requiring manual configuration of each complexity rule. Session idle timeout uses an explicit checkbox instead of empty-field conventions. Access request toggle is disabled with an explanation when built-in signup is already enabled.
- Administration Add form-based authentication configuration page
Added a form-based UI for managing authentication settings including session management, signup controls, password policies, and access restrictions, replacing the need to edit raw JSON configuration.
- Administration Dedicated configuration page for TLS
Added a dedicated UI in the site administration area for configuring TLS/mTLS settings.
- Administration Rename Advanced configuration and reorder config section
- Renamed site admin "Site configuration" page to "Advanced configuration" and moved it to the bottom of the Configuration section in the sidebar
- Added vertical resize capability to the JSON settings editor container
- Administration Email settings configuration page
Added a dedicated page in the site administration area for configuring email SMTP settings.
- Administration Allow updating license key from License page
Admins can now update the license key directly from the License page
- Administration Move Background jobs and Code Insights jobs into Diagnostics
Consolidated Background jobs and Code Insights jobs pages as tabs within the Diagnostics page.
- Administration Add tab query params to Diagnostics page
Added query parameters to the Diagnostics page to make tab selection shareable and bookmarkable. Old diagnostic routes now redirect to the new page with the appropriate tab selected.
- Administration Consolidate diagnostic pages under new Diagnostics section
Consolidated Pings, Migrations, Outbound requests, and Slow requests pages under a single "Diagnostics" page in the site admin sidebar.
- Administration Allow site admin to mark an email as verified when creating a user
Administrators can now mark an email as verified when creating a user.
- Administration Reorder and prioritize site admin pages for easier access
Reorganized site admin sidebar navigation: Repositories section now lists repos before code hosts, Users & auth section moved higher, new Integrations section groups Slack/webhooks, and redundant API Console and Documentation links removed.
- Administration Add warning on Repositories page when enforceForSiteAdmins is enabled
A warning is now displayed on the repositories administration page when
authz.enforceForSiteAdminsis enabled. - Authentication Inform users when their session has expired
Users now see a modal informing them their session has expired, with an option to redirect to the sign-in page.
- Authentication Add setup wizards for configuring authentication providers
- Authentication Resolve GitHub privacy emails to Sourcegraph users
GitHub privacy emails (format:
<ID>+<username>@users.noreply.github.com) are now resolved to Sourcegraph users when the GitHub account is linked, improving user attribution on commit pages and other views. - Authentication Enable DCR by default
auth.idpDynamicClientRegistrationEnabledis now enabled by default for easy MCP access. - Authentication Limit DCR to the "mcp" scope only
OAuth Clients registered via Dynamic Client Registration are now limited to the "mcp" scope only, improving security by preventing overly permissive applications.
- Authentication Add "mcp" scope for /.api/mcp
Added a new
mcpscope for issuing access tokens or OAuth tokens with access limited to MCP tools only. This provides a more restricted alternative to the previously requireduser:allscope. - Code Insights Add search bar to All Insights tab
Added a search bar to the Code Insights "All Insights" tab, enabling users to quickly filter insights by title instead of scrolling through paginated results.
- Code Insights GA the Group Results (Compute) Code Insights feature
Group Results (Compute) Code Insights feature is now generally available and no longer requires an experimental feature flag.
- Cody Add Claude Opus 4.6 and Sonnet 4.6 with adaptive thinking support
- Cody Web Upgrade Cody Web to 0.40.0
- Fixed CSS token cascade issues causing broken UI in Cody Web
- Fixed prompts editor layout shifts and focus state
- Fixed modal rendering issues
- Fixed z-index overlaps for tooltips and popovers
- Database Add worker to analyze database tables on weekends
Added a worker that runs ANALYZE on database tables on weekends to optimize query performance.
- Executors Add kubernetes host network config option
Added
KUBERNETES_JOB_HOST_NETWORKenvironment variable for the Executor service to enable host networking for Kubernetes job pods. This is useful when pods need to access routes accessible by the host but not from the pod, such as when running a kind cluster on podman. - MCP Differentiate dotcom MCP tool descriptions
On sourcegraph.com, MCP tool descriptions now explicitly indicate they search open source code, making it easier for AI agents to distinguish between public and private Sourcegraph instances.
- Repositories Show reclone progress on repo mirroring page
Repository recloning operations now display real-time progress updates on the repository mirroring page. The reclone and fetch buttons are hidden while a reclone is in progress.
- Repositories Add optimization coordinator
Gitserver now coordinates optimization tasks per repository, ensuring only one optimization runs at a time with priority-based preemption.
- Repositories Janitor: give optimize repository the ability to write incremental progress reports
Repository optimization now writes incremental progress reports, making it easier to monitor long-running optimization operations.
- Slack Resolve Slack user ID for Deep Search unfurls
This enables us to render the Slack identity of a user instead of just the Sourcegraph username.
- Slack Make Slack integration page indicate how to add profile picture to app
Added instructions for uploading a profile picture to the Slack app.
- Slack Direct messaging support for Deep Search
Users can now send direct messages to the Slack app for Deep Search. To use this feature, uninstall the app, update the manifest, and reinstall the app.
- Slack Rich link previews for Sourcegraph file links
Slack integration now supports rich link previews for code file links.
- Slack Add image support
Slack integration now supports asking Deep Search questions with images in the thread, with a maximum of 2 images per message.
- Slack Use Deep Search ContentBlocks API for thread context
Slack integration now uses the ContentBlocks API to pass thread context as structured data instead of prepending it to the question text.
- Slack Display Slack configuration errors in notification center
Slack configuration errors are now displayed in the Administration -> Notifications area.
- Slack Rich link previews for Sourcegraph Search links
Sourcegraph now supports rich link preview for search links in Slack.
- Slack Use LLM to summarize verbose responses
Verbose responses in Slack now include an AI-generated summary, providing immediate insight before expanding the full response.
- Slack Remove expiration for deferred messages
Removed the 30-minute expiration for deferred Slack messages, so unfurled responses are now always available.
- Slack Deal with verbose responses using interactivity
Added an interactive button to handle lengthy Slackbot responses (over 3,000 characters). Users can choose to view the full response inline or in the Deep Search thread. Full responses are temporarily stored for 30 minutes, after which users must view them in the Sourcegraph instance.
- UI Remove feature flag UI from non-Cody self-hosted instances
Removed the feature flag UI from the site admin interface for all non-Cody self-hosted Sourcegraph instances. Site admins that still need to manage feature flags can do so using the src CLI tool with GraphQL API commands.
- UI Remove feature flag ui from non-cody self-hosted instances #10169
Removed the feature flag UI from the site admin interface for all non-Cody self-hosted Sourcegraph instances. Site admins that still need to manage feature flags can do so using the
srcCLI tool with GraphQL API commands. See this docs page for instructions on how to do so. - UI Improve top-level error page
- UI Move repository routes under /r/ prefix
Repository URLs now use the
/r/prefix (e.g.,/r/github.com/owner/repo). Old top-level repository routes automatically redirect to the new format for backward compatibility. This prevents conflicts between product routes and repository names. - Access Requests Move access requests notification to status badge
Access requests are now displayed as a status notification.
- Changelog Add "What's new" popover for in-product discovery
Added a "What's new" popover in the navigation that displays recent changelog posts, allowing users to discover new features directly within the product.
- Cloud Hide non-actionable UI elements
Hides several admin UI elements on Cloud that are not relevant and actionable to customers on Cloud, including gitserver disk details, email delivery configuration, Updates/Gitserver/Observability pages, OOB migrations, license key form, and gitserver storage warnings.
- Commits Add .patch and .diff handlers for commits
- Diffs Lazily load syntax highlighting for diffs
Diff pages now load faster by initially rendering plaintext hunks and lazily loading syntax highlighting as hunks are scrolled into view.
- Entitlements Add 1 hour option to entitlements
Entitlements now support an hourly option.
- Entitlements Add usage reset action for administrators
Administrators can now reset user entitlement usage via the "Entitlement usage" page.
- Notebooks Add API endpoint to export notebooks data
To support moving off of notebooks, we're providing an exports API. The GraphQL query field
notebookExportsprovides markdown exports of all notebooks with filtering options. - Notifications Add toast notification system to SvelteKit app
Added toast notification system with helper functions and custom Sourcegraph styling for light and dark themes.
Fixes
- Deep Search Improve handling for token limited exceeded errors
Improved error handling when token limits are exceeded by estimating prompt size before LLM calls and ensuring errors are displayed in the UI.
- Deep Search Fix tool displays in case of 0 results
Fixed tool renderers to display "0 results" instead of raw JSON when no results are found.
- Deep Search Add persistence / resume questions if backend is interrupted
Deep Search now resumes automatically after server restarts instead of getting stuck in a pending state.
- Deep Search Hide support contact link for non-admin users
- Deep Search Fix text clipping in mermaid diagram nodes
- Deep Search Fix horizontal scroll inside deep search file preview
- Deep Search Add support for additional languages in code highlighting
Added support for Proto/Protobuf, SCSS, Groovy, PowerShell, CMake, and Makefile highlighting in Deep Search markdown code blocks.
- Deep Search Fix file preview header icon sizing and alignment
- Deep Search Check if url has externalURL before trying to mangle it to be absolute.
Fixed URLs in deep search results being incorrectly double-prepended with the domain when they already contained the external URL.
- Deep Search Treat deletion as cancellation
Fix errors when deleting Deep Search conversations while they are still processing.
- Deep Search Prevent horizontal scrolling for context chips
Fixed horizontal scrolling in the Deep Search sidebar when a long filename context chip was displayed.
- Deep Search Hide divider on small screens
Fixed a visual bug where a draggable divider line appeared on the right edge of Deep Search on narrow screens.
- Code Search Fix search input history overflowing
Fixed overflow issue in search input history mode
- Code Search Preserve file view when clicking search-based symbols
Search-based symbols in the symbol tree now preserve the current file view (e.g., blame view) instead of resetting to code/raw view.
- Code Intel Fix code intel preview alignment with blame panel
Fixed alignment of code intelligence preview popover when blame panel is visible
- Batch Changes Fix batch change state pill alignment
Fixed inconsistent alignment of the batch change state pill (OPEN/CLOSED badge) in the batch changes list.
- Batch Changes Add OAuth scope validation for GitLab tokens
GitLab OAuth tokens are now properly validated using the
/oauth/token/infoendpoint to check scopes, while personal access tokens continue to use the/userendpoint. This ensures correct token validation behavior for both authentication methods. - Batch Changes Show auth errors in the UI
When connecting a code host identity to Batch Changes, errors are now correctly surfaced in the UI.
- Batch Changes Correct repo patterns in batch spec library template
Fixed incorrect pattern syntax in the "GitHub Actions: Pin Versions" batch spec template to use proper regex instead of glob syntax
- Batch Changes Cascade cleanup changesets when deleting batch changes
Fixed database constraint violations when recreating batch changes in the same repositories by properly cleaning up associated changesets during deletion
- Administration Fix "No newline at end of file" marker in site config change history diffs
- Administration Use graphql instead of rest endpoint for username check
Fixed a bug where users (including service accounts) could not be created by a site admin when signup is disabled.
- Administration Improve performance of fetching site config history
Site configuration history now loads significantly faster in many cases.
- Administration Prevent stale site-config from showing after saving
Fixed site config occasionally reverting to old config after saving
- Administration Prevent stale config from being returned after saving
Fixed an issue where site config would occasionally revert to old config after saving
- Authentication Permissions: mark certain ( 429, 500, 502, 503, or 504 HTTP server errors) as temporary errors when failing to refresh an oauth token
Sourcegraph will now avoid dropping a user's repository permissions if it encounters a 429, 500, 502, 503, or 504 when refreshing the OAuth access token (as encountered during the Feb 9 GitHub incident: https://www.githubstatus.com/incidents/lcw3tg2f6zsd). The permission syncer will simply re-use the users' old permissions until the next sync.
- Authentication Do not grant client_credentials scope to global OAuth apps
- Authentication Do not show SCIM alert for non-SCIM controlled users
- Authentication Fix token refresh race condition and stale account linkage
- Fixed race condition in OAuth token refresh that could cause
invalid_granterrors when concurrent refresh attempts occurred - Fixed stale external account linkage when users reconnect their OAuth accounts, ensuring token refresh uses the correct refresh token
- Fixed race condition in OAuth token refresh that could cause
- Code Insights Remove grid layout animation to reduce visual noise
Removed distracting fly-in animation when loading Code Insights dashboards
- Code Monitor Skip invalid repos to avoid infinite loops
Skip invalid repositories (deleted or not cloned) to prevent infinite processing loops
- Code Monitor Accept all HTTP 2xx status codes for webhooks
Code monitor webhooks now accept all HTTP 2xx status codes (200-299) as successful responses, preventing duplicate notifications when webhook endpoints return HTTP 202 Accepted or other 2xx codes.
- Code Monitor Spread out gitserver pressure by using jitter in code monitors
Reduce concurrent load on gitserver by spreading out code monitor queries with jitter
- Cody Web Re-enable Cody Web in Safari
Long gone because of webworker issues in Safari, Cody Web is now available again.
- Executors Improve error reporting of failed pods when executing jobs on k8s
Report which container failed if an executor pod fails when executing on Kubernetes.
- Executors Join kubernetes job command with space instead of semi-colon
Fixed executors on Kubernetes joining commands incorrectly
- Executors Handle long executors names better
Improve page that lists executor instances to better handle instances with extremely long names
- GitHub Populate profile URL when authenticating via OAuth
When connecting a GitHub external account to Sourcegraph, the user's GitHub profile link is now properly displayed on the Account Security page. If the link is not visible, remove and re-add the GitHub connection.
- GraphQL Add missing sync reasons to group
Fixed missing sync reasons in the SOURCEGRAPH group for the permissionsSyncJobs API.
- Inference Validate tool call arguments before execution
Fixed an issue where Anthropic models could produce malformed tool call arguments, causing Deep Search conversations to become stuck in an errored state.
- Licensing Fix stale validation states when updating license keys
Fixed stale license validation states being used after updating license keys, ensuring validation results always correspond to the currently configured key.
- MCP Add --scopes to codex mcp guidance
Added
--scopes mcpargument to the MCP login command to ensure proper OAuth scope grants for MCP functionality. - Security Upgrade go-tuf to v2.4.1 for CVE fixes
Upgraded go-tuf dependency to v2.4.1 to fix three medium-severity security vulnerabilities (CVE-2026-23991, CVE-2026-23992, CVE-2026-24686).
- Slack Show actual error messages in Slack search link previews
Show the right error message in Slack search link preview when there is a query syntax error
- Slack Resolve confusing setup UI state indicating Slack integration is broken, when in reality all is fine
Fixed confusing UI state in Administration -> Slack configuration where the UI showed a warning that Slack couldn't contact the Sourcegraph instance even when the integration was working correctly. The UI now displays a cache-busting
?retryURL parameter to force Slack to re-verify the connection. - TLS Fail fast for TLS errors
- UI Safari video playback in Markdown component
Fixed video playback in Safari for Markdown-rendered content
- UI Add top padding to permissions table cells and remove border/padding on last row
- UI Fix padding in code host connections page
- UI Fix background colors for diffs and other CSS variable issues
- UI Fix floating UI z-index stacking for app shell container
Fixed z-index stacking issue where app shell floating elements incorrectly appeared above survey toasts and feedback modals
- UI Fix temporary settings UI flash problem
Fixed UI flash when loading temporary settings from cache
- UI Increase max width on `MultiCombobox` popovers
- Account Security Show connected profile
The "Account security" page now displays the login for each connected external account (e.g., GitHub, GitLab).
- Blame Fix line number shifting when switching modes
Fixed line number alignment when switching to blame view
- Commits Fix sticky file header on commit page
Fixed sticky file header positioning on commit page
- Image Viewer Fix image alignment in image viewer
Fixed image alignment in the image viewer and now always display the dimensions of binary images.
- Pagination Fix cursor-based pagination to respect filters
Fixed cursor-based pagination to correctly apply filters when using multi-column cursors. Previously, filters (such as search queries or clone status) were silently ignored for a subset of results due to SQL operator precedence, causing paginated endpoints to return more results than expected and include items that didn't match the filter criteria.
- User Settings Make page headers consistent in user settings
User settings page headers now have a consistent appearance across all sections.
Removed
- Deep Search Don't force Mermaid tool on every execution
Deep Search no longer generates diagrams by default, making responses faster and more responsive. You can still request diagrams anytime by including "draw a diagram" or similar in your query.
- Code Intel Hide implementations/supers for search-based explore
Hid implementations and supers buttons in the explore panel when using search-based code navigation, as these features are only supported by precise code intelligence.
- Batch Changes Remove experimental tag from fine-grained access token
- Database Remove Postgres 12 support
Removed automatic PostgreSQL 12 to PostgreSQL 16 upgrade support from builtin Sourcegraph database containers (pgsql, codeintel-db, and codeinsights-db).
- Inference Remove sunset Gemini and Mistral models
Removed support for generation 1 Gemini models (no longer accessible) and Mistral models (no longer deployed on Fireworks serverless).
- Observability Deprecate built-in Jaeger exporter
Deprecated
observability.tracing.type: "jaeger"; use"opentelemetry"with an OTLP-compatible collector instead - Autoupgrade Remove the supporting funcs and methods of autoupgrade
Remove autoupgrade supporting functions and methods
- Cloud Remove feature flag UI
Removed feature flag UI access for non-Sourcegraph operators in Cloud environments.
- Deployment Sunset single-container Sourcegraph server deployment
Removed the single-container (sourcegraph/server) deployment mode. The sourcegraph/server Docker image is no longer published. Customers must migrate to Docker Compose or Kubernetes before upgrading to 7.0.0.
- Notebooks Remove notebooks feature
Search Notebooks pick up on the idea that most searches are not just one search. In a common workflow, you run multiple searches, gather several pieces of information, and then you compile your final answer from all these sources. Back in 2022, Notebooks solved a real need to be able to document and share that research trail.
Sound familiar? Notebooks are reflecting the steps a Deep Search takes to compile it's answer. It collects citations and the answer in a central place. We believe that the future lies much more in this agent-driven code exploration and future iterations of it than the manual Notebooks idea that predates the AI era.
- Own Remove experimental teams features and assigned ownership
Removed explicit code ownership assignment and teams management from the web app. Codeowners files are still processed and this information is still available via search and the ownership panel.
Other
- Code Search Swap content based language detection to site configuration setting instead of feature flag
Migrated the
search-content-based-lang-detectionfeature flag to thesearchContentBasedLanguageDetectionsite configuration setting. Customers who previously had the flag enabled and would like to continue using this feature should enable it in their site configuration settings. - Cody Move /api/openapi to /legacy/openapi
- The
/api/openapi/pages, home to the Cody API, have been moved to/legacy/openapi/. Existing links are redirected. - Integrations going forward should use the new official Sourcegraph API documented in
/external-api.
- The
- GraphQL Move GraphQL console from /api/console to /debug/console
- Moved the GraphQL API console from
/api/console/to/debug/console/to reflect its role as an internal API. Existing links are redirected. - Going forward, external integrations should use the new official Sourcegraph API documented in
/external-api.
- Moved the GraphQL API console from
- Observability Upgrade OpenTelemetry collector and SDKs
Upgrade opentelemetry-collector to v0.144.0.