AISpot

OpenCode v2.2.4:桌面終端可跨重啟保留,還能發布 HTML 工件

OpenCode releases版本更新開發工具產品與方案訂閱動態

OpenCode v2.2.4 發布,桌面終端歸屬於會話,伺服器重啟後終端與滾動緩衝仍在,並與 TUI 及其他視窗保持同步,重新命名也會保留。在 opencode.json 啟用 experimental.artifacts 後,agent 可發布、更新並通過內建本地 provider 或外掛儲存提供 HTML 與靜態工件。

桌面終端持久化並與 TUI 共享,加上可發布靜態工件的實驗能力,直接改變 OpenCode 桌面端與 coding agent 使用者的日常用法。

原標題:v2.2.4
閱讀原文

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

全文翻譯

亮點 持久化桌面終端:桌面終端現在歸屬於會話,可在伺服器重啟後保留其回滾緩衝區並與 TUI 及其他視窗保持同步。重新命名後的終端在重啟後也會保留名稱。(#60346) 發布互動式工件:在 opencode.json 中啟用 “experimental”: { “artifacts”: true },讓智慧體通過內建本地提供程式或外掛提供的儲存來發布、更新和提供 HTML 或靜態工件。(#60351) 引導式 Claude Agent 設定:從提供程式選擇器中選擇 Claude Agent,以複製 claude auth login、安裝 Claude Code,並在繼續選擇模型之前驗證連線。(#60603) 快速選擇基礎分支:建立 worktree 時,在 macOS 上使用 ⌘⌥. 或在 Windows 和 Linux 上使用 Ctrl+Alt+. 開啟“選擇基礎分支”。該命令也可在命令面板和“設定 › 快捷鍵”中使用。(#60579) 核心 改進 新增可選啟用的工件功能,包括 artifact_create、artifact_read、artifact_update 和 artifact_delete,並包含內建的本地靜態檔案提供程式。(#60351) 使已啟用的計劃在 opencode serve 下執行,並協調多個伺服器程序,使計劃僅觸發一次。計劃仍通過 experimental.schedules 選擇啟用。(#60478) 提高了 OpenCode Go 對 DeepSeek V4.1 Flash 的限制。(#60625) 錯誤修復 允許使用者、專案和遠端配置覆蓋 Console 提供的提供程式名稱、限制、變體、設定和標頭。(#60597) 使本地 OpenCode 服務請求避開環境配置的代理。(#60441) 將 Claude Code 中誤導性的 /login 指令替換為 claude auth login。感謝 @Tarquinen。(#60592) TUI 錯誤修復 保留外掛在主題或無關提示狀態變化時應用的提示游標樣式。(#60599) 為編輯和補丁差異新增缺失的右側內邊距。(#60614) 將垂直會話標籤活動脈衝擴充套件到整個標籤寬度。(#60338) 桌面 改進 將終端遷移為與 TUI 和其他視窗共享的持久會話 PTY,並恢復回滾緩衝區、伺服器端重新命名和重啟持久化。(#60346) 新增引導式 Claude Agent 安裝、登入、連線檢查,以及從“需要登入”狀態恢復的功能。(#60603) 將“選擇基礎分支”新增到命令面板和快捷鍵中,繫結為 ⌘⌥. 或 Ctrl+Alt+.。(#60579) 簡化了會話位置彈出框,並使長路徑更易閱讀。(#60492) 錯誤修復 修復了終端標籤頁點選和重新命名欄位附加到預期標籤頁的問題。( #60645 ) 在命令面板搜尋中,將會話之前的匹配命令列出。( #60616 ) 恢復了從開啟的操作選單複製使用者訊息的功能。( #60576 ) 減少了流式傳輸 Markdown 時的重複工作和記憶體分配,尤其是在長會話中。( #60549 , #60562 , #60577 ) SDK 改進 新增了 client.experimental.artifacts.providers、list、create、get、update、delete 和 view。( #60351 ) 擴充套件了 client.experimental.persistentPty.update 以重新命名終端或清除使用者標題,並暴露了 userTitle 以及 persistent-pty.updated 事件。( #60329 ) 擴充套件 改進 為 Effect 和 Promise 外掛新增了 ctx.experimental.artifact.transform(...),用於註冊工件提供者、能力、提示和預設提供者。( #60351 )

由 AI 翻譯,以原文為準。

原文
Highlights Persistent Desktop Terminals : Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows. Renamed terminals also keep their names across restarts. ( #60346 ) Publish Interactive Artifacts : Enable "experimental": { "artifacts": true } in opencode.json to let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage. ( #60351 ) Guided Claude Agent Setup : Select Claude Agent from the provider picker to copy claude auth login , install Claude Code, and verify the connection before continuing to model selection. ( #60603 ) Choose a Base Branch Quickly : While creating a worktree, open Choose base branch with ⌘⌥. on macOS or Ctrl+Alt+. on Windows and Linux. The command is also available in the command palette and Settings › Shortcuts. ( #60579 ) Core Improvements Added opt-in artifacts with artifact_create , artifact_read , artifact_update , and artifact_delete , including a built-in local static-file provider. ( #60351 ) Made enabled schedules run under opencode serve and coordinated multiple server processes so a schedule fires only once. Schedules remain opt-in through experimental.schedules . ( #60478 ) Raised OpenCode Go limits for DeepSeek V4.1 Flash. ( #60625 ) Bug fixes Allowed user, project, and remote configuration to override Console-supplied provider names, limits, variants, settings, and headers. ( #60597 ) Kept local OpenCode service requests out of environment-configured proxies. ( #60441 ) Replaced Claude Code’s misleading /login instruction with claude auth login . Thanks @Tarquinen . ( #60592 ) TUI Bug fixes Preserved prompt cursor styles applied by plugins when themes or unrelated prompt state change. ( #60599 ) Added missing right padding to edit and patch diffs. ( #60614 ) Extended the vertical session-tab activity pulse across the full tab width. ( #60338 ) Desktop Improvements Moved terminals to persistent session PTYs shared with the TUI and other windows, with restored scrollback, server-side renaming, and restart persistence. ( #60346 ) Added guided Claude Agent installation, sign-in, connection checking, and recovery from Needs sign-in . ( #60603 ) Added Choose base branch to the command palette and shortcuts, bound to ⌘⌥. or Ctrl+Alt+. . ( #60579 ) Simplified the session location popover and made long paths easier to read. ( #60492 ) Bug fixes Kept terminal tab clicks and rename fields attached to the intended tab. ( #60645 ) Listed matching commands before sessions in command-palette search. ( #60616 ) Restored copying user messages from an open actions menu. ( #60576 ) Reduced repeated work and allocations while streaming Markdown, especially in long sessions. ( #60549 , #60562 , #60577 ) SDK Improvements Added client.experimental.artifacts.providers , list , create , get , update , delete , and view . ( #60351 ) Extended client.experimental.persistentPty.update to rename terminals or clear a user title, and exposed userTitle plus persistent-pty.updated events. ( #60329 ) Extensions Improvements Added ctx.experimental.artifact.transform(...) to Effect and Promise plugins for registering artifact providers, capabilities, prompts, and the default provider. ( #60351 )

相關報導

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 不再發布;

OpenCode releasesAI 評分47

OpenCode v1.19.1 停止會話分享功能

OpenCode 發布 v1.19.1,最重要的改動是停止會話分享:已有分享連結與會話分享命令不再可用,從分享 URL 匯入會話也不再支援,該項列在 Core 的 Bugfixes 下。發布者為 opencode-agent,日期為 2026 年 10 月 15 日,相對上一版本沒有新增提交(0 commits),除會話分享外未提及新模型或其他功能變化。該版本被標記為不可變發布(Immutable),僅標題與說明可修改。

Hacker News front page● 精選AI 評分83

OpenCode 2.0 發布:MCP 預設啟用 Code Mode,新增後臺子代理

OpenCode 2.0 是一次大規模重構,核心新功能是 Code Mode:用 @opencode/codemode 包內建的極簡 JavaScript 直譯器,把 MCP 伺服器與 OpenAPI 端點轉成代理可呼叫的函式,2.0 中所有 MCP 伺服器預設啟用 Code Mode,一次指令碼就能串起多個工具呼叫,減少往返。服務端也改為在本地自動以單一後臺程序執行,TUI、Web 與桌面端共用同一程序,並推出 @opencode/client 客戶端包與從頭重寫的 API。

OpenCode releases● 精選AI 評分78

OpenCode 2.2.1 發布:新增 /goal 持續目標與影像生成

OpenCode 2.2.1 發布,最值得注意的是新增 /goal 命令:在 TUI 或 Desktop 輸入 /goal <objective>,會話會持續推進直到審查者確認目標達成,並可用 pause、resume、clear 控制。同時加入需手動開啟的 image_generate 工具,可建立或編輯圖片並指定預設模型;Desktop 預設啟用可搜尋的新模型選擇器,活動欄能直接檢視並停止後臺 shell 輸出。