improve(daily-briefing): 修正昨日記錄檔案讀取日期 #7

Open
yucheng wants to merge 1 commits from yucheng/openclaw-skill:improve/daily-briefing-yesterday-memory into main
Contributor

改進說明

目前 daily-briefing 的「昨日記錄」區塊實際上讀的是 memory/<今天>.md,與文案『昨日記錄』不一致,可能導致內容缺漏或語意誤導。

變更內容

  • 新增 yesterday / yesterdayStr 計算
  • 將記錄檔讀取路徑從 memory/${dateStr}.md 改為 memory/${yesterdayStr}.md
  • 保持既有輸出格式與 metadata,不影響其他功能

測試建議

  • 建立 memory/<昨天>.mdmemory/<今天>.md 兩份不同內容
  • 執行 daily-briefing,確認「📝 昨日記錄」顯示昨天檔案內容
  • 刪除 memory/<昨天>.md 後再次執行,確認流程仍可正常回覆(不顯示昨日記錄區塊)

🤖 由 yucheng 自動審查並提交

## 改進說明 目前 `daily-briefing` 的「昨日記錄」區塊實際上讀的是 `memory/<今天>.md`,與文案『昨日記錄』不一致,可能導致內容缺漏或語意誤導。 ## 變更內容 - 新增 `yesterday` / `yesterdayStr` 計算 - 將記錄檔讀取路徑從 `memory/${dateStr}.md` 改為 `memory/${yesterdayStr}.md` - 保持既有輸出格式與 metadata,不影響其他功能 ## 測試建議 - 建立 `memory/<昨天>.md` 與 `memory/<今天>.md` 兩份不同內容 - 執行 daily-briefing,確認「📝 昨日記錄」顯示昨天檔案內容 - 刪除 `memory/<昨天>.md` 後再次執行,確認流程仍可正常回覆(不顯示昨日記錄區塊) --- 🤖 由 yucheng 自動審查並提交
yucheng added 1 commit 2026-03-15 12:02:41 +08:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u improve/daily-briefing-yesterday-memory:yucheng-improve/daily-briefing-yesterday-memory
git checkout yucheng-improve/daily-briefing-yesterday-memory
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Selig/openclaw-skill#7