Skip to content

Commit b397599

Browse files
committed
Add support for selecting a default agentic search configuration and improve CLI settings management
- Default agent for 'agentic search' is being unset when updating the agent's flags - in default configuration use the same approach to description as in the list above - what are these doing here [Fragment] and [Fragment] ├── apps │ └── editor │ ├── package.json │ └── src │ ├── commands │ │ └── apply-response-command │ │ └── response-processor │ │ └── handlers │ │ └── diff-handler.ts │ ├── features │ │ ├── agentic-search │ │ │ └── agentic-search.ts │ │ └── search-files │ │ └── utils │ │ └── create-search-regex.ts │ ├── i18n │ │ └── translations │ │ └── utils │ │ └── agentic-cli-invocation.ts │ ├── types │ │ └── cli-configuration.ts │ ├── utils │ │ ├── agentic-cli-invocation │ │ │ └── invoke-agentic-cli.ts │ │ └── cli-configuration-format-converters.ts │ └── views │ ├── prompt │ │ └── frontend │ │ └── Main │ │ └── MainView │ │ ├── MainView.tsx │ │ └── hooks │ │ └── use-last-choice-tooltip.ts │ ├── settings │ │ ├── backend │ │ │ ├── message-handlers │ │ │ │ └── handle-update-cli-configuration.ts │ │ │ └── settings-view-provider.ts │ │ ├── frontend │ │ │ ├── Home │ │ │ │ └── sections │ │ │ │ └── CliSection.tsx │ │ │ ├── Settings.tsx │ │ │ └── i18n │ │ │ └── translations │ │ │ └── cli.ts │ │ └── types │ │ └── messages.ts │ └── shared │ ├── actions │ │ └── agent │ │ └── update.ts │ ├── forms │ │ └── EditCliConfigurationForm │ │ └── EditCliConfigurationForm.tsx │ └── i18n │ └── translations │ └── edit-cli-configuration-form.ts ├── media │ └── README.md └── packages └── ui └── src └── components └── editor └── settings ├── DefaultConfigurationSelector │ ├── DefaultConfigurationSelector.module.scss │ └── DefaultConfigurationSelector.tsx ├── Item │ ├── Item.module.scss │ └── Item.tsx └── SortableList ├── SortableList.module.scss └── SortableList.tsx
1 parent fe578fe commit b397599

9 files changed

Lines changed: 28 additions & 16 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
4-
"description": "CWC makes AI coding blazing fast, for everyone",
4+
"description": "CWC makes AI coding blazing fast, for everyone!",
55
"version": "2026.924.181",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",

‎apps/editor/src/utils/cli-configuration-format-converters.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type ConfigAgentConfigurationFormat = {
66
agent: keyof typeof AGENTS
77
flags?: string
88
isPinned?: boolean
9+
isDefaultForAgenticSearch?: boolean
910
}
1011

1112
export const config_cli_configuration_to_ui_format = (

‎apps/editor/src/views/settings/frontend/Home/sections/CliSection.tsx‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ export const CliSection = forwardRef<HTMLDivElement, Props>((props, ref) => {
6363
: config.name.replace(/ \(\d+\)$/, '')
6464

6565
const details: string[] = []
66-
if (is_unnamed) {
67-
// ...
68-
} else {
66+
if (!is_unnamed) {
6967
details.push(config.agent)
7068
}
7169

@@ -154,10 +152,19 @@ export const CliSection = forwardRef<HTMLDivElement, Props>((props, ref) => {
154152
? config.agent
155153
: config.name.replace(/ \(\d+\)$/, '')
156154

155+
const details: string[] = []
156+
if (!is_unnamed) {
157+
details.push(config.agent)
158+
}
159+
160+
if (config.flags) {
161+
details.push(config.flags)
162+
}
163+
157164
return {
158165
id: config.name,
159166
model: display_name,
160-
description: config.agent
167+
description: details.join(' · ')
161168
}
162169
})}
163170
on_unset={() =>

‎apps/editor/src/views/shared/actions/agent/update.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ export const update = async (params: {
109109
)
110110
}
111111
} else if (cli_configuration_index != -1) {
112-
updated_cli_configurations[cli_configuration_index] =
113-
ui_cli_configuration_to_config_format(updated_ui_cli_configuration)
112+
updated_cli_configurations[cli_configuration_index] = {
113+
...updated_cli_configurations[cli_configuration_index],
114+
...ui_cli_configuration_to_config_format(updated_ui_cli_configuration)
115+
}
114116
}
115117

116118
await config.update(

‎packages/ui/src/components/editor/prompt/ResponsePreview/ResponsePreview.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
text-overflow: ellipsis;
140140

141141
> span:last-child {
142-
opacity: 0.7;
142+
var(--dimmed-opacity);
143143
margin-left: 0.5em;
144144
font-size: 0.9em;
145145
}

‎packages/ui/src/components/editor/prompt/ResponsePreview/components/FileItem/FileItem.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
white-space: nowrap;
7979

8080
> span:last-child {
81-
opacity: 0.7;
81+
var(--dimmed-opacity);
8282
margin-left: 0.5em;
8383
font-size: 0.9em;
8484
}

‎packages/ui/src/components/editor/prompt/Tasks/Tasks.module.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
color: var(--cwc-text-color-dimmed);
6363
&--checked {
6464
text-decoration: line-through;
65-
opacity: 0.7;
65+
var(--dimmed-opacity);
6666
}
6767
}
6868

@@ -97,7 +97,7 @@
9797

9898
&--checked {
9999
text-decoration: line-through;
100-
opacity: 0.7;
100+
var(--dimmed-opacity);
101101
}
102102

103103
&--placeholder {

‎packages/ui/src/components/editor/settings/DefaultConfigurationSelector/DefaultConfigurationSelector.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313

1414
.description {
15-
opacity: 0.5;
15+
var(--dimmed-opacity);
1616
white-space: nowrap;
1717
overflow: hidden;
1818
text-overflow: ellipsis;

‎packages/ui/src/components/editor/settings/DefaultConfigurationSelector/DefaultConfigurationSelector.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export namespace DefaultConfigurationSelector {
77
export type Configuration = {
88
id: string
99
model: string
10-
description: string
10+
description?: string
1111
}
1212

1313
export type Translations = {
@@ -49,9 +49,11 @@ export const DefaultConfigurationSelector: React.FC<
4949
description={
5050
<div className={styles.info}>
5151
<span className={styles.model}>{selected_config.model}</span>
52-
<span className={styles.description}>
53-
{selected_config.description}
54-
</span>
52+
{selected_config.description && (
53+
<span className={styles.description}>
54+
{selected_config.description}
55+
</span>
56+
)}
5557
</div>
5658
}
5759
slot_right={

0 commit comments

Comments
 (0)