Skip to content

Commit f4c9518

Browse files
committed
Fixed Agents modes list
1 parent 513656a commit f4c9518

File tree

6 files changed

+24
-11
lines changed

6 files changed

+24
-11
lines changed

hosts/jetbrains-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "paviko.opencode"
8-
version = "26.1.11"
8+
version = "26.1.17"
99

1010
repositories {
1111
mavenCentral()

hosts/jetbrains-plugin/changelog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<h2>OpenCode UX+ (unofficial) JetBrains Plugin Changelog</h2>
22

3-
<h3>26.1.xx</h3>
3+
<h3>26.1.17</h3>
44
<ul>
55
<li>Added support for "Question" tool</li>
66
<li>Added model "variants" - reasoning effort</li>
7+
<li>Fixed Agents modes list</li>
78
<li>Fixed some models name on Recent list</li>
89
<li>Updated OpenCode to v1.1.24</li>
910
</ul>

hosts/vscode-plugin/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ All notable changes to the OpenCode VSCode extension will be documented in this
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec2.0.0.html).
77

8-
### [26.1.xx] - 2026-01-xx
8+
### [26.1.17] - 2026-01-17
99

1010
- Added support for "Question" tool
1111
- Added model "variants" - reasoning effort
12+
- Fixed Agents modes list
1213
- Fixed some models name on Recent list
1314
- Updated OpenCode to v1.1.24
1415

16+
### [26.1.11] - 2026-01-11
17+
18+
- Session errors now display in the chat instead of toast
19+
- Session Retry: Added retry functionality for failed sessions
20+
- Updated OpenCode to v1.1.11
21+
1522
### [26.1.5] - 2026-01-05
1623

1724
- Updated OpenCode to v1.1.2

hosts/vscode-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "opencode-ux-plus",
33
"displayName": "OpenCode UX+ (unofficial)",
44
"description": "Unofficial OpenCode VSCode extension",
5-
"version": "26.1.11",
5+
"version": "26.1.17",
66
"publisher": "paviko",
77
"author": {
88
"name": "paviko"

packages/opencode/webgui/src/components/AgentSelector.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export function AgentSelector({ selectedAgent, onSelect, disabled }: AgentSelect
3232
}
3333

3434
if (response.data) {
35-
// Filter agents to only show 'primary' and 'all' modes (not 'subagent')
36-
const filteredAgents = response.data.filter((agent) => agent.mode === "primary" || agent.mode === "all")
35+
// Filter agents to only show 'primary' and 'all' modes (not 'subagent') and hide 'hidden' agents
36+
const filteredAgents = response.data.filter(
37+
(agent: any) => agent.mode !== "subagent" && !agent.hidden,
38+
)
3739
setAgents(filteredAgents)
3840
}
3941
} catch (err) {

packages/opencode/webgui/src/hooks/useMentionSearch.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ export function useMentionSearch(query: string): UseMentionSearchResult {
6363
if (agentsResponse.status === "fulfilled" && agentsResponse.value.data) {
6464
const agents = agentsResponse.value.data
6565
for (const agent of agents) {
66-
agentResults.push({
67-
id: `agent:${agent.name}`,
68-
metadata: { type: "agent", display: agent.name, name: agent.name },
69-
score: 0,
70-
})
66+
// Filter agents: hide hidden agents and exclude 'primary' mode agents from mentions
67+
if (!(agent as any).hidden && agent.mode !== "primary") {
68+
agentResults.push({
69+
id: `agent:${agent.name}`,
70+
metadata: { type: "agent", display: agent.name, name: agent.name },
71+
score: 0,
72+
})
73+
}
7174
}
7275
}
7376

0 commit comments

Comments
 (0)