AISpot

OpenCode 2.2.3 內建 Claude Agent,可用 Claude Code 登入

OpenCode releases版本更新開發工具開源

OpenCode v2.2.3 新增內建 Claude Agent provider:安裝 Claude Code 並執行 claude auth login 後,在 /connect 中選擇 Claude Agent,即可複用 Claude Code 的登入與模型。桌面端長會話的流式回覆與渲染開銷大幅降低,並修復側欄標籤失效、重複彈出「Session not found」以及通過 HTTP 開啟檔案的問題。

官方在開源客戶端裡接入 Claude Code 登入,多了一條用既有 Claude 帳號驅動 coding agent 的路徑;同時給出 OpenTUI 0.8 與策略配置的破壞性變更,升級前值得核對。

原標題:v2.2.3
閱讀原文

評分68 / 78(平均 73,門檻 60)
狀態精選

全文翻譯

亮點 在 OpenCode 中使用 Claude Code:安裝 Claude Code,執行 claude auth login,然後在 /connect 中選擇 Claude Agent,以使用你的 Claude Code 登入和模型。(#58782) 桌面端更快的長會話:流式回覆和長對話現在執行的渲染工作大幅減少。(#60489、#60521、#60513、#60481) 桌面端穩定性修復:修復了側邊欄標籤頁、反覆出現的“Session not found”提示,以及通過 HTTP 開啟檔案的問題。(#60430、#60436、#60459、#60462) 破壞性變更 TUI 外掛需要 OpenTUI 0.8 @opencode/plugin 現在要求 @opentui/core 和 @opentui/solid 為 0.8.0 或更高版本。在 OpenTUI 0.8 中,ScrollBox 的 wrapper、viewport、content 和 scrollbars 是外觀物件,而不是可渲染物件,並且自訂 RenderContext 必須實現 clock 和 onAnimationTick。請參閱 OpenTUI 0.8.0 發布說明。(#60385) 託管策略:integration.use 僅涵蓋整合 integration.use 現在控制可以使用哪些整合帳戶,而新增的 mcp.use、skill.use 和 plugin.use 操作分別控制 MCP 伺服器、技能和外掛。使用舊 mcp:、skill: 和 plugin: 資源字首的規則會被自動轉換,但僅含 integration.use 的規則不再適用於 MCP 伺服器、技能或外掛。(#60315) 核心 改進 新增內建 Claude Agent 提供程式。安裝 Claude Code,執行 claude auth login,然後在 /connect 中選擇 Claude Agent;OPENCODE_CLAUDE_PATH 可覆蓋 Claude 執行檔。感謝 @Tarquinen。(#58782) 為實驗性計劃新增 Code Mode JavaScript 檢查,包括靜態授權的工具呼叫、持久狀態和自訂喚醒訊息。(#60140) 新增獨立的託管策略操作,分別用於連線整合以及使用整合、MCP 伺服器、技能和外掛。(#60315) 缺陷修復 保留了外掛提供的模型變體,並將動態提供程式回退延遲到外部 SDK 鉤子執行之後。(#60097、#60380) 在 MCP 失敗中保留了權限原因和反饋,並使 Code Mode 失敗與直接工具呼叫失敗保持一致。(#60102、#60109) 修復了無效的 Code Mode 計劃檢查,使建立立即失敗,現有無效檢查暫停且不會重複執行。(#60349) 刪除會話時,移除了該會話的持久終端。(#60322) 防止巢狀工具進度替換父級 execute 呼叫行。(#60480) TUI 改進 為實驗性 media_blob 啟用時儲存的影像引用新增了懶載入。影像僅用於預覽時下載,而撤銷、回退、分叉和提示召回會安全地恢復引用的附件。( #60116 ) 在新設計中為選中的編輯器建議新增了獨特的標記。( #60393 ) Bug 修復 修復了沒有開頭 <?php 標籤的程式碼塊的 PHP 語法高亮。( #60359 ) 在檔案搜尋路徑中保留 #,除非它引入有效的行範圍。( #60336 ) 在配置重新載入後保留配置的預設游標樣式。( #60302 ) 當選擇對話方塊沒有查詢時,將搜尋游標匹配到高亮行。( #60310 ) 桌面版 改進 在設定 → 通用下新增了桌面拼寫檢查開關,並在 Windows 和 Linux 上新增了系統語言詞典選擇。( #59129 ) 新增了從編輯器進行 PageUp 和 PageDown 時間線翻頁,而不會移動草稿游標或焦點。( #59426 ) 在設定 → 通知 → 問題下新增了可獨立配置的問題通知和聲音。感謝 @YuriNek0 。( #60358 ) 為新會話控制元件新增了單獨的專案和工作樹操作。( #60486 ) 在設定 → 關於中新增了一鍵複製版本。( #52356 ) 在工作區設定中對新增的專案進行了分組。( #60221 ) 使問題-答案文字可選擇。( #60372 ) 使會話標題適應狹窄的時間線寬度。( #59512 ) Bug 修復 側面板標籤再次關閉,新建標籤啟動器回應點選,修復了 2.2.2 的迴歸問題。( #60430 , #60436 ) 在通過 HTTP 的 Web 應用中,在側面板中開啟檔案再次正常工作。( #60462 ) 在移動端保持問題選項和提交控制元件可訪問。( #60335 ) 在開啟會話時保留同時進行的請求通知和收件箱滾動位置。( #60378 , #60356 ) 修復了連續拖放檔案的問題,以便每個檔案提及都插入到編輯器中。( #60463 ) 在指標靜止時結果更新期間,保持當前 @ 和命令選單選擇穩定。( #59434 , #60368 ) 修復了 ⌘W 關閉側面板以及在沒有可關閉標籤剩餘時的焦點恢復。( #59002 , #60435 ) 在會話載入時保持移動會話抽屜開啟。( #59427 ) 在儲存的顯示器上恢復最大化的視窗,並在共享會話視窗之間保留渲染器權限。( #60482 , #60458 ) 修復了長時間會話中的時間線增長、縮放結束滾動、高亮和 DOM 觀察器效能問題。( #60489 , #60481 , #60488 , #60513 , #60521 ) 保留髮布日期未知的模型可見。感謝 @joe-ieta 。( #60496 ) 修復了通過變體或相容性後設資料暴露推理能力的模型的推理能力檢測。( #60457 ) 在收到 404 後清除已刪除的會話,而不是重試或顯示重複錯誤。( #60459 ) 修復了 macOS 應用程式圖示,並嚮應用包新增了所需的資料夾訪問描述。( #60020 , #60503 ) SDK 改進 當生成、物件生成或工具迴圈失敗時,在 AIError.partial 上保留部分 LLMResponse 輸出。( #60477 ) 圍繞 tool(...) 統一了 Effect 和 Promise 工具宣告,支援可選輸出模式以及可執行工具或僅宣告工具。( #60407 ) 向 Responses 路由新增了帶型別的 OpenRouter debug 、 models 、 plugins 、 provider 和 user 選項。( #60044 ) 向 Promise 客戶端新增了 withMediaRefs 、 mediaHashFromUri 和 MediaRequestOptions,用於實驗性儲存媒體引用。( #60116 ) 錯誤修復 使 Promise AI 客戶端更貼近 Effect API,並在迴圈中接受帶型別的工具。( #60465 , #60390 ) 使 execute 處理程序可能丟擲錯誤的工具仍可供 AI 客戶端使用。( #60431 ) 當提供商返回未知的中間狀態時,繼續輪詢排隊的媒體生成。( #59988 ) 停止在 OpenAI Responses 請求中隨 file_url 一起傳送不相容的檔名。( #60382 ) 擴充套件 改進 向程序守護程式新增了持久終端重新命名,包括能力發現和使用者標題,使用者標題會覆蓋 shell 提供的標題,直到被清除。( #60324 ) 錯誤修復 在 Code Mode 文字編碼中保留了 null 值。感謝 @xiajiahang 。( #57639 ) 整理了巢狀的 Extensions 選單。( #59468 )

由 AI 翻譯,以原文為準。

原文
Highlights Use Claude Code in OpenCode : Install Claude Code, run claude auth login , then select Claude Agent in /connect to use your Claude Code login and models. ( #58782 ) Faster Long Sessions in Desktop : Streaming replies and long conversations now do much less rendering work. ( #60489 , #60521 , #60513 , #60481 ) Desktop Stability Fixes : Fixes side-panel tabs, repeated "Session not found" toasts, and Open file over HTTP. ( #60430 , #60436 , #60459 , #60462 ) Breaking changes TUI plugins require OpenTUI 0.8 @opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox's wrapper , viewport , content , and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick . See the OpenTUI 0.8.0 release notes . ( #60385 ) Managed policy: integration.use covers integrations only integration.use now controls which integration accounts can be used, and the new mcp.use , skill.use , and plugin.use actions control MCP servers, skills, and plugins. Rules with the old mcp: , skill: , and plugin: resource prefixes are converted automatically, but a bare integration.use rule no longer applies to MCP servers, skills, or plugins. ( #60315 ) Core Improvements Added the built-in Claude Agent provider. Install Claude Code, run claude auth login , and select Claude Agent in /connect ; OPENCODE_CLAUDE_PATH can override the Claude executable. Thanks @Tarquinen . ( #58782 ) Added Code Mode JavaScript checks to experimental schedules, including statically authorized tool calls, persistent state, and custom wake messages. ( #60140 ) Added separate managed-policy actions for connecting to integrations and using integrations, MCP servers, skills, and plugins. ( #60315 ) Bug fixes Preserved plugin-provided model variants and delayed dynamic provider fallback until external SDK hooks have run. ( #60097 , #60380 ) Preserved permission reasons and feedback in MCP failures, and made Code Mode failures match direct tool-call failures. ( #60102 , #60109 ) Fixed invalid Code Mode schedule checks so creation fails immediately and existing invalid checks pause without repeated execution. ( #60349 ) Removed a session’s persistent terminals when the session is deleted. ( #60322 ) Kept nested tool progress from replacing the parent execute call rows. ( #60480 ) TUI Improvements Added lazy loading for stored image references when experimental.media_blob is enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely. ( #60116 ) Added a distinct marker for the selected composer suggestion in the new designs. ( #60393 ) Bug fixes Fixed PHP syntax highlighting for code blocks without an opening <?php tag. ( #60359 ) Preserved # in file-search paths unless it introduces a valid line range. ( #60336 ) Kept the configured default cursor style after config reloads. ( #60302 ) Matched the search cursor to the highlighted row when a selection dialog has no query. ( #60310 ) Desktop Improvements Added a Desktop spellcheck toggle under Settings → General and system-language dictionary selection on Windows and Linux. ( #59129 ) Added PageUp and PageDown timeline paging from the composer without moving the draft cursor or focus. ( #59426 ) Added independently configurable question notifications and sounds under Settings → Notifications → Questions . Thanks @YuriNek0 . ( #60358 ) Added separate project and worktree actions to the new-session control. ( #60486 ) Added one-click version copying in Settings → About . ( #52356 ) Grouped added projects in workspace settings. ( #60221 ) Made question-answer text selectable. ( #60372 ) Adapted the session header to narrow timeline widths. ( #59512 ) Bug fixes Side-panel tabs close again and New tab launchers respond to clicks, fixing a 2.2.2 regression. ( #60430 , #60436 ) Open file in the side panel works again in the web app over HTTP. ( #60462 ) Kept question options and submit controls reachable on mobile. ( #60335 ) Preserved simultaneous request notifications and inbox scroll position when opening sessions. ( #60378 , #60356 ) Fixed consecutive dropped files so every file mention is inserted into the composer. ( #60463 ) Kept the current @ and command-menu selection stable while results update under a stationary pointer. ( #59434 , #60368 ) Fixed ⌘W side-panel closing and focus restoration when no closable tabs remain. ( #59002 , #60435 ) Kept the mobile session drawer open while a session loads. ( #59427 ) Restored maximized windows on their saved display and retained renderer permissions across shared-session windows. ( #60482 , #60458 ) Fixed timeline growth, zoom-end scrolling, highlighting, and DOM-observer performance issues in long sessions. ( #60489 , #60481 , #60488 , #60513 , #60521 ) Kept models with unknown release dates visible. Thanks @joe-ieta . ( #60496 ) Fixed reasoning-capability detection for models that expose reasoning through variants or compatibility metadata. ( #60457 ) Evicted deleted sessions after a 404 instead of retrying or showing repeated errors. ( #60459 ) Fixed the macOS application icon and added the required folder-access description to the app bundle. ( #60020 , #60503 ) SDK Improvements Preserved partial LLMResponse output on AIError.partial when generation, object generation, or a tool loop fails. ( #60477 ) Unified Effect and Promise tool declarations around tool(...) , with optional output schemas and executable or declaration-only tools. ( #60407 ) Added typed OpenRouter debug , models , plugins , provider , and user options to the Responses route. ( #60044 ) Added withMediaRefs , mediaHashFromUri , and MediaRequestOptions to the Promise client for experimental stored-media references. ( #60116 ) Bug fixes Matched the Promise AI client more closely to the Effect API and accepted typed tools in loops. ( #60465 , #60390 ) Kept tools whose execute handler can throw available to the AI client. ( #60431 ) Continued polling queued media generations when providers return unknown intermediate statuses. ( #59988 ) Stopped sending an incompatible filename alongside file_url on OpenAI Responses requests. ( #60382 ) Extensions Improvements Added persistent-terminal renaming to the process daemon, including capability discovery and user titles that override shell-provided titles until cleared. ( #60324 ) Bug fixes Preserved null values in Code Mode text encoding. Thanks @xiajiahang . ( #57639 ) Tidied nested Extensions menus. ( #59468 )

相關報導

Hacker News front pageAI 評分56

開源工具 Agent Standup 把 Claude Code 會話變成即時站會

開源免費的 Agent Standup 把 Claude Code 會話變成一場即時站會:每個 sub-agent 以畫素角色入場,狀態標註為工作中、等待他人、需要你介入、卡住或已完成,零 token 消耗。它讀取 Claude Code 已寫下的本地會話檔案,因此在 VS Code、Cursor、終端或桌面應用裡都能執行,無需配置、程式碼不外傳。

Claude Code releasesAI 評分45

v2.1.296

Claude Code 2.1.296 在 Claude 應用閘道器的 managed.policies[] 中新增 code 鍵,配置與 cli 一致,同時作用於 Claude Desktop 的 Code 標籤頁,並可在桌面端開啟閘道器模式。子代理的 frontmatter 與 --agents 定義新增 autoCompactWindow,允許子代理比主對話更早自動壓縮上下文;

OpenCode releases● 精選AI 評分72

OpenCode 2.2.0 發布:桌面端支援外掛,新增 GPT-6.1 Terra

OpenCode 發布 2.2.0 版,桌面端可建立、安裝和共享外掛(實驗性),桌面應用介面也做了重新設計。Sign in with ChatGPT 新增 GPT-6.1 Terra 與 GPT-6.1 Terra Fast 兩個模型,外掛側新增實驗性影像與決策生成 API。破壞性變更包括:@opencode/ai 包根匯出改為 Promise API,Effect API 移至 @opencode/ai/effect;OpenCode GitHub Action 不再發布;