Skip to content

Set up Codex integration#3

Merged
sakrut merged 2 commits intomainfrom
feature/codex-init
Mar 12, 2026
Merged

Set up Codex integration#3
sakrut merged 2 commits intomainfrom
feature/codex-init

Conversation

@sakrut
Copy link
Copy Markdown
Owner

@sakrut sakrut commented Mar 3, 2026

No description provided.

@sakrut
Copy link
Copy Markdown
Owner Author

sakrut commented Mar 4, 2026

@codex

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: ad8a34ac98

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +123 to +126
else if (!JsonNode.DeepEquals(existingServerObject, serverNode))
{
servers["ai-code-graph"] = serverNode;
shouldWrite = true;
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 Preserve custom MCP server fields during setup updates

When .mcp.json already contains an ai-code-graph server object, any difference from the hardcoded template causes the entire object to be replaced, not merged. This will silently drop user-defined fields such as env, cwd, or wrapper-specific options, so rerunning setup-codex --db ... can break previously working Codex MCP setups that rely on those fields.

Useful? React with 👍 / 👎.

Comment on lines +149 to +152
if (!existing.Contains("Auto-Context: Code Graph Integration"))
{
File.AppendAllText(agentsPath, snippet);
created.Add(agentsPath + " (appended)");
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 Update AGENTS guidance when database path changes

The AGENTS update check only looks for the section header and never validates the configured --db path inside that section, so rerunning setup-codex with a new database path leaves stale instructions in AGENTS.md. In that scenario, developers and agents are directed to the old DB path even though .mcp.json was updated, creating inconsistent integration behavior.

Useful? React with 👍 / 👎.

@sakrut sakrut merged commit 3019a2f into main Mar 12, 2026
4 checks passed
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