Skip to content

Chore: Limit auto-test modes to Ask and Off#276

Merged
tninja merged 2 commits intomainfrom
kang_feat
Apr 5, 2026
Merged

Chore: Limit auto-test modes to Ask and Off#276
tninja merged 2 commits intomainfrom
kang_feat

Conversation

@tninja
Copy link
Copy Markdown
Owner

@tninja tninja commented Apr 4, 2026

Using this feature for more than 1 month. I don't feel it is necessary to always auto trigger test or TDD. Things such as ask a question about code, or edit document, has no need to trigger them.

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: 82fd6707e1

ℹ️ 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 ai-code.el Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR narrows the persistent ai-code-auto-test-type modes to only Ask every time (ask-me) and Off (nil), so test/TDD prompting isn’t automatically triggered by default for non-code-change workflows.

Changes:

  • Restrict ai-code-auto-test-type customization options and transient menu selection to ask-me and nil.
  • Simplify send-time auto-test type resolution to only operate when persistent mode is ask-me.
  • Update ERT tests to reflect the reduced persistent mode surface area.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ai-code.el Limits persistent auto-test mode options and updates resolution/menu code accordingly.
test/test_ai-code.el Removes tests for deprecated persistent modes and adds coverage for the new restricted choices.

Comment thread ai-code.el Outdated
@tninja
Copy link
Copy Markdown
Owner Author

tninja commented Apr 5, 2026

Both feedbacks addressed.

@tninja tninja merged commit d2defeb into main Apr 5, 2026
0 of 2 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.

2 participants