Repository navigation
Conversation
The preset fallback read `flags.preset ?? (isDev ? 'default' : 'default')`. Both arms of the inner conditional were the same string, so the development check decided nothing. The line now reads `flags.preset ?? 'default'`; behaviour is unchanged. Claude-Session: https://claude.ai/code/session_017xRBcS7F1RYaiGn99nvUtU Co-authored-by: Claude <noreply@anthropic.com>
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 41 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
sunhaolin
marked this pull request as ready for review
December 2, 2026 09:10
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.
No issue is linked: this is a one-line cleanup found while triaging a static-analysis report, not a defect with a reproduction.
What changes
os serveresolved its preset asflags.preset ?? (isDev ? 'default' : 'default'). The line now readsflags.preset ?? 'default'.packages/cli/src/commands/serve.ts: the inner conditional is removed..changeset/serve-preset-default-one-spelling.md: apatchchangeset for@objectstack/cli.Why
Both arms of the inner conditional were the same string, so the development check decided nothing: a boot with no
--presetuseddefaultin development and in production alike. A static analyser reports it as a conditional that returns the same value on both branches (SonarQube rule S3923), and a reader is left looking for a production preset that was never there. Behaviour is unchanged;isDevis still read at its other sites in the file.Verification
Run on this branch at
d8ec47f3, based onmainat78148226:pnpm --filter @objectstack/cli typecheck: passes (tsc --noEmitandcheck:test-typecheck).eslint packages/cli/src/commands/serve.ts --no-inline-config: no findings. The repository-widepnpm lintwas not run.node scripts/check-changeset-fixed.mjsandnode scripts/check-empty-changeset.mjs: pass.pnpm --filter @objectstack/cli test: 667 test files passed on the first run and 25 failed, all 25 because that run had built the CLI's dependencies and not the CLI itself (the tests spawndist/). Afterturbo run build --filter=@objectstack/cli, those 25 files were run again: 25 files, 143 tests, all pass.Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (No formatter ran. Only the touched file was linted, as noted above.)main, one pull request. (One branch off an up-to-datemainand one pull request; no issue, and the branch carries a session name instead of an issue number.)packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code