v0.18.0 -> v0.18.1
Summary
Removes the legacy <summary> block stripping in stdout streaming and adds explicit user-side trigger prompts so summary generation and merging reliably produce raw JSON output.
翻譯
移除 stdout 串流中舊有的 `` 區塊過濾邏輯,並新增明確的 user 端觸發提示,使摘要生成與合併能穩定輸出純 JSON。
Changes
REFACTOR
- Remove
stripSummaryBlockshelper fromrunEventsand passEventTextcontent through unchanged - Switch
GetSummaryPromptto use the newSummaryContexttemplate instead ofSummaryPrompt - Reorder imports in
getSession.goto follow stdlib grouping convention
翻譯
- 從
runEvents移除stripSummaryBlocks輔助函式,EventText內容直接輸出 GetSummaryPrompt改用新的SummaryContext模板取代SummaryPrompt- 調整
getSession.go的 import 順序以符合標準庫分組慣例
UPDATE
- Append explicit user message in
generatePasswhen last history entry is from assistant, instructing the model to emit raw JSON summary - Append explicit user trigger message in
mergePassto enforce raw JSON output during summary merging
翻譯
- 在
generatePass中當最後一筆歷史為 assistant 時,附加明確的 user 訊息要求輸出純 JSON 摘要 - 在
mergePass附加明確的 user 觸發訊息,強制摘要合併時輸出純 JSON
ADD
- Embed new
prompts/summary_context.mdtemplate viaconfigs.SummaryContext
翻譯
- 透過
configs.SummaryContext嵌入新的prompts/summary_context.md模板
Files Changed
| File | Status | Tag |
|---|---|---|
cmd/app/runEvents.go |
Modified | REFACTOR |
configs/configs.go |
Modified | ADD |
internal/agents/exec/generateSummary.go |
Modified | UPDATE |
internal/agents/exec/getSession.go |
Modified | REFACTOR |
internal/session/summary.go |
Modified | REFACTOR |
Generated by SKILL