feat: include VS Code (vscode) sessions in sessions and resume - #4
Merged
Merged
Conversation
Sessions created from the VS Code Codex extension have source='vscode', which the previous cli/exec filter hid. Include vscode in sessions (list) and resume (interactive), so those conversations are no longer invisible.
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.
问题
用 VS Code 的 Codex 插件创建的会话,其
source是vscode,而codex-switch sessions/resume之前只认cli/exec,导致这些会话「隐身」——既列不出来,也恢复不了。改动
sessions的 source 过滤从('cli','exec')扩展为('cli','exec','vscode')。resume的 source 过滤从'cli'扩展为('cli','vscode')(exec仍排除,因为是一次性自动化会话)。tests/test_smoke.py::test_sessions_and_resume_include_vscode。验证
python3 tests/test_smoke.py:11 个测试全过。source='vscode'的会话现已出现在sessions,且resume <id>能正确命中并跨 provider 恢复。