Muse Code 1.4.19
新功能 5 項
SDK 用戶端現在能接收通知與斷線事件
給串接 TypeScript 與 Python SDK(供外部程式呼叫這套工具的開發介面)的開發者,寫程式時常要追蹤工具端傳來的訊息與連線狀態。現在用戶端能收到每一則通知、被拒收的訊息,以及連線關閉的事件。
官方原文
The TypeScript and Python SDK clients can now hear every notification, rejected messages, and the connection closing through onNotification/on_notification, onProtocolError/on_protocol_error, and closed
工作階段協定與 muse serve 控管更到位
拿外部程式串接後端控管任務,過去會碰上深層背景指令停不掉,或中途叫停卻得等整個回合跑完。
透過工作階段協定,上層工作階段現在能停掉底下任何層級子代理(主任務派出去分頭工作的分身)啟動的背景指令,不再只限直屬的那一層。
傳送開啟請求給 muse serve 時,現在可以附帶標記把新工作階段當成 /clear 重置,讓 SessionStart hook(特定事件發生時會觸發的小程式)收到清除來源通知。
某個目標的回合還在跑時,經由 muse serve 送出的暫停或清除指令現在會直接傳進該回合。模型隨即會停下該目標的工作,不再繼續執行到回合結束。
官方原文
Over the session protocol, a session can now stop a background command that a subagent at any depth below it started, not only one its direct subagents started
A session/start sent to muse serve can now mark the new session as a /clear with the optional clear field, so its SessionStart hooks get the clear source
A goal/pause or goal/clear sent over muse serve while the goal's turn is running now reaches that turn, so the model stops working for the paused or cleared goal instead of carrying on until the turn ends
Linux 沙盒守住尚未建立的受保護資料夾
在 Linux 上開沙盒(限制指令亂動檔案的隔離環境)執行指令,就算 .git 這類受保護位置還沒建出來,裡面的拒絕規則照樣會留著。即使同工作區另一道沙盒指令看不到前者的沙盒紀錄,例如兩者使用不同的執行期目錄,也一樣。⟦就像社區空地上還沒蓋起機房,值班警衛仍會保留預定地的禁入規定;即使另一位警衛看不到這位值班警衛的巡邏本,規定依然有效。⟧
官方原文
On Linux, a sandboxed shell command keeps a deny inside a missing protected folder such as .git even when another sandboxed command in the same workspace cannot see its sandbox records, for example because the two use different runtime directories
Linux 內建沙盒無法啟動指令會回報環境錯誤
在 Linux 上準備執行指令,結果連第一步都跑不起來,這時候最需要明確的提示。碰到內建沙盒無法啟動指令的情況,現在會直接回報環境錯誤。
官方原文
Report environment errors when the bundled Linux sandbox cannot start a command
長工作階段與多子代理執行更省記憶體
在同一個對話開過許多子代理,記憶體裡不再保留那麼多份各個子代理的啟動紀錄複本。
包含許多工具步驟的長工作階段也會減少記憶體用量,因為監看任務或執行過程的新紀錄時,不再預先留好一千筆紀錄的空間。
經歷對話壓縮(把較早的聊天內容濃縮整理以騰出空間)後的長工作階段同樣更省記憶體,因為子代理檢視畫面不再把早先的每一筆事件都留著。
官方原文
A session that has started many subagents uses less memory, because fewer copies of each subagent start record are kept in memory
Long sessions with many tool steps use less memory, because watching a task or a run for new records no longer sets aside room for a thousand records in advance
Long sessions use less memory after a compaction, because the subagent view no longer keeps every earlier event
修正 4 項
Claude 模型現在能直接讀取圖片
貼上報表截圖想請 Claude 幫忙核對數字,過去一送出就整回合失敗。現在 Claude 模型能正常收到這幾類來源的圖片,包含你直接附加的圖片、工具讀取到的圖片,以及接續舊工作階段時裡頭既有的圖片,不會再中斷這回合。⟦跟拿現場照片去問修繕師傅一樣,以前他一看到圖就整單退回,現在不管是你帶來、助手找出來,還是舊紀錄裡夾著的照片,都能照常看圖處理。⟧
官方原文
Claude models can read images: attached images, images a tool reads, and images in a resumed session now reach the model instead of failing the turn
tui.keymap 單鍵無效不再重置其他快捷鍵
從跨版本複製過來的快捷鍵設定裡,只要混進一個目前版本沒有的動作,以前一啟動就會把整份自訂按鍵洗回預設。現在啟動時若 tui.keymap 裡有對應不到動作的按鍵,程式只會略過那一顆按鍵,並跳出一則寫明該按鍵名稱的通知,其餘自訂按鍵都會保留。⟦好比遙控器裡多存了一個這台電視沒有的功能鈕,以前整支遙控器的個人設定會跟著歸零,現在只把那顆鈕放著不管,並亮牌提醒是哪一顆。⟧
官方原文
At start, a key in tui.keymap for an action that your build does not have no longer resets your other custom keys. The build ignores only that key and shows one notice that names it
修正 search 工具依檔名查不到檔案
要找特定檔名的檔案而呼叫 search 工具時,過去總是拿不到任何結果、只看到空白回應。這個問題已經修好,現在依檔名尋找檔案會正常列出符合的清單。
官方原文
Asking the search tool for files by name now lists the matching files instead of returning nothing
muse exec 持續監看被拒或停止會寫明原因
執行 muse exec 已經給出回答後,若還要開啟持續性的 Monitor(常駐監看程序),過去會先啟動一次再被立刻停掉。現在這種情況會直接拒絕啟動並附上原因,不再先啟動再被停掉。而原本在執行結束時收掉的持續監看,現在的停止通知也會寫明停止的原因。⟦餐廳打烊收桌後還想加點,以前服務生會先收單再馬上退回來,現在當場婉拒並講明原因,原本收攤時的停單通知也會寫清楚為何停止。⟧
官方原文
In muse exec, a persistent Monitor started after the run has answered is refused with a reason instead of starting and being stopped again, and the stop notice for a persistent watch at the end of the run now says why it stopped