Skip to content

Tags: sourcegraph/cody

Tags

vscode-insiders-v1.71.1740529642

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(Inline Edit): removes reasoning models from selector (#7238)

This PR addresses the issue where models with reasoning capabilities
were causing edits to fail when selected in the Inline Edit model
selector.

Changes Made

- Added logic to filter out the ModelUsage.Edit capability from any
model that has the reasoning capability Introduced new model
capabilities reasoning and tools to properly identify models with these
features Added corresponding model tags Reasoning and Tools to the tag
enum Updated code to maintain the model capabilities but selectively
remove edit usage when reasoning is detected Added entry to the
changelog to document this fix
- Implementation Details
- The core fix is implemented by checking if a model's capabilities
include 'reasoning' and, if so, removing the Edit usage from that
model's available usages. This prevents reasoning-enabled models from
appearing in the Inline Edit model selector while maintaining their
availability for chat and other supported features.

## Test Plan

The change has been tested to ensure that:

- Reasoning models no longer appear in the Inline Edit model selector 
- Reasoning models remain available for chat and other supported
features
- Non-reasoning models with edit capability still work as expected

Before - connect to dotcom and open the inline edit model selector, 3.7
sonnet is listed in the dropdown


![image](https://github.com/user-attachments/assets/585dc922-5eb1-4009-8e03-28826013c4f4)


After - 3.7 removed


![image](https://github.com/user-attachments/assets/df30e861-08a1-4b1d-a9b3-545635f280a4)

vscode-v1.70.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[Backport M70] Changelog for 1.70.3 (#7213)

Automated release and changelog for VS code Cody 1.70.3 \n ## Test plan
\n N/A - changelog update <br> Backport
62d73f7 from #7212

Co-authored-by: sourcegraph-bot-devx <[email protected]>

vscode-insiders-v1.71.1740433710

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[Backport M72] feat(webview): add support for <think> tags in Chat Me…

…ssage (#7209)

RE: https://linear.app/sourcegraph/issue/CODY-4785

This PR adds a simple hack to support rendering &lt;think&gt; tags in
the ChatMessageContent component.

The &lt;think&gt; content is displayed in a collapsible details element,
allowing users to view the AI&#39;s internal thought process.

The MarkdownFromCody component is also updated to allow the
&lt;think&gt; element.


## Test plan



Ask Cody &quot;how many files are there in the codebase? Enclose your
thoughts inside &lt;think&gt; tags before answering&quot;

- Verify that &lt;think&gt; tags are properly extracted and displayed in
the ChatMessageContent component
- Ensure that the collapsible details element functions as expected,
allowing users to view the think content
- Confirm that the MarkdownFromCody component correctly renders the
&lt;think&gt; element

Example:



https://github.com/user-attachments/assets/0a5cff8f-1b08-48e4-9cf9-4fd6d13ef05a

 <br> Backport 710ac73 from #6845

Co-authored-by: Beatrix <[email protected]>

vscode-insiders-v1.71.1740336433

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix(chat): prompt caching feature flag enrollement (#7177) (#7188)

This commit fixes a bug in the prompt caching feature flag
implementation where we were incorrectly using the enrollment event
result instead of the actual feature flag value. This caused prompt
caching to be enabled for all users regardless of their feature flag
state.

Key changes:
- Added proper feature flag value tracking in PromptBuilder using a
PromptCachingSetting interface
- Separated the enrollment event logging from the feature flag
evaluation
- Ensures the feature flag value is correctly respected while still
tracking enrollment events

The fix maintains proper A/B testing capabilities while correctly
respecting the intended feature flag distribution for prompt caching
functionality.

<!-- Required. See

https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

prompt caching should not be used for users who are not enrolled
(non-dot com users)

(cherry picked from commit 9cc2415)


## Test plan

<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

Co-authored-by: Beatrix <[email protected]>

vscode-v1.70.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[Backport M70] update changelog (#7184)

## Test plan
update changelog
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

vscode-insiders-v1.71.1740356887

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update changelog to 1.70.2 (#7183)

## Test plan
Update changelog
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

---------

Co-authored-by: Beatrix <[email protected]>