feat: resume by session ID or ID prefix - #2
Merged
Merged
Conversation
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.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题(Closes #1)
codex-switch resume之前只能按标题关键词匹配会话,传会话 ID 会去标题里搜、匹配不到。改动
resume现在识别「ID 形态」的输入(十六进制/连字符、长度 ≥8),按会话 ID 前缀匹配;其他输入仍按标题关键词匹配(向后兼容)。tests/test_smoke.py::test_resume_by_session_id,覆盖完整 ID 和 ID 前缀两种命中。验证
python3 tests/test_smoke.py:9 个测试全过。