feat(run-create): default AI task ID from environment - #1454
Draft
Mateus Zitelli (MateusZitelli) wants to merge 1 commit into
Draft
feat(run-create): default AI task ID from environment#1454Mateus Zitelli (MateusZitelli) wants to merge 1 commit into
Mateus Zitelli (MateusZitelli) wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Mateus Zitelli (MateusZitelli)
force-pushed
the
codex/track-ai-created-runs
branch
from
August 7, 2026 18:42
e839ff6 to
f60de12
Compare
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.
Overview of Changes
Teach the generated
qawolf run createcommand to source its contract-definedaiTaskIdoption fromQAWOLF_AI_TASK_ID. An explicit--ai-task-idvalue takes precedence over the environment, using Commander option precedence.The value remains ordinary
run.createinput. The CLI performs exactly one public API write and does not make a follow-up internal mutation or retry run creation. Platform PR qawolf/platform#30807 owns authorization, Suite creation, and the conversation association using the server-created Suite ID.The implementation is contract-driven: it only adds the environment default when the published
run.createschema containsaiTaskId. Tests inject the pending schema to verify the environment default and explicit-option precedence without vendoring an unpublished contract.Release Order and Current Blocker
@qawolf/api-contractspackage.@qawolf/api-contracts@0.20.0to that published version and run the full validation suite again.This PR is intentionally still draft and does not bump the dependency yet because the required package version is not published. Platform PR #30707 also proposes package version 0.22.0, so the final version may need to advance after the platform branches are reconciled.
Testing
bun test src/commands/publicApi/index.test.ts src/commands/publicApi/index.aiTask.test.tsbun run typecheckbun run lintbun run knipbun run buildChecklist