Add direct Codex CLI and goal commands#317
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b7a6990aa
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (!options["thread-id"]) { | ||
| storeGoalThreadId(workspaceRoot, null); |
There was a problem hiding this comment.
Clear the stored goal id when that thread is cleared
When a user clears the current goal with an explicit --thread-id (the usage text allows this), the goal is removed from Codex but the plugin state still keeps goalThreadId because this branch skips storeGoalThreadId(workspaceRoot, null). Since resume resolution checks that config before task history, a later /codex:cli --resume or /codex:goal --show will keep targeting the cleared/stale goal thread instead of falling back to no goal or the latest task; clear the config when the cleared id matches the stored goal id.
Useful? React with 👍 / 👎.
Summary
Testing