Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([issue-12584]): name the real contribution-assessment failure on Abuse Guard

[._.]/ Adam Eivy212d540836c8
diff --git a/client/src/components/models/ModelAbuseGuardPanel.jsx b/client/src/components/models/ModelAbuseGuardPanel.jsx
index 31554754b4..3b969015af 100644
--- a/client/src/components/models/ModelAbuseGuardPanel.jsx
+++ b/client/src/components/models/ModelAbuseGuardPanel.jsx
@@ -140,7 +140,7 @@ export default function ModelAbuseGuardPanel() {
</p>
{guardStatus?.contributionAssessment?.ready === false && (
<p role="status" className="text-xs text-port-warning max-w-2xl">
- GitHub pull request and issue assessment is not ready ({guardStatus.contributionAssessment.code}): no eligible API provider resolves a model, so the pending-merge coordinator cannot merge. Pick a provider and model in Content safety policies below.
+ GitHub pull request and issue assessment is not ready ({guardStatus.contributionAssessment.code}), so the pending-merge coordinator cannot merge.{guardStatus.contributionAssessment.code === 'untrusted-content-model-required' ? ' Pick a provider and model in Content safety policies below.' : ''}
</p>
)}
<details className="text-sm rounded-lg border border-port-border p-3">
diff --git a/client/src/components/models/ModelAbuseGuardPanel.test.jsx b/client/src/components/models/ModelAbuseGuardPanel.test.jsx
index 285f0a0a57..4bdb06c12e 100644
--- a/client/src/components/models/ModelAbuseGuardPanel.test.jsx
+++ b/client/src/components/models/ModelAbuseGuardPanel.test.jsx
@@ -64,9 +64,19 @@ describe('ModelAbuseGuardPanel', () => {
contributionAssessment: { ready: false, code: 'untrusted-content-model-required' } });
await renderPanel();
expect(await screen.findByText(/assessment is not ready \(untrusted-content-model-required\)/)).toBeInTheDocument();
+ expect(screen.getByText(/Pick a provider and model in Content safety policies below/)).toBeInTheDocument();
expect(screen.getByText('Not ready').className).toContain('text-port-warning');
});
+ it('names a non-model assessment failure without blaming a missing default model', async () => {
+ getModelAbuseGuardStatus.mockResolvedValue({ ready: true, stages: STAGES.map(stage => ({ ...stage, ready: true })),
+ contributionAssessment: { ready: false, code: 'untrusted-content-settings-unreadable' } });
+ await renderPanel();
+ expect(await screen.findByText(/assessment is not ready \(untrusted-content-settings-unreadable\)/)).toBeInTheDocument();
+ expect(screen.queryByText(/no eligible API provider resolves a model/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/Pick a provider and model/)).not.toBeInTheDocument();
+ });
+
it('offers repair for partial setup and disables installation without Python', async () => {
getModelAbuseGuardStatus.mockResolvedValueOnce({
ready: false, setupState: 'incomplete', venvReady: true, pythonAvailable: false, stages: STAGES,