Skip to content

Expose auto-fix via MCP and improve settings#10

Merged
aandersen2323 merged 1 commit into
mainfrom
codex/expose-auto-fix-endpoint-via-mcp-bridge
Oct 24, 2025
Merged

Expose auto-fix via MCP and improve settings#10
aandersen2323 merged 1 commit into
mainfrom
codex/expose-auto-fix-endpoint-via-mcp-bridge

Conversation

@aandersen2323
Copy link
Copy Markdown
Owner

Summary

  • expose the /infer/auto-fix API through the MCP bridge so remote clients can trigger repairs
  • adopt a centralized settings loader with token-budget aligned tooling context and richer auto-fix logging/output
  • provide a lightweight pydantic_settings fallback and refresh tests to cover the new behavior

Testing

  • pytest

https://chatgpt.com/codex/tasks/task_e_68faf8131e38833198346d5de7b03785

@aandersen2323 aandersen2323 merged commit b805409 into main Oct 24, 2025
1 check failed
@aandersen2323 aandersen2323 deleted the codex/expose-auto-fix-endpoint-via-mcp-bridge branch October 24, 2025 03:57
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.

ℹ️ 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 thread server/app.py
Comment on lines +776 to +779
if final_status == "apply_fix":
fix_req = _build_auto_fix_fix_request(base_req, auto_req, parsed_analysis)
print(f"Running fix infer (task: {fix_req.task})...")
fix_result = run_inference(fix_req)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Run fixes even when status parsing fails

The new auto‑fix loop only executes the fix step when the analysis result explicitly sets status to "apply_fix". Previously, a fix run was triggered whenever the analysis supplied fix_instructions, even if the status string could not be parsed. LLM outputs often include valid instructions while returning an unexpected status, so this regression will cause the workflow to stop after the analysis phase and never apply the suggested repair. Consider running the fix whenever actionable instructions are present, regardless of whether the status is recognized.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant