Skip to content

refactor(core): delegate agent detection to std-env#1029

Merged
fi3ework merged 2 commits intomainfrom
refactor/std-env-agent-detection
Mar 10, 2026
Merged

refactor(core): delegate agent detection to std-env#1029
fi3ework merged 2 commits intomainfrom
refactor/std-env-agent-detection

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

  • upgrade @rstest/core to std-env v4 and delegate agent detection to it instead of maintaining hand-written env checks
  • keep rstest-specific RSTEST_NO_AGENT opt-out semantics in a thin wrapper so existing callers can keep using determineAgent()
  • reduce wrapper tests to rstest-owned behavior only and avoid host agent env leakage during test runs

Validation

  • pnpm --filter '@rstest/core' build
  • pnpm --filter '@rstest/core' test -- 'tests/utils/detectAgent.test.ts'
  • pnpm --filter '@rstest/core' typecheck
  • pnpm lint (fails on pre-existing cspell issues in test-results/.../summary.md, unrelated to this change)

@fi3ework fi3ework enabled auto-merge (squash) March 10, 2026 03:51
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: 17995c507e

ℹ️ 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".

@fi3ework fi3ework force-pushed the refactor/std-env-agent-detection branch from 9eae71a to 5ad8ae0 Compare March 10, 2026 05:08
@fi3ework fi3ework merged commit 61db7a0 into main Mar 10, 2026
9 checks passed
@fi3ework fi3ework deleted the refactor/std-env-agent-detection branch March 10, 2026 05:27
@9aoy 9aoy mentioned this pull request Mar 10, 2026
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.

1 participant