Skip to content

refactor(error-tracking): reuse the no-framework abort - #1349

Merged
gewenyu99 merged 6 commits into
codex/fix-integration-no-frameworkfrom
codex/share-no-framework-abort
Sep 24, 2026
Merged

gewenyu99 merged 6 commits into
codex/fix-integration-no-frameworkfrom
codex/share-no-framework-abort

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Error tracking's CI/headless path still defines its own DetectNoFramework abort. When detection finds no framework, it gives only a terse failure message instead of the app-root and setup guidance used by integration and replay vision.

Stacked on #1347; this PR targets codex/fix-integration-no-framework until the shared helper lands on main.

Changes

Use abortNoFrameworkDetected() in error tracking's CI pre-run hook. Keep the early return before framework configuration or skill selection, and cover it with a regression test.

This was the only remaining direct DetectNoFramework abort in the programs. Other detection outcomes have their own prerequisite errors or project-picking flows.

Test plan

  • Error-tracking and no-framework suites: 23 tests passed, including the parent PR's manual-picker regression.
  • pnpm typecheck passed.
  • pnpm build passed, including CLI and warlock smoke checks.
  • Prettier, ESLint, and git diff --check passed.

LLM context

Codex audited the other programs for adoption of the shared helper from #1347 and implemented this follow-up.

Use the shared helper in the CI pre-run hook so missing-framework failures
include the same app-root and setup guidance as the other integration flows.
Cover the abort before framework configuration or skill selection.
@gewenyu99
gewenyu99 requested a review from a team as a code owner September 24, 2026 15:45
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci ai-observability
  • /wizard-ci basic-integration
  • /wizard-ci feature-flags
  • /wizard-ci mcp-analytics
  • /wizard-ci replay-vision
  • /wizard-ci revenue
  • /wizard-ci self-driving
  • /wizard-ci warehouse
  • /wizard-ci warehouse-seeded

Test an individual app:

  • /wizard-ci ai-observability/anthropic
  • /wizard-ci ai-observability/google-adk
  • /wizard-ci ai-observability/groq
Show more apps
  • /wizard-ci ai-observability/manual-capture
  • /wizard-ci ai-observability/openai
  • /wizard-ci ai-observability/openai-agents
  • /wizard-ci ai-observability/opentelemetry
  • /wizard-ci ai-observability/vercel-ai
  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/flutter
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci feature-flags/django
  • /wizard-ci feature-flags/next-js
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci replay-vision/javascript-node
  • /wizard-ci replay-vision/next-js
  • /wizard-ci replay-vision/react-vite
  • /wizard-ci revenue/stripe
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit
  • /wizard-ci warehouse/monorepo-env
  • /wizard-ci warehouse/multi-source-next
  • /wizard-ci warehouse/stripe-node
  • /wizard-ci warehouse/zero-source
  • /wizard-ci warehouse-seeded/next-stripe
  • /wizard-ci warehouse-seeded/next-stripe-declined

Test against a Context Mill branch:

  • /wizard-ci all context-mill:my-branch

Add context-mill:<branch> to any command above to pin the Context Mill branch. It defaults to main.

Results will be posted here when complete.

expect.objectContaining({
code: ErrorCodes.DetectNoFramework,
outroData: expect.objectContaining({
instruction: expect.stringContaining("app's root directory"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the copy changed. let's not pin the copy in the test

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yah yeeet remove tests. Will do a sweep actually these really piss me off too :kek:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Will do separate PR to do this sweep

The test pinned the outro instruction's wording, which the shared
abortNoFrameworkDetected helper words differently. It now checks the
DetectNoFramework code only.

Generated-By: PostHog Desktop
Task-Id: d14e92bb-6ee1-49b5-8502-39cb80079589
@gewenyu99
gewenyu99 merged commit f681acb into codex/fix-integration-no-framework Sep 24, 2026
13 checks passed
@gewenyu99
gewenyu99 deleted the codex/share-no-framework-abort branch September 24, 2026 19:02
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