Skip to content

Add direct Codex CLI and goal commands#317

Open
icebear0828 wants to merge 1 commit into
openai:mainfrom
icebear0828:feat/direct-cli-goals
Open

Add direct Codex CLI and goal commands#317
icebear0828 wants to merge 1 commit into
openai:mainfrom
icebear0828:feat/direct-cli-goals

Conversation

@icebear0828
Copy link
Copy Markdown

Summary

  • add /codex:cli for direct Codex task execution without routing through the rescue subagent
  • add /codex:goal to create, show, update, and clear persistent Codex thread goals
  • enable experimental app-server capabilities for goal RPCs and make /codex:cli --resume prefer the stored goal thread

Testing

  • npm test
  • npm run build
  • git diff --check
  • real Codex CLI/app-server E2E: 3 consecutive goal create/show/clear runs with codex-cli 0.130.0

@icebear0828 icebear0828 requested a review from a team May 11, 2026 19:44
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +934 to +935
if (!options["thread-id"]) {
storeGoalThreadId(workspaceRoot, null);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

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