Skip to content

feat(run-create): default AI task ID from environment - #1454

Draft
Mateus Zitelli (MateusZitelli) wants to merge 1 commit into
mainfrom
codex/track-ai-created-runs
Draft

feat(run-create): default AI task ID from environment#1454
Mateus Zitelli (MateusZitelli) wants to merge 1 commit into
mainfrom
codex/track-ai-created-runs

Conversation

@MateusZitelli

@MateusZitelli Mateus Zitelli (MateusZitelli) commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Overview of Changes

Teach the generated qawolf run create command to source its contract-defined aiTaskId option from QAWOLF_AI_TASK_ID. An explicit --ai-task-id value takes precedence over the environment, using Commander option precedence.

The value remains ordinary run.create input. 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.create schema contains aiTaskId. Tests inject the pending schema to verify the environment default and explicit-option precedence without vendoring an unpublished contract.

Release Order and Current Blocker

  1. Merge qawolf/platform#30807.
  2. Publish its updated @qawolf/api-contracts package.
  3. Bump this PR from @qawolf/api-contracts@0.20.0 to that published version and run the full validation suite again.
  4. Merge and release this CLI patch.
  5. Rebuild the AI task runner image with the released CLI.

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.ts
  • bun run typecheck
  • bun run lint
  • bun run knip
  • bun run build

Checklist

  • Changes follow the code style of this project
  • Self-review completed
  • Tests added/updated
  • No breaking changes
  • Bump to the published contracts package and re-run full validation

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7d96d5e2-0793-4980-a840-6964124cfac9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@MateusZitelli Mateus Zitelli (MateusZitelli) changed the title fix(runs): track AI-created runs feat(run-create): default AI task ID from environment Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant