Skip to content

feat(run): add --resume flag for precise session file targeting / 支持精确恢复会话文件#3597

Merged
esengine merged 1 commit into
esengine:main-v2from
ERroooooR:main-v2
Jun 9, 2026
Merged

feat(run): add --resume flag for precise session file targeting / 支持精确恢复会话文件#3597
esengine merged 1 commit into
esengine:main-v2from
ERroooooR:main-v2

Conversation

@ERroooooR

@ERroooooR ERroooooR commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reasonix run 增加 --resume <session-file>,允许非交互调用方精确恢复指定会话文件
  • 保留并补上 --continue / -c,用于恢复最近一次保存的会话
  • --resume / --continue 的恢复失败显式报错,避免静默新建会话
  • 同步中英文 help usage,并补充 metadata 测试断言

说明

  • 此 PR 的代码由 DeepSeek 生成
  • 默认使用中文说明,方便后续审阅与追踪

Testing

  • go test ./internal/cli -run TestMetadataCommandsDoNotProbeTerminalTheme 通过
  • go test ./internal/cli 未完全通过;当前 Windows 环境下仍观察到既有失败:临时目录清理时文件占用、缺失 chdir 目标、rewind 中文渲染断言不匹配、statusline 刷新断言不匹配

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development tui Terminal UI / CLI (internal/cli, internal/control) labels Jun 8, 2026

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition — a non-interactive --resume PATH (with --resume taking precedence over -c) is exactly what API/MCP callers managing their own per-project session need. Verified the resume/continue/precedence/help paths end-to-end on a real build. Thanks!

@esengine esengine merged commit 58f444a into esengine:main-v2 Jun 9, 2026
9 checks passed
dorokuma pushed a commit to dorokuma/DeepSeek-Reasonix that referenced this pull request Jun 10, 2026
…gine#3597)

Co-authored-by: ERroooooR <ERroooooR@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tui Terminal UI / CLI (internal/cli, internal/control) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants