paviko 2 месяцев назад
Родитель
Сommit
f4c95184c8

+ 1 - 1
hosts/jetbrains-plugin/build.gradle.kts

@@ -5,7 +5,7 @@ plugins {
 }
 
 group = "paviko.opencode"
-version = "26.1.11"
+version = "26.1.17"
 
 repositories {
     mavenCentral()

+ 2 - 1
hosts/jetbrains-plugin/changelog.html

@@ -1,9 +1,10 @@
 <h2>OpenCode UX+ (unofficial) JetBrains Plugin Changelog</h2>
 
-<h3>26.1.xx</h3>
+<h3>26.1.17</h3>
 <ul>
   <li>Added support for "Question" tool</li>
   <li>Added model "variants" - reasoning effort</li>
+  <li>Fixed Agents modes list</li>
   <li>Fixed some models name on Recent list</li>
   <li>Updated OpenCode to v1.1.24</li>
 </ul>

+ 8 - 1
hosts/vscode-plugin/CHANGELOG.md

@@ -5,13 +5,20 @@ All notable changes to the OpenCode VSCode extension will be documented in this
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec2.0.0.html).
 
-### [26.1.xx] - 2026-01-xx
+### [26.1.17] - 2026-01-17
 
 - Added support for "Question" tool
 - Added model "variants" - reasoning effort
+- Fixed Agents modes list
 - Fixed some models name on Recent list
 - Updated OpenCode to v1.1.24
 
+### [26.1.11] - 2026-01-11
+
+- Session errors now display in the chat instead of toast
+- Session Retry: Added retry functionality for failed sessions
+- Updated OpenCode to v1.1.11
+
 ### [26.1.5] - 2026-01-05
 
 - Updated OpenCode to v1.1.2

+ 1 - 1
hosts/vscode-plugin/package.json

@@ -2,7 +2,7 @@
   "name": "opencode-ux-plus",
   "displayName": "OpenCode UX+ (unofficial)",
   "description": "Unofficial OpenCode VSCode extension",
-  "version": "26.1.11",
+  "version": "26.1.17",
   "publisher": "paviko",
   "author": {
     "name": "paviko"

+ 4 - 2
packages/opencode/webgui/src/components/AgentSelector.tsx

@@ -32,8 +32,10 @@ export function AgentSelector({ selectedAgent, onSelect, disabled }: AgentSelect
         }
 
         if (response.data) {
-          // Filter agents to only show 'primary' and 'all' modes (not 'subagent')
-          const filteredAgents = response.data.filter((agent) => agent.mode === "primary" || agent.mode === "all")
+          // Filter agents to only show 'primary' and 'all' modes (not 'subagent') and hide 'hidden' agents
+          const filteredAgents = response.data.filter(
+            (agent: any) => agent.mode !== "subagent" && !agent.hidden,
+          )
           setAgents(filteredAgents)
         }
       } catch (err) {

+ 8 - 5
packages/opencode/webgui/src/hooks/useMentionSearch.ts

@@ -63,11 +63,14 @@ export function useMentionSearch(query: string): UseMentionSearchResult {
         if (agentsResponse.status === "fulfilled" && agentsResponse.value.data) {
           const agents = agentsResponse.value.data
           for (const agent of agents) {
-            agentResults.push({
-              id: `agent:${agent.name}`,
-              metadata: { type: "agent", display: agent.name, name: agent.name },
-              score: 0,
-            })
+            // Filter agents: hide hidden agents and exclude 'primary' mode agents from mentions
+            if (!(agent as any).hidden && agent.mode !== "primary") {
+              agentResults.push({
+                id: `agent:${agent.name}`,
+                metadata: { type: "agent", display: agent.name, name: agent.name },
+                score: 0,
+              })
+            }
           }
         }