Skip to content

feat: resume by session ID or ID prefix - #2

Merged
EchoTreee merged 1 commit into
mainfrom
fix/resume-by-id
Sep 16, 2026
Merged

EchoTreee merged 1 commit into
mainfrom
fix/resume-by-id

Conversation

@EchoTreee

Copy link
Copy Markdown
Owner

问题(Closes #1)

codex-switch resume 之前只能按标题关键词匹配会话,传会话 ID 会去标题里搜、匹配不到。

改动

  • resume 现在识别「ID 形态」的输入(十六进制/连字符、长度 ≥8),按会话 ID 前缀匹配;其他输入仍按标题关键词匹配(向后兼容)。
  • 新增 tests/test_smoke.py::test_resume_by_session_id,覆盖完整 ID 和 ID 前缀两种命中。
  • 更新 README / README.zh-CN / docs/usage.md / CHANGELOG。

验证

  • python3 tests/test_smoke.py:9 个测试全过。
  • 真机数据库验证:完整 ID、ID 前缀唯一命中,标题关键词匹配不受影响。

Let resume take a session ID (or ID prefix) in addition to a title keyword. ID-shaped input (hex/hyphen, 8+ chars) matches the session id by prefix; other input matches the title. Adds a smoke test and updates docs.
@EchoTreee
EchoTreee merged commit c2045d8 into main Sep 16, 2026
2 checks passed
@EchoTreee
EchoTreee deleted the fix/resume-by-id branch September 16, 2026 05:45
@EchoTreee EchoTreee mentioned this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

功能建议

1 participant