Skip to content

Fix/ci base app - #8

Merged
People62 merged 3 commits into
mainfrom
fix/ci-base-app
Aug 14, 2026
Merged

Fix/ci base app#8
People62 merged 3 commits into
mainfrom
fix/ci-base-app

Conversation

@People62

Copy link
Copy Markdown
Collaborator

No description provided.

HV NQRust and others added 3 commits August 14, 2026 08:21
The media studio detected the free plan with a direct fetch inside a
component useEffect, tripping the strict frontend-compliance data-effect
guard for the media scope. Move the probe into a useFreePlan() hook
(outside the component tree, alongside the other media hooks) so the
studio components stay free of direct data-effects.

Behaviour is unchanged: it still probes the cloud-only
/api/dashboard/usage/free-limits route (base returns 404 -> not free ->
no gating; the API enforces limits server-side regardless).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The cohere-provider tests deleted KB_RERANK_MODEL before a dynamic
import of @/lib/rag/rerankers, but loading that module re-seeds the env
default, so the delete was undone and the "cohere default model"
assertion saw openai/gpt-4.1-nano instead of rerank-v4.0-pro.

Import the module statically at the top (its load-time side effects run
once, before any test) and manage env at test runtime, since
getDefaultReranker reads env lazily. Restore each KB_RERANK_* key
individually instead of reassigning process.env wholesale, which
replaces Node's special env object and breaks cross-test isolation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_validate-artifact auto-defaults a missing @aesthetic directive to a
warning (not a hard failure) unless ARTIFACT_REACT_AESTHETIC_REQUIRED is
set — a deliberate fix for an infinite retry loop. The tests still
expected a hard failure. Enable the flag in the aesthetic-directive
suite (whose cases assert strict enforcement) and rewrite the flag-unset
case to assert the warning-by-default path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@People62
People62 merged commit 7a64e01 into main Aug 14, 2026
0 of 3 checks passed
People62 pushed a commit that referenced this pull request Aug 14, 2026
Brings the base CI fixes (PR #8: frontend-compliance media hook,
cohere-reranker env isolation, @aesthetic test alignment) into the mobile
backend branch so PR #7 runs against green CI. Conflict-free; unit tests
(923 pass) and compliance checks verified locally.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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