Merged
Conversation
When an issue title contains "codex" (case insensitive) or has a "codex" label, use the configurable coderTemplateNameCodex template instead of the default task-template. The new config defaults to "task-template-codex". Resolves xmtplabs#85 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
neekolas
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #85
Summary
coderTemplateNameCodexconfig option (env:CODER_TEMPLATE_NAME_CODEX, default:task-template-codex)Changes
coderTemplateNameCodexfield with defaulttask-template-codexcoderTemplateNameCodextoHandlerConfigissueTitleandissueLabelsfrom assigned issue payloadresolveTemplateName()selects codex template when appropriateTest plan
Note
Add Codex template selection to
CreateTaskHandlerbased on issue title and labelscoderTemplateNameCodexconfig field (env:CODER_TEMPLATE_NAME_CODEX, default:task-template-codex) alongside the existingcoderTemplateName.CreateTaskHandlergains aresolveTemplateName()method that picks the Codex template when the issue title contains "codex" (case-insensitive) or any label equals "codex"; otherwise falls back tocoderTemplateName.WebhookRouter.routeIssuesAssignednow populatesissueTitleandissueLabels(normalized from label objects to strings) in theCreateTaskContextso the handler can inspect them.HandlerConfigand the dispatcher are updated to propagatecoderTemplateNameCodexand the new issue context fields through the handler pipeline.Macroscope summarized c1d1acf.