SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-03-25 09:31 UTC

claude-agent-sdk-masterlatest

Version [latest] committed by ErlichLiu. Update Category: Feature Addition & Enhancement. Commit details: refactor: 拆分 PlaygroundConfig 为 AppState 分层架构 + 新增会话历史持久化. This update introduces new capabilities and module extensions.

ErlichLiu b185aa7 ErlichLiu/claude-agent-sdk-master

CommitRaw commit message

refactor: 拆分 PlaygroundConfig 为 AppState 分层架构 + 新增会话历史持久化

- PlaygroundConfig 拆分为 SessionConfig (SDK) + DisplayConfig (UI) + SessionState (运行时)
- 统一通过 AppState 容器管理,消除 currentConfig 全局可变单例
- sessionId 归入 SessionState,prompt 作为函数参数传入而非配置字段
- 提取 session-ops.ts 管理会话生命周期 (create/resume/close)
- 新增 session-history.ts 支持会话历史持久化与恢复 (/history 命令)
- cli.ts 直接引用 session-ops,移除 SessionActions 间接回调层