Repository navigation
Conversation
…` with effect lint (CLI-2650)
Contributor
There was a problem hiding this comment.
🤖 AI Review
Verified all four findings against the checked-out code and trusted conventions. Confirmed two minor quality concerns and one error-handling nit. Refuted the actionability finding because the trusted CLI convention requires those declarations on every new error class. No major or critical regression or fundamental next-branch conflict found. Tests were not executed.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | apps/cli/src/command-internal/local-project-context.ts:41 |
consistency |
claude | Environment selection uses Config, while ambient values and their precedence still use process.env. An injected ConfigProvider can therefore select one dotenv environment while the merged ambient values reflect another source. |
| 🟡 MINOR | apps/cli/src/command-internal/project-environment.ts:75 |
observability |
codex | The converted multi-file dotenv workflow lacks its own named span despite the repository's tracing convention for filesystem workflows. |
| ⚪ NIT | apps/cli/src/command-internal/project-environment.ts:83 |
error-handling |
claude | Config read failures become defects in the project-environment and local-project-context paths, while the signing-keys caller converts the same SUPABASE_ENV read into a typed caller error. |
Refuted findings (kept for transparency, not posted as review comments)
apps/cli/src/command-internal/project-environment.ts:25(dead-code): ProjectEnvironmentError's actionability declarations are unnecessary because both production callers replace it with their own errors; invalidConfig also potentially misclassifies filesystem read failures.
Refuted: The wrapping behavior is accurately described, but removing the declarations would violate the trusted, documented error-classification convention, which has no exception for wrapped internal errors. The alleged filesystem misclassification is hypothetical: these callers discard the original declaration before command telemetry receives the error.
Stats
Claude findings: 3 · Codex findings: 1 · Confirmed: 3 · Refuted: 1 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
This branch has not been deployed
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.
TL;DR
brings the project
.envloader and the local project context under the effect lintwhats introduced?
project-environment,local-project-context,dotenv,vaultandvault-decryptjoin the allow list, andviper-envfollows in the next PR of this stack.envfiles are read through theFileSystemandPathservices and fail in the error channel, so both callers keep the samefailed to read config: Error: ...text.envcases behave as before, and a.envFIFO no longer blocks Ctrl+CSUPABASE_ENVandSUPABASE_PROJECT_IDare read throughConfigwith the same empty and unset handlingConfig, stay hermetic against an exportedSUPABASE_ENVorSUPABASE_PROJECT_ID, and cover the BOM, directory, symlink loop and.env.localskip casesref