6 Commits

Author SHA1 Message Date
狼哥
c958d06cb4 fix(flow): prevent premature task completion before review (#280)
cmd_done() 不再直接写 Done,改为校验 todos 完成度后路由到 Review;dashboard 准奏也增加 todo 完成度门控,防止子任务未完成就关闭任务
2026-04-20 00:17:01 +08:00
cft0808
7cb0a6ad12 feat: multi-workspace task data auto-detection + time parsing improvements
- Auto-detect task data dir from ~/.openclaw/workspace-*/data (#117)
- Score and select best task source (non-demo tasks preferred)
- Update healthz and live-status to use detected data dir
- Add robust parseDateFlexible() for timestamp handling (#67)
- Add UTF-8 encoding to file_lock reads for Windows compat (#96)
- Use absolute path in install.sh hint (#107)

Closes #117, Closes #107
2026-03-26 21:59:35 +08:00
cft0808
974ad32c30 fix: atomic_json_write 使用跨平台锁抽象 + UTF-8 编码
将 atomic_json_write() 中的 fcntl.flock 直接调用改为
_lock_exclusive()/_unlock() 跨平台抽象函数,同时为
os.fdopen 添加 encoding='utf-8' 参数。

Refs #204, Fixes #188
2026-03-26 20:59:09 +08:00
cft0808
feae7c2faf fix: file_lock.py 跨平台兼容,Windows 使用 msvcrt 替代 fcntl (#180)
在 Windows 平台上 fcntl 模块不存在,导致 ModuleNotFoundError。
改为平台条件分支:Unix 使用 fcntl.flock,Windows 使用 msvcrt.locking。
保持零外部依赖,完全向后兼容。

Fixes #180
2026-03-25 22:16:32 +08:00
cft0808
b7bf616f06 refactor: 全面安全加固与代码优化 - TOCTOU竞态修复/CORS/XXE/SSRF/路径遍历/Docker加固 2026-03-01 12:59:24 +08:00
cft0808
efd36ab729 feat: 添加 Copilot 模型配置 + 旨意看板归档功能
模型配置:
- 新增 Copilot 系列模型 (Claude Sonnet 4, Claude Opus 4.5, GPT-4o, Gemini 2.5 Pro, o3-mini)
- 新增 github-copilot/claude-opus-4.6 模型

旨意看板归档:
- 看板顶部新增筛选栏: 进行中 / 已归档 / 全部
- Done/Cancelled 状态自动归入归档视图
- 支持单条归档/取消归档操作
- 支持一键归档所有已完成任务
- 归档卡片虚线边框半透明展示
- Tab 徽章仅统计活跃旨意数

其他:
- agents SOUL.md 更新
- 脚本健壮性改进 (file_lock, refresh, sync)
2026-02-26 21:09:05 +08:00