Tags: sourcegraph/cody
Tags
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  After - 3.7 removed 
[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]>
[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 <think> tags in the ChatMessageContent component. The <think> content is displayed in a collapsible details element, allowing users to view the AI's internal thought process. The MarkdownFromCody component is also updated to allow the <think> element. ## Test plan Ask Cody "how many files are there in the codebase? Enclose your thoughts inside <think> tags before answering" - Verify that <think> 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 <think> element Example: https://github.com/user-attachments/assets/0a5cff8f-1b08-48e4-9cf9-4fd6d13ef05a <br> Backport 710ac73 from #6845 Co-authored-by: Beatrix <[email protected]>
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]>
[Backport M70] update changelog (#7184) ## Test plan update changelog <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. -->
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]>
PreviousNext